/* Add styles for the processing indicator in the recording status */
.processing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.processing-indicator .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e74c3c; /* Red color to match the record button */
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Define the spin animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Template Management Styles */
.template-management-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

/* Template Actions Container */
.template-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
}

/* Modal Footer Button Spacing */
.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* Template Button Sizing */
.remove-template-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: auto !important;
    line-height: 1.2 !important;
}

/* Delete All Button Styling */
.delete-all-btn {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    transition: all 0.2s ease;
}

.delete-all-btn:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Template Sections Container */
.template-sections {
    position: relative;
}

/* Sample Templates Modal Styles */
.sample-templates-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

/* Ensure modal appears above other content */
.modal {
    z-index: 10000;
}

.modal-content {
    z-index: 10001;
}

.sample-template-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.sample-template-checkbox {
    margin-top: 2px;
}

.sample-template-content {
    flex: 1;
}

.sample-template-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.sample-template-preview {
    font-size: 12px;
    color: #666;
    max-height: 60px;
    overflow: hidden;
    line-height: 1.3;
}

/* Template Navigation Arrows */
.template-navigation {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #007bff;
    background: #ffffff;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-arrow:hover {
    background: #007bff;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.5);
}

.nav-arrow i {
    font-size: 16px;
}

.template-management-list {
    margin-top: 12px;
}

.template-type-section {
    margin-bottom: 20px;
}

.template-type-section h4 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-weight: 600;
}

.template-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.template-count {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.template-snippets {
    font-size: 0.85em;
    color: var(--text-secondary);
    line-height: 1.4;
}

.template-snippet {
    margin-bottom: 4px;
    font-style: italic;
}

/* Template Editor Modal Styles */
.template-editor-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal open animation */
@keyframes modalOpen {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.template-instructions {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.template-sections {
    margin-bottom: 20px;
}

.template-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.template-section .template-title {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.9em;
    background: var(--bg-color);
    color: var(--text-color);
}

.template-section .template-content {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.4;
    background: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
}

.template-section .remove-template-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.template-section .remove-template-btn:hover {
    background: #c0392b;
}

.template-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    color: var(--text-secondary);
    font-weight: 600;
}

.template-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.template-divider span {
    background: var(--bg-color);
    padding: 0 12px;
    position: relative;
    z-index: 2;
}

.add-template-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-template-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
}

/* Custom Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #555;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    white-space: normal;
    word-wrap: break-word;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip.show .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Workflow Toggle Styles */
.workflow-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--heading-color);
}

.toggle-buttons {
    display: flex;
    border-radius: 50px;
    overflow: visible; /* Changed from hidden to visible for tooltips */
    border: 1px solid var(--border-color);
}

.workflow-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 0;
    font-size: 1.1rem;
}

.workflow-btn:first-child {
    border-radius: 50px 0 0 50px;
}

.workflow-btn:last-child {
    border-radius: 0 50px 50px 0;
}

.workflow-btn-active {
    background-color: #3498db;
    color: white;
}

/* Append this to the existing styles.css file */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #f5f7fa;
    --text-color: #333;
    --container-bg: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --heading-color: #2c3e50;
    --subheading-color: #34495e;
    --button-hover: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-theme {
    /* Enhanced Dark Theme - Deeper, Sexier Aesthetic */
    --bg-color: #000000; /* Pure black background */
    --text-color: #f5f5f5; /* Slightly warmer white */
    --container-bg: #0a0a0a; /* Very dark container */
    --card-bg: #111111; /* Rich charcoal cards */
    --border-color: #333333; /* Subtle borders */
    --heading-color: #ffffff; /* Pure white headings */
    --subheading-color: #e0e0e0; /* Light gray subheadings */
    --button-hover: rgba(255, 255, 255, 0.08); /* Subtle hover */
    --shadow-color: rgba(0, 0, 0, 0.6); /* Deeper shadows */
    
    /* New premium accent colors */
    --accent-primary: #00d4ff; /* Bright cyan accent */
    --accent-secondary: #6c5ce7; /* Purple accent */
    --success-color: #00e676; /* Bright green */
    --warning-color: #ff9500; /* Orange */
    --error-color: #ff3366; /* Bright red */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    color: var(--heading-color);
    margin: 0;
    transition: color 0.3s ease;
}

