/* API Setup Modal Styles */
.api-setup-form {
    margin: 20px 0;
}

.api-setup-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.api-setup-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    margin-bottom: 12px;
}

.api-setup-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.api-setup-help {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.api-setup-help a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.api-setup-help a:hover {
    text-decoration: underline;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.5;
    color: #111827;
    background-color: #f8fafc;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

/* Built with Bolt.new Badge - Top Right */
.bolt-badge-top-right {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bolt-badge-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    text-decoration: none;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bolt-badge-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #f9fafb;
    border-color: #d1d5db;
}

.bolt-badge-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bolt-icon-small,
.external-icon-small {
    width: 14px;
    height: 14px;
    color: #6366f1;
}

.bolt-text-small {
    color: #374151;
    white-space: nowrap;
}

.external-icon-small {
    color: #9ca3af;
}

/* App Container */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 100vw;
}

/* Tab Navigation */
.tab-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    min-width: 80px;
}

.tab-button:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.tab-button:active {
    transform: translateY(0);
}

.tab-button.active {
    color: #2563eb;
}

.tab-button:not(.active) {
    color: #6b7280;
}

.tab-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.tab-button.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 90px; /* Space for tab navigation */
    overflow-y: auto;
}

/* Tab Panels */
.tab-panel {
    display: none;
    min-height: calc(100vh - 90px);
    min-height: calc(100dvh - 90px);
}

.tab-panel.active {
    display: block;
}

/* Header */
.header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    padding: 60px 24px 40px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.bug-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.zap-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: clamp(14px, 3vw, 18px);
    color: #bfdbfe;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Language Selector */
.language-selector {
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.language-selector-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.language-selector-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: auto;
    min-width: 160px;
    max-width: 200px;
}

.language-selector-button:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.language-selector-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.language-icon {
    width: 20px;
    height: 20px;
    color: #2563eb;
    flex-shrink: 0;
}

