/* css/components/tools.css */

/* =============================================
   EXERCISE PAGE WRAPPER
   ============================================= */
.exercise-page-wrapper {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  transition: margin 0.35s cubic-bezier(.4,0,.2,1);
}

.exercise-page-wrapper.no-sidebar .exercise-container {
  width: 100%;
}

.exercise-page-wrapper .exercise-container {
  flex: 1;
  min-width: 0;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

/* =============================================
   FLOATING BOTTOM TOOLS BAR
   ============================================= */
.tools-sidebar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  margin: 20px -30px -30px -30px;
  border-radius: 0 0 27px 27px;
  overflow: hidden;
}

.sidebar-rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.9));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.sidebar-tools-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Remove the divider pseudo-element */
.sidebar-tools-list::before {
  display: none;
}

.sidebar-tool-btn {
  height: 36px;
  border-radius: 18px;
  border: none;
  background: white;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 0.82rem;
  color: var(--text-medium);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sidebar-tool-btn .tool-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sidebar-tool-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-tool-btn:hover .tool-label {
  color: var(--primary);
}

.sidebar-tool-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 12px rgba(30, 58, 138, 0.3);
}

.sidebar-tool-btn.active:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* =============================================
   TOOLS PANEL (expanded content above rail)
   ============================================= */
.sidebar-panel {
  display: none;
  width: 100%;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  overflow-y: auto;
  max-height: 45vh;
  flex-shrink: 0;
  animation: toolsPanelIn 0.3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 58, 138, 0.25) transparent;
}

.sidebar-panel::-webkit-scrollbar {
  width: 6px;
}

.sidebar-panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.sidebar-panel::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 138, 0.2);
  border-radius: 3px;
  transition: background 0.2s;
}

.sidebar-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 58, 138, 0.4);
}

.tools-sidebar.open .sidebar-panel {
  display: block;
}

@keyframes toolsPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-panel-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all 0.2s;
}

.sidebar-panel-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--incorrect);
}

/* On/Off toggle for selection-based tools */
.tool-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 4px 16px 4px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.tool-toggle-label {
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
}

.tool-toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.tool-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tool-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  transition: background 0.25s ease;
}

.tool-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}

.tool-toggle-switch input:checked + .tool-toggle-slider {
  background: var(--primary);
}

.tool-toggle-switch input:checked + .tool-toggle-slider::before {
  transform: translateX(16px);
}

/* Active tool content inside tools bar */
.tools-sidebar .active-tool-content {
  padding: 16px 24px;
  margin-top: 0;
  background: transparent;
  border: none;
  min-height: 80px;
  border-radius: 0;
}

.note-creator-card {
  background: #fffdf0;
  border: 2px solid #fef08a;
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0 0;
  box-shadow: var(--shadow-md);
  width: 100%;
  box-sizing: border-box;
}

.note-creator-header {
  color: #854d0e;
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 1rem;
}

.note-creator-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.color-options {
  display: flex;
  gap: 10px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #ddd;
  transition: all 0.2s;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  box-shadow: 0 0 0 2px var(--primary);
}

.color-dot.yellow {
  background: #fef08a;
}

.color-dot.green {
  background: #bbf7d0;
}

.color-dot.blue {
  background: #bfdbfe;
}

.color-dot.pink {
  background: #fbcfe8;
}

.btn-cancel {
  background: transparent;
  color: var(--text-medium);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 10px;
  font-weight: 500;
}