h2 {
    margin-bottom: 1rem;
    color: var(--subheading-color);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--button-hover);
}

.recorder-container {
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.controls {
    display: flex;
    justify-content: flex-start; /* allow pushing Clear to the far right */
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button i {
    font-size: 1.2rem;
}

.record-btn {
    background-color: #e74c3c;
    color: white;
}

.record-btn:hover:not(:disabled) {
    background-color: #c0392b;
}

.record-btn.recording-active {
    background-color: #3498db;
}

.record-btn.recording-active:hover {
    background-color: #2980b9;
}

.stop-btn {
    background-color: #3498db;
    color: white;
}

.stop-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.clear-btn {
    background-color: transparent;
    color: #95a5a6;
    border: 1px solid #95a5a6;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.clear-btn:hover:not(:disabled) {
    background-color: rgba(149, 165, 166, 0.15);
}

.controls .clear-btn {
    margin-left: auto;
}

.clear-btn.confirm-pending {
    background-color: #e67e22;
    border-color: #e67e22;
    color: #ffffff;
}

.action-btn {
    background-color: #2ecc71;
    color: white;
    padding: 0.6rem 1.2rem;
}

.action-btn:hover:not(:disabled) {
    background-color: #27ae60;
}

/* Additional Text Input Styles */
.additional-text-container {
    margin-top: 20px;
    text-align: left;
    width: 100%;
}

.additional-text-container h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--heading-color);
}

#additionalText {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--container-bg);
    color: var(--text-color);
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#additionalText:focus {
    outline: none;
    border-color: #3498db;
}

/* Prior Notes textarea matches additionalText styling */
#priorNotes {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--container-bg);
    color: var(--text-color);
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-top: 8px;
}

#priorNotes:focus {
    outline: none;
    border-color: #3498db;
}

/* Volume Meter Styles */
.volume-meter {
    height: 24px;
    width: 8px;
    background-color: var(--card-bg);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.volume-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #2ecc71, #f1c40f, #e74c3c);
    height: 0%;
    transition: height 0.05s ease; /* Faster transitions */
    border-radius: 3px;
}

/* Make volume meter slightly larger on desktop */
@media (min-width: 768px) {
    .volume-meter {
        height: 32px;
        width: 10px;
        border-radius: 4px;
        margin: 0 12px;
    }
    
    .volume-bar {
        border-radius: 4px;
    }
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #7f8c8d;
}

.recording .status-indicator {
    background-color: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.timer {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c; /* Changed to red for better visibility on dark backgrounds */
    transition: color 0.3s ease;
}

.audio-container, .transcription-container {
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.audio-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

audio {
    width: 100%;
    margin-bottom: 1rem;
}

.transcription-result {
    background-color: var(--container-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 100px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hidden {
    display: none;
}

/* Card styles */
.card {
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

/* Transcription styles */
.transcription-text {
    background-color: white;
    color: black;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 12pt !important;
    line-height: 1.5;
    border: 1px solid #ddd;
    text-align: left;
}
/* Ensure nested elements in transcription also follow Times NR 12pt */
.transcription-text * {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 12pt !important;
}

/* Note Container with Copy Button */
.response-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Compact copy buttons and history buttons */
#copyResponseButton,
#copyTranscriptionButton,
.copy-history-btn,
#toggleHistoryButton,
#deleteAllDataButton {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    border-radius: 4px !important;
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease !important;
}

#copyResponseButton:hover,
#copyTranscriptionButton:hover,
.copy-history-btn:hover,
#toggleHistoryButton:hover,
#deleteAllDataButton:hover {
    background-color: var(--button-hover) !important;
    border-color: #3498db !important;
}

#copyResponseButton i,
#copyTranscriptionButton i,
.copy-history-btn i,
#toggleHistoryButton i,
#deleteAllDataButton i {
    font-size: 0.75rem !important;
    margin-right: 4px !important;
}

.ai-response-text {
    background-color: white;
    color: black;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.5;
    text-align: left;
}
/* Also ensure nested elements when selecting by class */
.ai-response-text * {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 12pt !important;
}

/* Note styles */
#aiResponseContainer {
    margin-top: 20px;
    background-color: var(--container-bg);
}

#aiResponseText {
    white-space: pre-wrap;
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 12pt !important;
    line-height: 1.5;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    color: #000000 !important;
    text-align: left;
}
/* Ensure all nested elements inside the note display Times NR 12pt */
#aiResponseText * {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 12pt !important;
}