.current-language {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.language-selector-button[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    overflow: hidden;
    animation: dropdownSlideIn 0.2s ease-out;
    min-width: 200px;
    max-width: 300px;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-dropdown-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.language-options {
    padding: 8px 0;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: left;
}

.language-option:hover {
    background: #f3f4f6;
}

.language-option.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.language-name {
    flex: 1;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

/* Language Change Notification */
.language-change-notification {
    position: fixed;
    top: 80px;
    right: 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    animation: notificationSlideIn 0.3s ease-out;
    max-width: calc(100vw - 32px);
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification-text {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

/* Content */
.content {
    padding: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.description-container {
    margin-bottom: 48px;
}

.description {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
    color: #475569;
    text-align: center;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Recording Status */
.recording-status {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    animation: slideInDown 0.3s ease-out;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #bfdbfe;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
}

/* Error and Success Messages */
.error-container,
.success-container {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.3s ease-out;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

.error-container {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.success-container {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-text {
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
}

.success-text {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

/* Recording Container */
.recording-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.recording-indicator {
    display: flex;
    align-items: center;
    background-color: #fef2f2;
    padding: 12px 20px;
    border-radius: 24px;
    margin-bottom: 32px;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1);
    animation: slideInDown 0.3s ease-out;
}

.recording-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dc2626;
    margin-right: 12px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.recording-text {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 0.025em;
}

.button-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pulse-ring {
    position: absolute;
    width: min(320px, 90vw);
    height: min(100px, 25vw);
    border-radius: 50px;
    background-color: #dc2626;
    opacity: 0.3;
    animation: pulseRing 1s infinite;
    z-index: 0;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0; }
}

.record-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 12px);
    width: min(280px, 85vw);
    height: clamp(60px, 15vw, 80px);
    border-radius: 40px;
    border: none;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #4c1d95 100%);
    color: white;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.4);
    z-index: 1;
    position: relative;
}

.record-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(124, 58, 237, 0.5);
}

.record-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.4);
}

.record-button.recording {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.4);
}

.record-button.recording:hover {
    box-shadow: 0 12px 20px rgba(220, 38, 38, 0.5);
}

.record-button.loading {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    box-shadow: 0 8px 16px rgba(156, 163, 175, 0.4);
    cursor: not-allowed;
}

.record-button.loading:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(156, 163, 175, 0.4);
}

.record-icon {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    transition: transform 0.2s ease;
}

.record-button.loading .record-icon {
    animation: spin 1s linear infinite;
}

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

.record-text {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    color: white;
}

/* Transcription Display */
.transcription-display {
    margin: 24px 0 32px;
    animation: slideInUp 0.3s ease-out;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.transcription-card {
    background: white;
    border-radius: 20px;
    padding: clamp(16px, 4vw, 24px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.transcription-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.transcription-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transcription-icon-container.loading {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.transcription-icon-container.error {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.transcription-icon {
    width: 20px;
    height: 20px;
}

.transcription-icon.loading {
    animation: spin 1.5s linear infinite;
}

.transcription-title {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 700;
    color: #111827;
    flex: 1;
    margin-left: 12px;
    min-width: 0;
}

.transcription-title.error {
    color: #dc2626;
}

.confidence-badge {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 16px;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
}

.confidence-badge.high {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.confidence-badge.medium {
    background-color: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.confidence-badge.low {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.transcription-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loading-container {
    padding: 24px 0;
    text-align: center;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2563eb;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.transcription-error {
    background-color: #fef2f2;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #fecaca;
}

.error-message {
    font-size: 15px;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.error-hint {
    font-size: 13px;
    color: #991b1b;
    font-style: italic;
    line-height: 1.4;
}

.transcription-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transcription-text-container {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 8px;
}

.transcription-text-container::-webkit-scrollbar {
    width: 4px;
}

.transcription-text-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.transcription-text-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.transcription-text-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.transcription-text {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.5;
    color: #374151;
    font-weight: 400;
}

.category-section {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: clamp(16px, 3vw, 20px);
    border: 1px solid #e5e7eb;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.category-badge.ui {
    background-color: #eff6ff;
}

.category-badge.functionality {
    background-color: #fef2f2;
}

.category-badge.performance {
    background-color: #fffbeb;
}

.category-badge.other {
    background-color: #f9fafb;
}

.category-text {
    font-size: 14px;
    font-weight: 700;
}

.category-text.ui {
    color: #2563eb;
}

.category-text.functionality {
    color: #dc2626;
}

.category-text.performance {
    color: #d97706;
}

.category-text.other {
    color: #6b7280;
}

.category-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}

/* Confidence Info Styles */
.confidence-info {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.confidence-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.confidence-value {
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

.confidence-source {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
    font-style: italic;
}

.confidence-high {
    color: #059669;
}

.confidence-medium {
    color: #d97706;
}

.confidence-low {
    color: #dc2626;
}

/* Features Section */
.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(16px, 4vw, 24px);
    padding: 0 16px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    border-radius: 50%;
    background-color: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.1);
    transition: transform 0.2s ease;
}

.feature-icon:hover {
    transform: translateY(-2px);
}

.feature-text {
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* Reports Tab */
.reports-content {
    padding: 60px 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.reports-header {
    margin-bottom: 32px;
    text-align: center;
}

.reports-title {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.reports-subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #6b7280;
    font-weight: 500;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(12px, 3vw, 16px);
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: clamp(16px, 4vw, 20px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.stat-label {
    font-size: clamp(10px, 2vw, 12px);
    color: #6b7280;
    font-weight: 600;
    line-height: 1.3;
}

.reports-list {
    margin-top: 16px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(32px, 8vw, 64px) clamp(16px, 4vw, 32px);
    text-align: center;
}

.empty-icon {
    width: clamp(48px, 10vw, 64px);
    height: clamp(48px, 10vw, 64px);
    margin-bottom: 16px;
}

.empty-title {
    font-size: clamp(18px, 3.5vw, 20px);
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.empty-description {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #6b7280;
    line-height: 1.5;
    max-width: 500px;
}

.report-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    overflow: hidden;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.report-card-content {
    padding: clamp(16px, 4vw, 24px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.report-category-badge {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.report-source-badge {
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 12px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: help;
    flex-shrink: 0;
}

.delete-button {
    padding: 8px;
    border-radius: 12px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.delete-button:hover {
    background-color: #fee2e2;
    transform: scale(1.05);
}

.report-description {
    font-size: clamp(14px, 2.5vw, 15px);
    line-height: 1.5;
    color: #374151;
    margin-bottom: 16px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timestamp-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timestamp {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.duration {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    background-color: #f3f4f6;
    padding: 6px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Settings Tab */
.settings-content {
    padding: 60px 24px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.settings-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    text-align: center;
}

.settings-icon-container {
    width: clamp(48px, 10vw, 64px);
    height: clamp(48px, 10vw, 64px);
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1);
}

.settings-header-icon {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
}

.settings-title {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.settings-subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #6b7280;
    font-weight: 500;
}

.settings-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: clamp(16px, 4vw, 20px);
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 16px;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background-color: #f8fafc;
}

.setting-item:active {
    transform: scale(0.98);
}

.setting-icon-container {
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setting-icon {
    width: clamp(20px, 4vw, 24px);
    height: clamp(20px, 4vw, 24px);
}

.setting-content {
    flex: 1;
    min-width: 0;
}

.setting-title {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.setting-description {
    font-size: clamp(12px, 2vw, 14px);
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
}

.chevron-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.settings-footer {
    margin-top: 48px;
    text-align: center;
    padding: 24px 0;
}

.version {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 8px;
}

.copyright {
    font-size: 12px;
    color: #9ca3af;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 24px);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-container {
    background: white;
    border-radius: 24px;
    max-width: min(500px, 95vw);
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    padding: clamp(24px, 6vw, 32px) clamp(24px, 6vw, 32px) 16px;
    text-align: center;
}

.modal-icon-container {
    width: clamp(64px, 12vw, 80px);
    height: clamp(64px, 12vw, 80px);
    border-radius: 50%;
    background-color: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.modal-icon {
    width: clamp(32px, 6vw, 48px);
    height: clamp(32px, 6vw, 48px);
}

.modal-title {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 600;
    color: #059669;
    margin-bottom: 16px;
}

.modal-description {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #6b7280;
    line-height: 1.5;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 clamp(24px, 6vw, 32px);
}

.audio-preview-container {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: clamp(16px, 4vw, 20px);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    text-align: center;
}

.audio-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.audio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    color: #374151;
}

.audio-button:hover {
    border-color: #2563eb;
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.audio-button:active {
    transform: translateY(0);
}

.audio-button:disabled,
.audio-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.audio-button:disabled:hover,
.audio-button.disabled:hover {
    transform: none;
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.audio-button.transcribe-button {
    border-color: #c4b5fd;
    background-color: #faf5ff;
}

.audio-button.transcribe-button:hover {
    border-color: #7c3aed;
}

.discard-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    color: #dc2626;
}

.discard-button:hover {
    border-color: #dc2626;
    background-color: #fee2e2;
    transform: translateY(-1px);
}

.discard-button:active {
    transform: translateY(0);
}

.audio-icon {
    width: 20px;
    height: 20px;
}

.audio-button-text {
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
}

/* Modal Transcription Display */
.modal-transcription-display {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: clamp(16px, 4vw, 20px);
    margin-bottom: 20px;
}

.transcribing-indicator {
    text-align: center;
    padding: 16px 0;
}

.transcribing-text {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

.modal-transcription-error {
    background-color: #fef2f2;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.modal-error-text {
    font-size: 14px;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.retry-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
}

.retry-button:hover {
    background-color: #fef2f2;
    transform: translateY(-1px);
}

.retry-icon {
    width: 16px;
    height: 16px;
}

.modal-transcription-result {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.modal-transcription-text-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 8px;
}

.modal-transcription-text-container::-webkit-scrollbar {
    width: 4px;
}

.modal-transcription-text-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.modal-transcription-text-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.modal-transcription-text {
    font-size: clamp(14px, 2.5vw, 15px);
    line-height: 1.5;
    color: #374151;
}

.modal-category-section {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.modal-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-category-icon {
    width: 16px;
    height: 16px;
}

.modal-category-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.modal-category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.modal-category-text {
    font-size: 14px;
    font-weight: 700;
}

.modal-category-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}

.modal-actions {
    background: white;
    border-top: 1px solid #f1f5f9;
    padding: clamp(16px, 4vw, 24px) clamp(24px, 6vw, 32px);
}

.transcription-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.secondary-action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    color: #6b7280;
}

.secondary-action-button:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.primary-action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.primary-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(5, 150, 105, 0.4);
}

.primary-action-button:active {
    transform: translateY(0);
}

.primary-action-button.loading {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    cursor: not-allowed;
}

.primary-action-button.loading:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(156, 163, 175, 0.3);
}

.action-icon {
    width: 18px;
    height: 18px;
}

.action-text {
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 700;
}

.primary-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(14px, 3vw, 16px) 24px;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(5, 150, 105, 0.4);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button.loading {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    cursor: not-allowed;
}

.primary-button.loading:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(156, 163, 175, 0.3);
}

.primary-icon {
    width: clamp(20px, 4vw, 24px);
    height: clamp(20px, 4vw, 24px);
}

.primary-text {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Responsive Design */
@media (min-width: 1025px) {
    /* Desktop-specific optimizations */
    .bolt-badge-top-right {
        top: 24px;
        right: 24px;
    }
    
    .bolt-badge-link {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .bolt-icon-small,
    .external-icon-small {
        width: 16px;
        height: 16px;
    }
    
    .header {
        padding: 80px 32px 50px;
    }
    
    .title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .content {
        padding: 40px 32px;
    }
    
    .language-selector {
        padding: 20px 32px;
    }
    
    .language-selector-container {
        justify-content: flex-start;
    }
    
    .language-selector-button {
        min-width: 180px;
        max-width: 220px;
    }
    
    .language-dropdown {
        min-width: 220px;
        max-width: 320px;
    }
    
    .record-button {
        width: 320px;
        height: 90px;
        font-size: 22px;
    }
    
    .record-icon {
        width: 36px;
        height: 36px;
    }
    
    .pulse-ring {
        width: 360px;
        height: 110px;
    }
    
    .features-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        gap: 32px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-text {
        font-size: 16px;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .modal-container {
        max-width: 600px;
    }
    
    .modal-header {
        padding: 40px 40px 20px;
    }
    
    .modal-body {
        padding: 0 40px;
    }
    
    .modal-actions {
        padding: 24px 40px;
    }
    
    .audio-controls {
        gap: 16px;
    }
    
    .audio-button,
    .discard-button {
        min-width: 120px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    /* Desktop hover effects */
    .tab-button:hover {
        transform: translateY(-2px);
    }
    
    .record-button:hover {
        transform: translateY(-3px);
    }
    
    .stat-card:hover {
        transform: translateY(-4px);
    }
    
    .report-card:hover {
        transform: translateY(-3px);
    }
}

/* Tablet Responsive Design */
@media (min-width: 768px) and (max-width: 1024px) {
    .bolt-badge-top-right {
        top: 20px;
        right: 20px;
    }
    
    .header {
        padding: 70px 28px 45px;
    }
    
    .content {
        padding: 36px 28px;
    }
    
    .language-selector {
        padding: 18px 28px;
    }
    
    .language-selector-button {
        min-width: 170px;
        max-width: 210px;
    }
    
    .record-button {
        width: 300px;
        height: 85px;
        font-size: 20px;
    }
    
    .record-icon {
        width: 34px;
        height: 34px;
    }
    
    .pulse-ring {
        width: 340px;
        height: 105px;
    }
    
    .features-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .modal-container {
        max-width: 550px;
    }
    
    .transcription-actions {
        flex-direction: row;
    }
}

/* Mobile Responsive Design */
@media (max-width: 767px) {
    .bolt-badge-top-right {
        top: 12px;
        right: 12px;
    }
    
    .bolt-badge-link {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .bolt-icon-small,
    .external-icon-small {
        width: 12px;
        height: 12px;
    }
    
    .header {
        padding: 50px 16px 32px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
    
    .content {
        padding: 24px 16px;
    }
    
    .language-selector {
        padding: 12px 16px;
    }
    
    .language-selector-container {
        justify-content: center;
    }
    
    .language-selector-button {
        max-width: 180px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .language-dropdown {
        max-width: 180px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .record-button {
        width: min(260px, 85vw);
        height: 70px;
        font-size: 18px;
    }
    
    .record-icon {
        width: 28px;
        height: 28px;
    }
    
    .pulse-ring {
        width: min(280px, 90vw);
        height: 90px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .reports-content,
    .settings-content {
        padding: 50px 16px 24px;
    }
    
    .modal-overlay {
        padding: 16px;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 24px 24px 16px;
    }
    
    .modal-body {
        padding: 0 24px;
    }
    
    .modal-actions {
        padding: 16px 24px;
    }
    
    .transcription-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .audio-controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .audio-button,
    .discard-button {
        min-width: 140px;
        width: 100%;
        max-width: 200px;
    }
    
    .report-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .report-category-badge {
        flex: none;
        min-width: auto;
    }
    
    .report-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .setting-item {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .setting-content {
        flex: 1;
        min-width: 200px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .bolt-badge-top-right {
        top: 8px;
        right: 8px;
    }
    
    .bolt-badge-link {
        padding: 4px 8px;
        font-size: 10px;
        gap: 3px;
    }
    
    .bolt-icon-small,
    .external-icon-small {
        width: 10px;
        height: 10px;
    }
    
    .tab-button {
        padding: 6px 12px;
        min-width: 70px;
    }
    
    .tab-label {
        font-size: 11px;
    }
    
    .language-selector-button {
        max-width: 160px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .language-dropdown {
        max-width: 160px;
    }
    
    .record-button {
        width: min(240px, 90vw);
        height: 65px;
        font-size: 16px;
    }
    
    .pulse-ring {
        width: min(260px, 95vw);
        height: 85px;
    }
    
    .features-container {
        gap: 16px;
    }
    
    .modal-header {
        padding: 20px 20px 12px;
    }
    
    .modal-body {
        padding: 0 20px;
    }
    
    .modal-actions {
        padding: 12px 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .record-button {
        border: 2px solid white;
    }
    
    .tab-button.active {
        background-color: #1d4ed8;
        color: white;
    }
    
    .error-container,
    .success-container {
        border-width: 2px;
    }
    
    .bolt-badge-link {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pulse-ring {
        animation: none;
    }
    
    .zap-icon {
        animation: none;
    }
    
    .recording-dot {
        animation: none;
    }
    
    .loading-dots .dot {
        animation: none;
    }
    
    .bolt-badge-top-right {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
.tab-button:focus-visible,
.audio-button:focus-visible,
.setting-item:focus-visible,
.bolt-badge-link:focus-visible,
.language-selector-button:focus-visible,
.language-option:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .tab-navigation,
    .modal-overlay,
    .bolt-badge-top-right,
    .language-selector {
        display: none !important;
    }
    
    .main-content {
        padding-bottom: 0;
    }
    
    .header {
        background: #3b82f6 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .header {
        padding: 30px 16px 24px;
    }
    
    .content {
        padding: 20px 16px;
    }
    
    .record-button {
        height: 60px;
    }
    
    .pulse-ring {
        height: 80px;
    }
    
    .modal-container {
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 16px 24px 12px;
    }
    
    .modal-icon-container {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .modal-icon {
        width: 36px;
        height: 36px;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
    .content {
        container-type: inline-size;
    }
    
    @container (max-width: 400px) {
        .features-container {
            grid-template-columns: 1fr;
        }
    }
    
    @container (min-width: 600px) {
        .features-container {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}