.btn-confirm {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-confirm:hover {
  background: var(--secondary);
}

.notes-list-container {
  max-height: 300px;
  overflow-y: auto;
}

.note-item-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
  position: relative;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note-item-content {
  flex: 1;
}

.note-item-phrase {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.note-item-comment {
  font-size: 0.9em;
  color: var(--text-medium);
}

.note-delete {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.note-delete:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* =============================================
   NOTES CAROUSEL
   ============================================= */
.notes-carousel {
  margin-bottom: 4px;
}

.notes-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.notes-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  transition: all 0.2s;
  flex-shrink: 0;
}

.notes-nav-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.notes-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.notes-nav-counter {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

/* =============================================
   CHAR COUNTER
   ============================================= */
.note-input-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.note-input-wrapper #note-input-field {
  width: 100%;
  border: 1px solid #fde68a;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  box-sizing: border-box;
}

.char-counter {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 3px;
}

/* =============================================
   FREE NOTES REDESIGN
   ============================================= */
.fn-input-wrapper {
  margin-bottom: 10px;
}

.fn-input {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  box-sizing: border-box;
  padding: 8px 12px;
  resize: none;
  transition: min-height 0.25s ease, border-color 0.2s;
  line-height: 1.5;
  overflow: hidden;
}

.fn-input-small {
  min-height: 38px;
  max-height: 38px;
}

.fn-input-large {
  min-height: 110px;
  max-height: 200px;
  overflow-y: auto;
}

.fn-input:focus {
  outline: none;
  border-color: var(--primary);
}

.fn-input-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  gap: 8px;
}

.fn-save-btn {
  padding: 5px 14px;
  font-size: 0.82rem;
}

.fn-note-display {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: white;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  gap: 8px;
}

.fn-note-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
  word-break: break-word;
}

.text-highlight {
  cursor: help;
  border-bottom: 2px solid currentColor;
  padding: 0 2px;
  border-radius: 3px;
}

.free-notes-container {
  padding: 10px;
}

#free-notes-area {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}

#free-notes-area:focus {
  outline: none;
  border-color: var(--primary);
}

.small-info {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 10px;
  text-align: right;
}

.free-notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.free-notes-footer .small-info {
  margin-top: 0;
}

.dict-card-container {
  background-color: #f0f4ff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  margin-top: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dict-close-x {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.dict-close-x:hover {
  color: var(--text-dark);
  background: #e2e8f0;
}

.dict-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.dict-word-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #312e81;
}

.dict-phonetic-text {
  color: #6366f1;
  font-size: 1rem;
  font-weight: 500;
}

.dict-pos-badge {
  background-color: #e0e7ff;
  color: #4f46e5;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.dict-definition-text {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.dict-example-box {
  border-left: 3px solid #c7d2fe;
  padding-left: 15px;
  margin-bottom: 15px;
}