/* Medical note formatting */
#aiResponseText strong {
    display: block;
    font-size: 12pt; /* keep consistent with requested size */
    margin-top: 10px;
    margin-bottom: 5px;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 3px;
}

/* OR note sections: remove extra space after headers inside .note-section */
#aiResponseText .note-section .section-header strong {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
#aiResponseText .note-section .section-header {
    margin-bottom: 0;
}
#aiResponseText .note-section .section-body {
    margin-top: 0;
}

#aiResponseText u {
    font-weight: bold;
    text-decoration: none;
    color: #495057;
}

#aiResponseText br {
    line-height: 2.5;
    display: block;
    margin: 0.5em 0;
}

/* Note sections now use HTML <br> spacing instead of CSS margins */

/* Format the physical exam sections */
#aiResponseText strong + br + br + strong {
    margin-top: 5px;
}

/* Format the actions list */
#aiResponseText u:last-of-type + br + br {
    margin-bottom: 5px;
}

/* Revise buttons: compact horizontal layout */
.revise-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; /* room for scrollbar if it appears */
}

.revise-btn {
    font-size: 0.8rem; /* smaller text */
    padding: 0.3rem 0.6rem; /* tighter padding */
    border-radius: 4px;
    white-space: nowrap; /* prevent wrapping */
    flex: 0 0 auto; /* stay compact, no stretching */
}

/* Transcript dropdown styles - thin floating bar */
.transcript-dropdown {
  margin: 8px 0 4px 0;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.transcript-header {
  padding: 6px 12px;
  background: var(--container-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.2s ease;
  min-height: 28px;
  font-size: 0.85rem;
}

.transcript-header:hover {
  background: var(--button-hover);
}

.transcript-title {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.85rem;
}

.transcript-toggle {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.transcript-content {
  max-height: 200px;
  overflow-y: auto;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.transcript-content.collapsed {
  max-height: 0;
  overflow: hidden;
}

.transcript-text {
  padding: 8px 12px;
  color: var(--text-color);
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.8rem;
  background: var(--card-bg);
}

.transcript-copy-btn {
  margin: 0 12px 8px 12px;
  padding: 4px 8px;
  font-size: 0.75rem;
  min-height: 24px;
}

/* Hide the original transcription container since we're using dropdown */
#transcriptionContainer {
  display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 4px;
        max-width: 100%;
        width: 100%;
    }
    
    /* Make cards fill width on mobile for better readability */
    .card {
        margin: 4px 0 !important;
        padding: 12px !important;
        width: calc(100% - 8px) !important;
        max-width: none !important;
    }
    
    /* Hide desktop tabs on mobile only when not in desktop grid */
    body:not(.desktop-mode) .tabs {
        display: none !important;
    }
    
    /* Ensure note containers fill width */
    #noteHistoryContainer,
    .tab-panel {
        width: 100% !important;
        max-width: none !important;
    }
    
    .controls {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        justify-content: center;
    }
    
    /* Override button width for transcript copy button specifically */
    .transcript-dropdown button.transcript-copy-btn {
        width: auto !important;
        max-width: 60px !important;
    }
    
    /* Fix theme toggle button on mobile */
    .theme-toggle {
        width: auto !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        flex-shrink: 0 !important;
        margin-bottom: 4px !important;
    }
    
    /* Hide reset layout button on mobile - only needed for desktop two-column layout */
    .reset-layout-btn {
        display: none !important;
    }
    
    .audio-actions {
        flex-direction: column;
    }
    
    /* Mobile-specific compact button styling */
    #copyResponseButton,
    #copyTranscriptionButton,
    #toggleHistoryButton,
    #deleteAllDataButton {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        min-height: 32px !important;
        width: auto !important;
        justify-content: center !important;
    }
    
    /* Fix Note History buttons on mobile - match copy button size */
    #toggleHistoryButton,
    #deleteAllDataButton {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        min-height: 32px !important;
        width: 100% !important;
        max-width: 140px !important;
        margin: 2px auto !important;
        display: block !important;
        flex: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Stack history buttons vertically on mobile - target the specific container */
    .history-header div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .response-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        justify-content: center !important;
    }
    
    .note-history-container .response-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .response-header {
        margin-bottom: 8px;
    }
    
    /* Make copy buttons in history more compact on mobile */
    .copy-history-btn {
        padding: 3px 6px !important;
        font-size: 0.7rem !important;
        min-height: 24px !important;
        max-width: 80px !important;
        margin: 2px auto !important;
    }
    
    /* Make transcript copy button smaller on mobile - ultra specific targeting */
    .transcript-dropdown .transcript-content button.copy-btn.transcript-copy-btn {
        padding: 2px 8px !important;
        font-size: 0.65rem !important;
        min-height: 18px !important;
        margin: 0 8px 6px 8px !important;
        width: auto !important;
        max-width: 60px !important;
        display: inline-block !important;
        text-align: center !important;
        flex: none !important;
    }
}

