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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

/* Landing Page Container */
#landing-page {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1920&h=1080&fit=crop') center top/cover;
    background-attachment: fixed;
}
.onboarding-form h3 {
    margin: 24px 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #2D5A4A;
}

.onboarding-form h3:first-child {
    margin-top: 0;
}

.intention-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin-bottom: 8px;
}

.intention-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.intention-options label:hover {
    background: #e9ecef;
    border-color: #2D5A4A;
}

.intention-options input[type="radio"]:checked + span,
.intention-options label:has(input[type="radio"]:checked) {
    background: #e8f5e8;
    border-color: #2D5A4A;
    color: #2D5A4A;
    font-weight: 500;
}

.onboarding-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 12px 4px 0;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
}

.onboarding-actions {
    margin-top: 32px;
    text-align: center;
}

.session-quick-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.session-quick-actions .mini-link {
    background: transparent;
    color: #0ea5e9;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
}
.session-quick-actions .mini-link:hover { text-decoration: underline; }
.session-quick-actions .sep { color: #94a3b8; font-size: 12px; }

.page.active {
    display: block;
}

/* Forest Header */
.forest-header {
    background: transparent;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo h1 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 30px;
}
.site-footer {
    background: #0b1220;
    color: #94a3b8;
    padding: 16px 20px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-center { width: 100%; display: flex; justify-content: center; gap: 16px; }
.footer-links a { color: #94a3b8; margin-right: 16px; }
.footer-links a:hover { color: #e2e8f0; }
.footer-links .mini-link { background: transparent; color: #94a3b8; border: none; cursor: pointer; }
.footer-links .mini-link:hover { color: #e2e8f0; text-decoration: underline; }
.footer-feedback { display: flex; gap: 8px; align-items: center; }
.footer-feedback input { background: #0f172a; border: 1px solid #1f2937; color: #e2e8f0; padding: 6px 8px; border-radius: 6px; }
.footer-feedback .mini-send { background: #0ea5e9; color: white; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.footer-feedback .mini-send:hover { background: #0284c7; }

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Ensure header links are visible on non-landing pages (light backgrounds) */
.page:not(#landing-page) .forest-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.page:not(#landing-page) .forest-header .logo h1,
.page:not(#landing-page) .forest-header .main-nav a {
    color: #0f172a;
}

/* Landing Page */
.landing-main {
    background: transparent;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.animated-word {
    display: inline-block;
    min-width: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-weight: 800;
    transition: color 0.6s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.animated-word::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.word-fade-in {
    animation: wordFadeIn 0.8s ease-in-out;
}

.word-fade-out {
    animation: wordFadeOut 0.8s ease-in-out;
}

@keyframes wordFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wordFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Animated word vibrant color rotation */
.word-color-0 { color: #ff5a5f; }   /* coral red */
.word-color-1 { color: #ffd166; }   /* warm yellow */
.word-color-2 { color: #06d6a0; }   /* mint green */
.word-color-3 { color: #118ab2; }   /* teal blue */
.word-color-4 { color: #a855f7; }   /* violet */
.word-color-5 { color: #f97316; }   /* vivid orange */
.word-color-6 { color: #e11d48; }   /* rose */
.word-color-7 { color: #22c55e; }   /* bright green */

.cta-button {
    background: #2D5A4A;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: #6B8E6B;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 90, 74, 0.3);
}

/* Landing page primary CTA - transparent with white border */
#get-started-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 9999px;
}

#get-started-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Selection Pages */
.selection-main {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.selection-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2D5A4A;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

/* Companion Page */
.companion-main {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

.companion-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2D5A4A;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.companion-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.companion-grid { display:none; }

/* Companion carousel */
.companion-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 16px auto;
}

.companion-track {
    overflow: hidden;
    display: flex;
    scroll-behavior: smooth;
}

.companion-track .companion-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #2D5A4A;
    color: #2D5A4A;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

.carousel-dots { text-align: center; margin-top: 8px; }
.carousel-dots button {
    width: 8px; height: 8px; border-radius: 9999px;
    border: none; background: #cbd5e1; margin: 0 4px; cursor: pointer;
}
.carousel-dots button.active { background: #2D5A4A; }

.companion-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.companion-card:hover {
    transform: translateY(-5px);
    border-color: #2D5A4A;
    box-shadow: 0 8px 30px rgba(45, 90, 74, 0.2);
}

.companion-image { width: 100%; height: 360px; overflow: hidden; position: relative; }

.companion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.companion-card:hover .companion-image img {
    transform: scale(1.05);
}

/* Per-companion image tuning (companion page only) */
.companion-card[data-companion="winston"] .companion-image img { object-position: center top; }
.companion-card[data-companion="marcus"] .companion-image img { object-position: center top; }
.companion-card[data-companion="arjun"] .companion-image img { object-position: center top; }
.companion-card[data-companion="mei"] .companion-image img { object-position: center top; }
.companion-card[data-companion="grace"] .companion-image img { object-position: center top; }
.companion-card[data-companion="luna"] .companion-image img { object-position: center top; }

.companion-info {
    padding: 25px;
}

.companion-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2D5A4A;
    margin: 0 0 8px 0;
}

.companion-tagline {
    font-size: 16px;
    font-weight: 600;
    color: #6B8E6B;
    margin: 0 0 15px 0;
}

.companion-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Teal Grid */
.teal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Larger layout specifically for the settings photo grid */
.photo-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 28px;
}

.grid-item {
    background: #2D5A4A;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: #6B8E6B;
    box-shadow: 0 10px 30px rgba(45, 90, 74, 0.3);
}

.grid-item.selected {
    border-color: #6B8E6B;
    background: #6B8E6B;
}

.photo-grid .grid-item {
    background: transparent;
    border: none;
    padding: 0;
    min-height: 0;
}

.photo-tile {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-item:hover .photo-tile {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.grid-content {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.grid-content i {
    font-size: 48px;
    margin-bottom: 10px;
}

.grid-content span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.grid-content small {
    font-size: 14px;
    opacity: 0.8;
}

.grid-content img {
    width: 120px;
    height: 180px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center top;
    border: 3px solid white;
    background: #f8f9fa;
}

/* Companion Items */
.companion-item {
    min-height: 350px;
}

.companion-item .grid-content {
    gap: 10px;
}

/* Session Page - Full Background Layout */
.session-page-with-bg {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.session-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.session-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.session-main {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.session-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.three-panel-layout {
    display: grid;
    grid-template-columns: 260px 1fr 420px;
    gap: 20px;
    min-height: 60vh; /* 60% of viewport height */
    height: auto; /* Allow natural height */
    max-height: 80vh; /* Max 80% of viewport height */
    border-radius: 12px;
    overflow: visible;
    background: transparent;
    align-items: start; /* Align items to top */
}

/* Companion Full Panel */
.companion-full-panel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 60vh; /* 60% of viewport height */
    max-height: 80vh; /* Max 80% of viewport height */
}

.companion-full-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.companion-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    text-align: center;
}

.companion-name-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Middle Panel - Stage Info */
.middle-panel {
    background: transparent;
    backdrop-filter: none;
}

.stage-info-panel {
    padding: 20px;
}

/* Stage Info */
.stage-info {
    background: transparent;
    color: #2D5A4A;
    padding: 0;
    text-align: center;
}

.stage-info h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2D5A4A;
}

.stage-info p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.stage-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 14px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.detail-item strong {
    color: #2D5A4A;
    font-weight: 600;
}

.detail-item span {
    color: #666;
    line-height: 1.4;
}

/* Setting helper text */
.setting-info.subtle {
    text-align: center;
    color: #64748b; /* slate-500 */
    margin-bottom: 16px;
    font-size: 14px;
}

/* Right Panel - Chat Sidebar */
.right-panel {
    background: rgba(13, 31, 26, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 60vh; /* Match companion panel height */
    max-height: 80vh; /* Prevent overflow beyond viewport */
    overflow: visible; /* Allow dropdown menus to extend outside */
    border: 2px solid rgba(255,255,255,0.9);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
}

.message.user {
    background: #6B8E6B;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.companion {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: auto;
}

.message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.input-container {
    margin-top: auto;
}

.message-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    resize: none;
    margin-bottom: 10px;
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Placeholder content styling */
.insight-placeholder,
.mood-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.insight-placeholder p,
.mood-placeholder p {
    margin-bottom: 10px;
}

.insight-placeholder p:last-child,
.mood-placeholder p:last-child {
    margin-bottom: 0;
}

.settings-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.input-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.session-controls-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Floating controls (voice + gear) at top-right, subtle */
.chat-floating-controls { display:none; }

.chat-floating-controls .voice-btn,
.chat-floating-controls .voice-icon-btn {
    opacity: 0.7;
}

.chat-floating-controls .voice-btn:hover,
.chat-floating-controls .voice-icon-btn:hover {
    opacity: 1;
}

.voice-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #6B8E6B;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.voice-btn:hover {
    background: #5a7a5a;
}

.voice-btn.recording {
    background: #dc2626;
    animation: pulse 1.5s infinite;
}

.voice-btn.playing {
    background: #0284c7;
}

.voice-conversation {
    background: #10b981 !important;
}

/* Send button styling */
.send-btn {
    background: #2563eb;
    display: none;
}
.send-btn:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .send-btn { display: flex; }
}

.voice-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.voice-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #6B8E6B;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.voice-icon-btn:hover {
    background: #5a7a5a;
    transform: scale(1.1);
}

.voice-icon-btn.recording {
    background: #dc2626;
    animation: pulse 1.5s infinite;
}

.voice-icon-btn.playing {
    background: #0284c7;
}

/* Session settings (gear) */
.session-settings-wrapper {
    position: relative;
}

.settings-menu {
    position: absolute;
    right: 0;
    bottom: 44px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 6px;
    min-width: 200px;
    z-index: 20;
    max-height: 50vh;
    overflow-y: auto;
}

.settings-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0f172a;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
}

.settings-menu-item:hover {
    background: #f1f5f9;
}

/* Voice Conversation Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-conversation-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Feedback Modal Styling */
#feedback-modal .modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 640px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Getting Started Modal Styling */
#getting-started-modal .modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#getting-started-modal .voice-conversation-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
}

#feedback-modal .voice-conversation-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

#feedback-modal .content-body input,
#feedback-modal .content-body textarea {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
}

#feedback-modal .content-body input:focus,
#feedback-modal .content-body textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

#feedback-modal .onboarding-actions {
    display: flex;
    justify-content: flex-start;
}

#feedback-modal .cta-button {
    background: #2563eb;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
}

#feedback-modal .cta-button:hover {
    background: #1d4ed8;
}

.voice-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.voice-conversation-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2D5A4A;
}

.voice-conversation-controls {
    display: flex;
    gap: 10px;
}

.clear-btn, .close-btn {
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover, .close-btn:hover {
    background: #e5e7eb;
}

.voice-conversation-status {
    margin-bottom: 20px;
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    color: #0369a1;
    font-weight: 500;
}

.voice-interim {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    color: #92400e;
    font-style: italic;
}

.voice-conversation-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    max-height: 300px;
}

.voice-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
}

.voice-message.user {
    background: #dbeafe;
    color: #1e40af;
    margin-left: auto;
    text-align: right;
}

.voice-message.companion {
    background: #dcfce7;
    color: #166534;
    margin-right: auto;
}

.voice-message-content strong {
    font-weight: 600;
    margin-right: 8px;
}

.voice-message-content small {
    font-size: 12px;
    opacity: 0.7;
}

.voice-conversation-actions {
    text-align: center;
}

.voice-conversation-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #2D5A4A;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.voice-conversation-btn:hover {
    background: #6B8E6B;
}

.voice-conversation-btn.listening {
    background: #dc2626;
    animation: pulse 1.5s infinite;
}

.voice-conversation-btn.speaking {
    background: #0284c7;
}

/* Content Pages */
.content-main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

.content-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2D5A4A;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.content-body {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.content-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2D5A4A;
    margin: 40px 0 20px 0;
    letter-spacing: 0.5px;
}

.content-body h3:first-child {
    margin-top: 0;
}

.about-actions {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2D5A4A;
}

.about-actions p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.about-actions p:last-child {
    margin-bottom: 0;
}

.inline-link {
    color: #2D5A4A;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: #6B8E6B;
    border-bottom-color: #6B8E6B;
}

.inline-link-btn {
    background: none;
    border: none;
    color: #2D5A4A;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}

.inline-link-btn:hover {
    color: #6B8E6B;
    border-bottom-color: #6B8E6B;
}

/* Getting Started Modal */
.getting-started-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2D5A4A;
    margin: 0 0 16px 8px;
}

.process-steps {
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2D5A4A;
}

.step-number {
    background: #2D5A4A;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2D5A4A;
    margin-bottom: 5px;
}

.step-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.security-notice, .upgrade-notice {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0ea5e9;
}

.security-notice h4, .upgrade-notice h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0369a1;
    margin: 0 0 10px 0;
}

.security-notice p, .upgrade-notice p {
    margin: 0;
    font-size: 14px;
    color: #0369a1;
    line-height: 1.5;
}

.upgrade-notice {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.upgrade-notice h4 {
    color: #059669;
}

.upgrade-notice p {
    color: #059669;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #2D5A4A;
}

.team-member h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2D5A4A;
    margin-bottom: 8px;
}

.team-member p {
    font-size: 14px;
    color: #6B8E6B;
    font-weight: 500;
}

/* Founders */
.founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 16px;
}

@media (min-width: 800px) {
    .founders-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.founder-card {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .founder-card {
        flex-direction: column;
        align-items: center;
    }
    .founder-info {
        width: 100%;
    }
}

.founder-image {
    position: relative;
    width: 140px;
    height: 180px;
    flex-shrink: 0;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #2D5A4A;
    display: block;
}

.founder-initials {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 3px solid #2D5A4A;
    background: #e6f0ec;
    color: #2D5A4A;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 42px;
}

.founder-info h3 {
    margin: 0 0 6px 0;
    color: #2D5A4A;
}

.founder-role {
    margin: 0 0 12px 0;
    color: #6B8E6B;
    font-weight: 600;
}

.founder-bio {
    margin: 0 0 10px 0;
    color: #374151;
    line-height: 1.6;
}

.founder-contact {
    margin-top: 8px;
    color: #2D5A4A;
    font-weight: 600;
}

/* Login Options */
.login-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: #f3f4f6;
    color: #2D5A4A;
    border: 2px solid #2D5A4A;
}

.cta-button.secondary:hover {
    background: #2D5A4A;
    color: white;
}

/* Progress Page */
.progress-main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.progress-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2D5A4A;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.progress-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mood-timeline, .progress-insights {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mood-timeline h3, .progress-insights h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2D5A4A;
    margin-bottom: 20px;
}

/* Privacy Notice */
.privacy-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    z-index: 100;
}

.privacy-notice i {
    margin-right: 8px;
    color: #10b981;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .three-panel-layout .middle-panel { display: none; }
    .three-panel-layout { grid-template-columns: 250px 1fr; }
    
    .teal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .three-panel-layout {
        grid-template-columns: 180px 1fr;
        height: auto;
        max-height: none;
    }
    
    .companion-full-panel {
        height: 50vh; /* 50% of viewport height on tablet */
        max-height: 70vh; /* Max 70% of viewport height */
    }
    
    .right-panel {
        min-height: 40vh; /* Minimum 40% of viewport height */
        height: 50vh; /* 50% of viewport height on tablet */
        max-height: 70vh; /* Max 70% of viewport height */
        overflow: visible; /* Keep dropdowns visible; messages scroll inside */
        padding: 16px;
    }
    
    .session-title {
        font-size: 28px;
    }
    
    .companion-name-overlay h3 {
        font-size: 24px;
    }
    .companion-track .companion-card { grid-template-columns: 1fr; }
    .carousel-btn.prev { left: 0; }
    .carousel-btn.next { right: 0; }
    .teal-grid {
        grid-template-columns: 1fr;
    }
    .companion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .companion-image { height: 300px; }
    .intention-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .onboarding-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 12px;
    }
    .hero-title { font-size: 32px; }
    .selection-title, .session-title, .progress-title { font-size: 28px; }
    .main-nav { gap: 15px; }
    .main-nav a { font-size: 12px; }
    .input-actions {
        gap: 6px;
        flex-wrap: wrap;
    }
    .session-controls-left { flex-wrap: wrap; }
    .voice-btn { padding: 7px 10px; font-size: 11px; }
    .voice-icon-btn { width: 34px; height: 34px; font-size: 12px; }
}

@media (max-width: 480px) {
    .three-panel-layout { grid-template-columns: 1fr; height: auto; gap: 12px; }
    
    .companion-full-panel {
        height: 40vh; /* 40% of viewport height on mobile */
        max-height: 60vh; /* Max 60% of viewport height */
    }
    
    .right-panel {
        min-height: 35vh; /* Minimum 35% of viewport height */
        height: 40vh; /* 40% of viewport height on mobile */
        max-height: 60vh; /* Max 60% of viewport height */
        overflow: visible; /* Keep dropdowns visible; messages scroll inside */
        padding: 12px;
    }
    .message-input { font-size: 13px; }
    .input-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
    .session-controls-left { flex-wrap: wrap; }
    .voice-btn { padding: 6px 9px; font-size: 11px; }
    .voice-icon-btn { width: 32px; height: 32px; font-size: 12px; }
    .settings-menu { min-width: 180px; left: 0; right: auto; }
}

/* consolidated 768px rules above */

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .selection-title, .session-title, .progress-title {
        font-size: 24px;
    }
    
    .grid-item {
        padding: 30px 15px;
        min-height: 150px;
    }
    
    .grid-content i {
        font-size: 36px;
    }
    
    .grid-content span {
        font-size: 16px;
    }
    
    .companion-title {
        font-size: 28px;
    }
    
    .companion-subtitle {
        font-size: 16px;
    }
    
    .companion-info {
        padding: 20px;
    }
    
    .companion-info h3 {
        font-size: 20px;
    }
    
    .companion-description {
        font-size: 13px;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* ==============================================
   AUTHENTICATION STYLES
   ============================================== */

/* Auth navigation */
.auth-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn.primary {
    background: #2D5A4A;
    border-color: #2D5A4A;
}

.nav-btn.primary:hover {
    background: #1e3d32;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

/* Form styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2D5A4A;
    box-shadow: 0 0 0 2px rgba(45, 90, 74, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

/* Account sections */
.account-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.account-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.account-section h4 {
    margin-bottom: 16px;
    color: #2D5A4A;
    font-size: 16px;
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #2D5A4A;
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: #2D5A4A;
    background: #f8fffe;
    position: relative;
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2D5A4A;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #2D5A4A;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #2D5A4A;
    margin-bottom: 16px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.pricing-card .features li {
    padding: 6px 0;
    color: #4b5563;
}

.pricing-card .features li::before {
    content: "✓";
    color: #2D5A4A;
    font-weight: bold;
    margin-right: 8px;
}

/* ==============================================
   PROGRESS DASHBOARD STYLES
   ============================================== */

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.progress-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.time-range-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

/* Quick mood section */
.quick-mood-section {
    background: #f8fffe;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.quick-mood-section h3 {
    margin-bottom: 16px;
    color: #2D5A4A;
}

.mood-rating-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mood-rating-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 60px;
}

.mood-rating-btn:hover {
    border-color: #2D5A4A;
    background: #f0fdf4;
}

.mood-rating-btn:active {
    transform: scale(0.95);
}

.mood-notes {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #2D5A4A;
    box-shadow: 0 4px 12px rgba(45, 90, 74, 0.1);
}

.stat-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 8px;
}

.stat-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2D5A4A;
}

/* Chart container */
.chart-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    height: 400px;
    position: relative;
}

/* Companion preferences */
.companion-preferences {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.companion-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.companion-stat:last-child {
    border-bottom: none;
}

.companion-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #2D5A4A;
}

.companion-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.companion-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.companion-progress {
    height: 100%;
    background: linear-gradient(90deg, #2D5A4A, #4ade80);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Insights section */
.insights-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.insight-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.insight-text {
    color: #4b5563;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .mood-rating-buttons {
        justify-content: center;
    }
    
    .mood-notes {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mood-notes input,
    .mood-notes button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Session Limit Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 560px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 20px;
    color: #6b7280;
    line-height: 1.6;
}

.benefits-list {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.benefits-list h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.benefits-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits-list li {
    padding: 6px 0;
    color: #4b5563;
    font-size: 14px;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.modal-footer .btn-primary {
    background: #3b82f6;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #2563eb;
}

.modal-footer .btn-secondary {
    background: #6b7280;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #4b5563;
}

.modal-footer .btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.modal-footer .btn-outline:hover {
    background: #f9fafb;
    color: #374151;
}

/* Voice Debug Panel (Development Mode Only) */
.voice-debug {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.voice-debug-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 15px;
}

.voice-debug-title {
    color: #4CAF50;
    font-weight: bold;
}

.voice-debug-toggle span {
    font-size: 12px;
    color: #666;
}

.voice-debug-body {
    margin-top: 10px;
}

.voice-debug-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.voice-debug-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.voice-debug-controls input[type="checkbox"] {
    margin: 0;
}

.voice-debug-status {
    font-size: 12px;
    color: #666;
}

.voice-debug-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.voice-debug-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-debug-grid span {
    font-size: 14px;
    font-weight: 500;
}

.voice-debug-grid select,
.voice-debug-grid input[type="range"] {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.voice-debug-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.voice-debug-json {
    margin-top: 15px;
}

.voice-debug-json pre {
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px;
    max-height: 200px;
    overflow: auto;
    font-size: 12px;
}

/* Voice Settings Display (Development Mode Only) */
.voice-settings-display {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    border: 2px solid #2196F3;
    border-radius: 10px;
    background: rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: monospace;
    font-size: 12px;
}

/* Utility classes for replacing static inline styles */
.hidden { display: none; }
.flex { display: flex; }

/* Spacing utilities */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mr-10 { margin-right: 10px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.mt-12 { margin-top: 12px; }

/* Width/height utilities */
.w-100 { width: 100%; }
.w-200 { width: 200px; }
.w-300 { width: 300px; }
.h-120 { height: 120px; }

/* Modal width utilities */
.mw-400 { max-width: 400px; }
.mw-600 { max-width: 600px; }
.mw-700 { max-width: 700px; }
.mw-800 { max-width: 800px; }

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

.voice-settings-title {
    color: #2196F3;
    font-weight: bold;
}

.voice-settings-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
}

.voice-settings-content {
    /* Content styling handled by individual elements */
}

.voice-settings-item {
    margin-bottom: 8px;
}

.voice-settings-item strong {
    font-weight: bold;
}

.voice-settings-value {
    color: #4CAF50;
}