.dict-example-text {
  color: var(--text-medium);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dict-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dict-tag-pill {
  background-color: #ffffff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dict-tag-pill:hover {
  background-color: #4f46e5;
  color: white;
  border-color: #4f46e5;
  transform: scale(1.05);
}

.translator-card {
  padding: 15px;
}

.translator-card h4 {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.translator-badge {
  background: var(--primary-light);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  margin-left: 8px;
}

.original-text-small {
  background: white;
  padding: 10px;
  border-radius: 8px;
  border-left: 3px solid var(--text-light);
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 10px 0;
}

.translator-card i {
  display: block;
  text-align: center;
  color: var(--primary);
  margin: 10px 0;
}

.translated-result {
  background: #e6f7e6;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid var(--completed);
  font-weight: 500;
  color: var(--text-dark);
}

/* ── Translate Panel ─────────────────────────────────── */
.translate-panel {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.translate-lang-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light, #f1f5f9);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.85rem;
}

.translate-from-label {
  color: var(--text-medium, #64748b);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.translate-arrow-lang {
  color: var(--primary, #1e3a8a);
  font-size: 0.8rem;
}

.translate-lang-select {
  flex: 1;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.85rem;
  background: white;
  color: var(--text-dark, #1e293b);
  cursor: pointer;
  outline: none;
}

.translate-lang-select:focus {
  border-color: var(--primary, #1e3a8a);
  box-shadow: 0 0 0 2px rgba(30,58,138,0.1);
}

.translate-manual-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.translate-manual-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  color: var(--text-dark, #1e293b);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.translate-manual-input:focus {
  border-color: var(--primary, #1e3a8a);
  box-shadow: 0 0 0 2px rgba(30,58,138,0.08);
}

.translate-manual-btn {
  align-self: flex-end;
  background: var(--primary, #1e3a8a);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

.translate-manual-btn:hover {
  background: var(--primary-dark, #1e40af);
}

.translate-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.translate-col {
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 60px;
}

.translate-col-original {
  background: white;
  border: 1px solid var(--border, #e2e8f0);
  border-left: 3px solid var(--text-light, #94a3b8);
}

.translate-col-result {
  background: #e6f7e6;
  border: 1px solid #bbf7bb;
  border-left: 3px solid var(--completed, #22c55e);
}

.translate-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-medium, #64748b);
  margin-bottom: 5px;
}

.translate-col-text {
  font-size: 0.9rem;
  color: var(--text-dark, #1e293b);
  line-height: 1.4;
  word-break: break-word;
}

.translate-col-result .translate-col-text {
  font-weight: 500;
}

.translate-loading {
  text-align: center;
  padding: 12px;
  color: var(--primary, #1e3a8a);
  font-size: 1.1rem;
}

.translate-hint {
  font-size: 0.82rem;
  color: var(--text-light, #94a3b8);
  text-align: center;
  margin: 0;
  padding: 2px 0;
}

.tips-content {
  padding: 10px;
}

.tips-content h4 {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-content ul {
  list-style-type: none;
  padding: 0;
}

.tips-content li {
  padding: 10px 15px;
  margin-bottom: 8px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.placeholder-text {
  color: var(--text-light);
  text-align: center;
  padding: 40px 20px;
  font-size: 1rem;
  background: white;
  border-radius: 12px;
  border: 2px dashed var(--border-light);
}

.empty-msg {
  color: var(--text-light);
  text-align: center;
  padding: 40px 20px;
  font-size: 1rem;
  background: white;
  border-radius: 12px;
}

.loading-mini {
  text-align: center;
  color: var(--text-light);
  padding: 40px 20px;
  font-size: 1rem;
}

.loading-mini i {
  margin-right: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.transcript-content {
  padding: 10px;
}

.transcript-content h4 {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transcript-extract {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid #0ea5e9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.transcript-extract-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.transcript-extract-number {
  background: #0ea5e9;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.transcript-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-medium);
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-align: justify;
}

/* =============================================
   DICTIONARY SEARCH BOX
   ============================================= */
.dict-search-wrapper {
  margin-bottom: 12px;
}

.dict-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 6px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dict-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.dict-search-box i {
  color: var(--text-light);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dict-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  padding: 6px 0;
  min-width: 0;
}

.dict-search-box input::placeholder {
  color: var(--text-light);
}

.dict-search-go {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dict-search-go:hover {
  background: var(--secondary);
  transform: scale(1.08);
}

.dict-help-text {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 8px;
  text-align: center;
}

.dict-not-found {
  color: var(--text-medium);
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

.dict-meaning-block {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dict-meaning-block:last-of-type {
  border-bottom: none;
  margin-bottom: 4px;
}

/* Sidebar-specific adjustments for smaller containers */
.tools-sidebar .dict-card-container {
  margin-top: 8px;
  padding: 14px;
  font-size: 0.9rem;
}

.tools-sidebar .dict-word-title {
  font-size: 1.2rem;
}

.tools-sidebar .dict-definition-text {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.tools-sidebar .dict-example-text {
  font-size: 0.85rem;
}

.tools-sidebar .notes-list-container {
  max-height: none;
}

.tools-sidebar .placeholder-text {
  padding: 24px 14px;
  font-size: 0.9rem;
}

.tools-sidebar .empty-msg {
  padding: 24px 14px;
  font-size: 0.9rem;
}

.tools-sidebar .translator-card {
  padding: 10px;
}

.tools-sidebar .tips-content li {
  font-size: 0.88rem;
  padding: 8px 12px;
}

.tools-sidebar .transcript-extract {
  padding: 12px;
}

.tools-sidebar .transcript-text {
  font-size: 0.85rem;
  padding: 10px;
}

.sidebar-tool-btn {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 14px;
}

.sidebar-tool-btn .tool-label {
  display: none;
}

.sidebar-tool-btn i {
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 768px), (max-height: 520px) and (orientation: landscape) and (max-width: 1024px) {
  .tools-sidebar {
    margin: 14px -14px -14px;
  }

  .sidebar-rail {
    padding: 8px 10px;
  }

  .sidebar-tools-list {
    gap: 6px;
  }
}