/* Note History Styles */
.note-history-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

/* Desktop layout optimizations */
@media (min-width: 1200px) {
    /* Make Note History wider in desktop mode */
    #noteHistoryContainer {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #noteHistoryContainer .card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }
    
    .note-history-item {
        padding: 15px !important;
        margin: 0 0 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .note-history-header {
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .note-history-content {
        width: 100% !important;
        max-width: none !important;
        word-wrap: break-word !important;
    }
    
    /* Ensure buttons fill available space */
    .history-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    .history-header > div {
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    /* Make note content panel fill full height using existing tab-panel styles */
    .desktop-grid .right-col {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .desktop-grid .tab-panel {
        flex: 1 1 auto !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    
    .desktop-grid .tab-panel.active {
        display: flex !important;
    }
    
    .desktop-grid #aiResponseContainer {
        flex: 1 1 auto !important;
        height: 100% !important;
        overflow-y: auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
}

.note-history-list.hidden {
    display: none;
}

.note-history-empty {
    padding: 20px;
    text-align: center;
    color: #999;
}

.note-history-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 10px;
}

.note-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.note-history-info {
    display: flex;
    flex-direction: column;
}

.note-history-date {
    font-size: 0.9em;
    color: #888;
}

.note-history-type {
    font-size: 0.8em;
    font-weight: bold;
    color: var(--accent-color);
}

.note-history-content {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 12pt !important;
    line-height: 1.5;
    background-color: white;
    color: black;
    padding: 15px;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}
/* Ensure nested elements in note history also follow Times NR 12pt */
.note-history-content * {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 12pt !important;
}

/* Copy history button styling moved to compact copy buttons section above */

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

/* Compact Auth Panel */
#authPanel {
    padding: 8px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative !important;
}
#authPanel h3 {
    font-size: 1rem;
    margin: 0 0 6px 0;
}
#authPanel .login-row {
    gap: 6px !important;
}
#authPanel input[type="email"],
#authPanel input[type="password"] {
    padding: 4px 8px !important;
    min-width: 140px !important;
    height: 32px;
    font-size: 0.9rem;
}
#authPanel .button {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}
#authPanel .hint {
    font-size: 0.85rem !important;
    margin-top: 4px !important;
}
#signedInView { gap: 6px !important; }
#signedInView .button {
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
}

@media (min-width: 1200px) {
    #authPanel { padding: 6px 8px; }
    #authPanel .login-row { flex-wrap: nowrap !important; }
}

/* ===== Desktop-only 2-column layout with tabs ===== */
@media (min-width: 1200px) {
  /* Expand to full width on desktop */
  body > .container {
    max-width: none;
    width: auto;
    margin: 0;
    --container-pad: 16px;             /* thicker page padding */
    padding: var(--container-pad);
    border-radius: 8px;                 /* subtle rounding on desktop */
    overflow: hidden;                   /* clip inner grid to rounded corners */
    box-shadow:                         /* 2px inset border + existing elevation */
      0 0 0 2px var(--border-color) inset,
      0 5px 15px var(--shadow-color);
  }

  /* Grid shell */
  .desktop-grid {
    --left-col: 1fr; /* use equal flex units instead of percentage */
    display: grid;
    grid-template-columns: 1fr 8px 1fr;
    gap: 0;
    width: 100%;
    height: calc(100vh - (var(--container-pad, 16px) * 2));
    box-sizing: border-box;
  }

  .desktop-grid .grid-col {
    min-width: 0; /* enable content to shrink */
    overflow: hidden; /* control scroll inside children */
    display: flex;
    flex-direction: column;
  }

  .desktop-grid .left-col,
  .desktop-grid .right-col {
    height: 100%;
  }

  /* Gutter between columns (draggable) */
  .desktop-grid .gutter {
    background: linear-gradient(to bottom, transparent 0, transparent 10px, var(--border-color) 10px, var(--border-color) 12px, transparent 12px);
    background-size: 100% 16px;
    cursor: col-resize;
  }

  /* Left column content scrolls independently */
  .desktop-grid .left-col > * {
    margin-bottom: 10px;
  }
  .desktop-grid .left-col {
    overflow-y: auto;
    padding-right: 8px;
    padding-left: 8px;
  }

  

  /* Right column: tabs + panels */
  .desktop-grid .right-col {
    overflow: hidden; /* tabs header + panels scroll area */
    display: flex;
    flex-direction: column;
    min-height: 0; /* allow children to shrink and scroll */
    border-left: 1px solid var(--border-color);
    padding-left: 8px;
    padding-right: 4px;
  }

  .desktop-grid .right-col .container {
    /* When existing containers are moved into panels, flatten spacing */
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0;
    display: flex;             /* act as a normal wrapper */
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;           /* remove 800px cap from base .container */
    min-height: 0;             /* critical for inner scroll */
  }
  .desktop-grid .right-col .container.hidden { display: none !important; }

  .tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--container-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    pointer-events: auto;
  }

  .tab {
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    opacity: 0.8;
    pointer-events: auto;
    z-index: 101;
    position: relative;
    display: block;
    min-height: 28px;
    box-sizing: border-box;
  }
  .tab:hover { opacity: 1; }
  .tab.active {
    outline: 2px solid var(--button-hover);
    opacity: 1;
  }
  .reset-layout-btn {
    margin-left: auto;
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
  }
  .reset-layout-btn:hover { background: var(--button-hover); }

  .tab-panels {
    position: relative;
    flex: 1 1 auto;
    /* let flex determine height to match tabs */
    min-height: 0;
    overflow: hidden;
  }
  .tab-panel {
    display: none;
    height: 100%;
    overflow: hidden; /* inner content will scroll */
    padding: 20px;
    box-sizing: border-box;
    min-height: 0; /* enable inner flex child to scroll */
  }
  .tab-panel.active { display: flex; flex-direction: column; }

  /* Improve spacing for moved cards */
  .tab-panel .card {
    margin: 0 0 10px 0;
    flex: 1 1 auto;            /* fill available height */
    display: flex;             /* allow header + content layout */
    flex-direction: column;
    overflow: hidden;          /* content area handles scroll */
    min-height: 0;
    width: 100%;
    background: transparent;   /* edge-to-edge white note inside */
    box-shadow: none;
    padding: 0;
    border: 0;
  }
  .tab-panel .response-header { flex: 0 0 auto; }
  /* Note result area fills and scrolls */
  .tab-panel #aiResponseText,
  .tab-panel .ai-response-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    max-height: none;
    overflow: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  /* Transcription fills and scrolls */
  .tab-panel #transcriptionText,
  .tab-panel .transcription-text {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    max-height: none;
    overflow: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  /* Transcription container in tab panel */
  .tab-panel #transcriptionContainer,
  .tab-panel .transcription-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: 0;
  }

  /* Recorder container tweaks on desktop */
  .desktop-grid .recorder-container {
    text-align: left;
  }

  
  /* History panel fills and scrolls */
  .tab-panel #noteHistoryContainer,
  .tab-panel #noteHistoryContainer .card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .tab-panel #noteHistoryList,
  .tab-panel .note-history-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  .tab-panel .history-header {
    flex: 0 0 auto;
  }

}

/* Cache control styling */
.cache-control {
    margin: 10px 0;
    text-align: center;
}

.cache-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text-color);
    user-select: none;
}

.cache-toggle input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.cache-toggle-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cache-toggle-text i {
    font-size: 0.9em;
    opacity: 0.8;
}

.cache-toggle:hover .cache-toggle-text {
    color: var(--primary-color);
}

.cache-toggle input[type="checkbox"]:checked + .cache-toggle-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== ENHANCED DARK THEME STYLING ===== */
/* Enhanced card styling for dark theme */
body.dark-theme .card {
    background: linear-gradient(145deg, #111111, #0d0d0d);
    border: 1px solid #222222;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced button styling for dark theme - Softer, easier on eyes */
body.dark-theme .record-btn {
    background: linear-gradient(145deg, #cc2952, #b91c47);
    border: 1px solid #a91b42;
    box-shadow: 
        0 4px 16px rgba(204, 41, 82, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .record-btn:hover {
    background: linear-gradient(145deg, #d63058, #cc2952);
    box-shadow: 
        0 6px 20px rgba(204, 41, 82, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

body.dark-theme .action-btn {
    background: linear-gradient(145deg, #00b359, #009647);
    border: 1px solid #008a42;
    box-shadow: 
        0 4px 16px rgba(0, 179, 89, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .action-btn:hover {
    background: linear-gradient(145deg, #00c766, #00b359);
    box-shadow: 
        0 6px 20px rgba(0, 179, 89, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

body.dark-theme .clear-btn {
    background: linear-gradient(145deg, #424242, #303030);
    border: 1px solid #555555;
    color: #ffffff;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .clear-btn:hover {
    background: linear-gradient(145deg, #555555, #424242);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Enhanced workflow toggle for dark theme */
body.dark-theme .workflow-btn {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #333333;
    color: #e0e0e0;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-theme .workflow-btn-active {
    background: #00D4FF !important;
    border: 1px solid #00D4FF !important;
    color: #000000 !important;
    font-weight: 500 !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

body.dark-theme .workflow-btn-active:hover {
    background: #00E5FF !important;
    border: 1px solid #00E5FF !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.8) !important;
    transform: translateY(-1px);
}

/* Enhanced input fields for dark theme */
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme select {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #333333;
    color: #f5f5f5;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-theme input[type="email"]:focus,
body.dark-theme input[type="password"]:focus,
body.dark-theme select:focus {
    border-color: #00d4ff;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(0, 212, 255, 0.2);
}

/* Enhanced transcription area for dark theme */
body.dark-theme .transcription-text {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    color: #f5f5f5;
    border: 1px solid #333333;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced theme toggle button */
body.dark-theme .theme-toggle {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #333333;
    color: #00d4ff;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-theme .theme-toggle:hover {
    background: linear-gradient(145deg, #333333, #1a1a1a);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* Enhanced volume meter for dark theme */
body.dark-theme .volume-bar {
    background: linear-gradient(90deg, #00e676, #00d4ff, #6c5ce7);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

/* Enhanced processing indicator for dark theme */
body.dark-theme .processing-indicator .spinner {
    border: 3px solid #333333;
    border-top: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ===== NOTIFICATION STYLES ===== */
.message-container {
    position: fixed !important;
    top: 20px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: #007bff !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    z-index: 9999 !important;
    transition: opacity 0.3s ease !important;
}

.message-container.fade-out {
    opacity: 0 !important;
}

.auth-message-container {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin: 4px 0 0 0 !important;
    text-align: center !important;
    transition: opacity 0.3s ease !important;
    font-size: 0.9rem !important;
    z-index: 1000 !important;
}

.auth-message-container.fade-out {
    opacity: 0 !important;
}

.auth-error-container {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #ffebee !important;
    color: #c62828 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin: 4px 0 0 0 !important;
    text-align: center !important;
    transition: opacity 0.3s ease !important;
    font-size: 0.9rem !important;
    border: 1px solid #ef5350 !important;
    z-index: 1000 !important;
}

.auth-error-container.fade-out {
    opacity: 0 !important;
}

/* ===== MINIMAL APPLE-STYLE CONTROL PANEL ===== */
.control-panel-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: none;
}

/* Clean, minimal sections with generous spacing */
.control-panel-card .workflow-toggle-container {
    margin-bottom: 30px;
    padding: 0;
    border: none;
}

.control-panel-card .controls {
    margin-bottom: 30px;
    padding: 0;
    border: none;
}

/* Status and timer row - ultra-minimal and subtle */
.status-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.status-timer-row .recording-status {
    flex: 1;
    margin: 0;
}

.status-timer-row .timer {
    margin: 0;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 200;
    opacity: 0.7;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--text-color);
}

/* Single-line streamlined layout */
.control-panel-card .workflow-toggle-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.control-panel-card .controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 0;
    grid-column: 3;
}

/* Workflow section - horizontal layout */
.control-panel-card .workflow-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    grid-column: 1;
}

/* Horizontal workflow toggle label */
.control-panel-card .toggle-label {
    font-weight: 200;
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.02em;
    margin-bottom: 0;
    white-space: nowrap;
}

/* Compact button styling - matching toggle style */
.control-panel-card .record-btn,
.control-panel-card .action-btn,
.control-panel-card .clear-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none;
    backdrop-filter: blur(10px);
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.control-panel-card .record-btn:hover,
.control-panel-card .action-btn:hover,
.control-panel-card .clear-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Workflow toggle - compact minimal style */
.workflow-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

body.dark-theme .control-panel-card .workflow-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark-theme .control-panel-card .workflow-btn:hover:not(.workflow-btn-active) {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.control-panel-card .workflow-btn-active {
    background: #00D4FF;
    border: 1px solid #00D4FF;
    color: #000000;
    font-weight: 500;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Volume meter - ultra-minimal but visible */
.status-timer-row .volume-meter {
    height: 3px;
    width: 80px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .status-timer-row .volume-meter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-timer-row .volume-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    opacity: 1;
    transition: width 0.1s ease;
    background: linear-gradient(to right, #00d4ff, #7b68ee, #2ecc71);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}

/* Recording status indicator - ultra-minimal */
.status-timer-row .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.4;
    backdrop-filter: none;
}

/* Ultra-minimal recording status container */
.status-timer-row .recording-status {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

/* Processing indicator - whisper quiet */
.status-timer-row .processing-indicator {
    opacity: 0.5;
}

.status-timer-row .processing-indicator .spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* Revision Dropdown Styles */
.revision-dropdown {
    margin-bottom: 8px;
}

.revision-header {
    user-select: none;
    transition: color 0.2s ease;
}

.revision-header:hover {
    color: var(--primary-color);
}

.revision-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: var(--text-color);
    opacity: 0.7;
}

.revision-arrow:hover {
    opacity: 1;
}

.revision-content {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.revision-content.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.revision-content:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}
