* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #050505 100%);
    height: 100vh;
    overflow: hidden;
    color: #ffffff;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

/* Main Voice Interface */
.voice-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

/* Voice Orb - ChatGPT Style */
.voice-orb-container {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-orb {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Hardware acceleration for Safari iOS */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    will-change: transform, opacity;
}

.voice-orb.disconnected {
    background: #2a2b32;
    transform: scale(1);
}

.orb-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    text-align: center;
    white-space: nowrap;
}

.voice-orb.disconnected .orb-text,
.voice-orb.connecting .orb-text {
    opacity: 1;
}

.voice-orb.connecting {
    background: #e8e8e8;  /* Same color as waiting state */
    opacity: 0.7;         /* More transparent */
    transform: scale(0.95); /* Same size as waiting state */
    -webkit-transform: scale(0.95);
    animation: gentleConnecting 2.5s ease-in-out infinite;
    -webkit-animation: gentleConnecting 2.5s ease-in-out infinite;
}

/* Loading Spinner Styles */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    z-index: 5;
    display: none;
    pointer-events: none;
}

.spinner-ring {
    width: 32px;
    height: 32px;
    border: 3px solid transparent;
    border-top: 3px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: spinnerRotate 1s linear infinite;
    -webkit-animation: spinnerRotate 1s linear infinite;
}

/* Show spinner and hide waveform during connecting and waiting for agent */
.voice-orb.connecting .loading-spinner,
.voice-orb.waiting-for-agent .loading-spinner {
    display: block;
}

.voice-orb.connecting .voice-waveform,
.voice-orb.waiting-for-agent .voice-waveform {
    opacity: 0;
    visibility: hidden;
}

.voice-orb.connected {
    background: #ffffff;
    transform: scale(1);
}

.voice-orb.waiting-for-agent {
    background: #e8e8e8;  /* More muted gray */
    opacity: 0.8;         /* Slightly transparent */
    transform: scale(0.95); /* Slightly smaller */
    box-shadow: 0 0 0 1px rgba(200, 200, 200, 0.3); /* Muted shadow */
}

.voice-orb.agent-disconnected {
    background: #f5f2f2 !important;  /* Very subtle reddish-gray background */
    border: 1px solid rgba(200, 100, 100, 0.4) !important; /* Subtle red-tinted border */
    box-shadow: 0 0 0 1px rgba(200, 100, 100, 0.15) !important; /* Very subtle red shadow */
    transform: scale(0.95);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.voice-orb.agent-disconnected .spinner-ring {
    border-top-color: rgba(180, 80, 80, 0.7) !important; /* Subtle reddish spinner */
}

.voice-orb.waiting-for-agent .waveform-bar {
    background: #999999 !important;  /* Muted gray bars */
    opacity: 0.4;         /* Semi-transparent */
    transform: scaleY(0.15) translateZ(0) !important;
    -webkit-transform: scaleY(0.15) translateZ(0) !important;
    animation: none !important;      /* No animation at all */
}

.voice-orb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2),
                0 10px 40px rgba(255, 255, 255, 0.1);
}

/* iOS Touch Optimization */
.voice-orb:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Prevent iOS double-tap zoom on orb */
.voice-orb {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

@keyframes gentleConnecting {
    0%, 100% {
        transform: scale(0.95);
        -webkit-transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(0.97);
        -webkit-transform: scale(0.97);
        opacity: 0.8;
    }
}

@-webkit-keyframes gentleConnecting {
    0%, 100% {
        -webkit-transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        -webkit-transform: scale(0.97);
        opacity: 0.8;
    }
}

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

@-webkit-keyframes spinnerRotate {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

/* Voice Waveform Animation - ChatGPT Style */
.voice-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
}

.waveform-bar {
    width: 6px;
    background: #000000;
    border-radius: 3px;
    height: 24px;
    transition: all 0.2s ease;
    display: block;
    transform-origin: center center;
    /* Initial scale - bars appear small */
    transform: scaleY(0.3) translateZ(0);
    -webkit-transform: scaleY(0.3) translateZ(0);
    /* Hardware acceleration for Safari iOS */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    will-change: transform;
    -webkit-will-change: transform;
}

.voice-orb.disconnected .waveform-bar {
    transform: scaleY(0.15) translateZ(0);
    -webkit-transform: scaleY(0.15) translateZ(0);
    background: #565869;
    opacity: 0.3;
}

.voice-orb.disconnected .voice-waveform {
    opacity: 0.5;
}

.voice-orb.connected .waveform-bar {
    background: #000000;
    transform: scaleY(0.15) translateZ(0);
    -webkit-transform: scaleY(0.15) translateZ(0);
    transition: transform 0.2s ease;
}

.voice-orb.speaking .waveform-bar {
    background: #000000 !important;
}

.voice-orb.user-speaking .waveform-bar {
    background: #007AFF !important;
}

/* AI Speaking - Each bar has unique organic animation */
.voice-orb.speaking .waveform-bar:nth-child(1) {
    animation: aiWave1 1.2s ease-in-out infinite;
    -webkit-animation: aiWave1 1.2s ease-in-out infinite;
}
.voice-orb.speaking .waveform-bar:nth-child(2) {
    animation: aiWave2 1.4s ease-in-out infinite;
    -webkit-animation: aiWave2 1.4s ease-in-out infinite;
}
.voice-orb.speaking .waveform-bar:nth-child(3) {
    animation: aiWave3 1.1s ease-in-out infinite;
    -webkit-animation: aiWave3 1.1s ease-in-out infinite;
}
.voice-orb.speaking .waveform-bar:nth-child(4) {
    animation: aiWave4 1.3s ease-in-out infinite;
    -webkit-animation: aiWave4 1.3s ease-in-out infinite;
}
.voice-orb.speaking .waveform-bar:nth-child(5) {
    animation: aiWave5 1.5s ease-in-out infinite;
    -webkit-animation: aiWave5 1.5s ease-in-out infinite;
}

/* User Speaking - More rhythmic patterns */
.voice-orb.user-speaking .waveform-bar:nth-child(1) {
    animation: userWave1 0.6s ease-in-out infinite;
    -webkit-animation: userWave1 0.6s ease-in-out infinite;
}
.voice-orb.user-speaking .waveform-bar:nth-child(2) {
    animation: userWave2 0.8s ease-in-out infinite;
    -webkit-animation: userWave2 0.8s ease-in-out infinite;
}
.voice-orb.user-speaking .waveform-bar:nth-child(3) {
    animation: userWave3 0.7s ease-in-out infinite;
    -webkit-animation: userWave3 0.7s ease-in-out infinite;
}
.voice-orb.user-speaking .waveform-bar:nth-child(4) {
    animation: userWave4 0.9s ease-in-out infinite;
    -webkit-animation: userWave4 0.9s ease-in-out infinite;
}
.voice-orb.user-speaking .waveform-bar:nth-child(5) {
    animation: userWave5 0.5s ease-in-out infinite;
    -webkit-animation: userWave5 0.5s ease-in-out infinite;
}

/* AI Speaking Animations - Organic and varied */
@keyframes aiWave1 {
    0% { transform: scaleY(0.3) translateZ(0); }
    25% { transform: scaleY(1.0) translateZ(0); }
    50% { transform: scaleY(0.5) translateZ(0); }
    75% { transform: scaleY(1.3) translateZ(0); }
    100% { transform: scaleY(0.3) translateZ(0); }
}

@-webkit-keyframes aiWave1 {
    0% { -webkit-transform: scaleY(0.3) translateZ(0); }
    25% { -webkit-transform: scaleY(1.0) translateZ(0); }
    50% { -webkit-transform: scaleY(0.5) translateZ(0); }
    75% { -webkit-transform: scaleY(1.3) translateZ(0); }
    100% { -webkit-transform: scaleY(0.3) translateZ(0); }
}

@keyframes aiWave2 {
    0% { transform: scaleY(0.4) translateZ(0); }
    20% { transform: scaleY(1.15) translateZ(0); }
    40% { transform: scaleY(0.65) translateZ(0); }
    60% { transform: scaleY(1.5) translateZ(0); }
    80% { transform: scaleY(0.6) translateZ(0); }
    100% { transform: scaleY(0.4) translateZ(0); }
}

@-webkit-keyframes aiWave2 {
    0% { -webkit-transform: scaleY(0.4) translateZ(0); }
    20% { -webkit-transform: scaleY(1.15) translateZ(0); }
    40% { -webkit-transform: scaleY(0.65) translateZ(0); }
    60% { -webkit-transform: scaleY(1.5) translateZ(0); }
    80% { -webkit-transform: scaleY(0.6) translateZ(0); }
    100% { -webkit-transform: scaleY(0.4) translateZ(0); }
}

@keyframes aiWave3 {
    0% { transform: scaleY(0.25) translateZ(0); }
    30% { transform: scaleY(1.6) translateZ(0); }
    60% { transform: scaleY(0.75) translateZ(0); }
    100% { transform: scaleY(0.25) translateZ(0); }
}

@-webkit-keyframes aiWave3 {
    0% { -webkit-transform: scaleY(0.25) translateZ(0); }
    30% { -webkit-transform: scaleY(1.6) translateZ(0); }
    60% { -webkit-transform: scaleY(0.75) translateZ(0); }
    100% { -webkit-transform: scaleY(0.25) translateZ(0); }
}

@keyframes aiWave4 {
    0% { transform: scaleY(0.5) translateZ(0); }
    15% { transform: scaleY(0.85) translateZ(0); }
    35% { transform: scaleY(1.4) translateZ(0); }
    55% { transform: scaleY(0.3) translateZ(0); }
    75% { transform: scaleY(1.1) translateZ(0); }
    100% { transform: scaleY(0.5) translateZ(0); }
}

@-webkit-keyframes aiWave4 {
    0% { -webkit-transform: scaleY(0.5) translateZ(0); }
    15% { -webkit-transform: scaleY(0.85) translateZ(0); }
    35% { -webkit-transform: scaleY(1.4) translateZ(0); }
    55% { -webkit-transform: scaleY(0.3) translateZ(0); }
    75% { -webkit-transform: scaleY(1.1) translateZ(0); }
    100% { -webkit-transform: scaleY(0.5) translateZ(0); }
}

@keyframes aiWave5 {
    0% { transform: scaleY(0.6) translateZ(0); }
    40% { transform: scaleY(1.25) translateZ(0); }
    70% { transform: scaleY(0.9) translateZ(0); }
    100% { transform: scaleY(0.6) translateZ(0); }
}

@-webkit-keyframes aiWave5 {
    0% { -webkit-transform: scaleY(0.6) translateZ(0); }
    40% { -webkit-transform: scaleY(1.25) translateZ(0); }
    70% { -webkit-transform: scaleY(0.9) translateZ(0); }
    100% { -webkit-transform: scaleY(0.6) translateZ(0); }
}

/* User Speaking Animations - More rhythmic and punchy */
@keyframes userWave1 {
    0%, 100% { transform: scaleY(0.3) translateZ(0); }
    50% { transform: scaleY(1.2) translateZ(0); }
}

@-webkit-keyframes userWave1 {
    0%, 100% { -webkit-transform: scaleY(0.3) translateZ(0); }
    50% { -webkit-transform: scaleY(1.2) translateZ(0); }
}

@keyframes userWave2 {
    0%, 100% { transform: scaleY(0.5) translateZ(0); }
    25% { transform: scaleY(1.35) translateZ(0); }
    75% { transform: scaleY(0.85) translateZ(0); }
}

@-webkit-keyframes userWave2 {
    0%, 100% { -webkit-transform: scaleY(0.5) translateZ(0); }
    25% { -webkit-transform: scaleY(1.35) translateZ(0); }
    75% { -webkit-transform: scaleY(0.85) translateZ(0); }
}

@keyframes userWave3 {
    0%, 100% { transform: scaleY(0.4) translateZ(0); }
    33% { transform: scaleY(1.5) translateZ(0); }
    66% { transform: scaleY(0.65) translateZ(0); }
}

@-webkit-keyframes userWave3 {
    0%, 100% { -webkit-transform: scaleY(0.4) translateZ(0); }
    33% { -webkit-transform: scaleY(1.5) translateZ(0); }
    66% { -webkit-transform: scaleY(0.65) translateZ(0); }
}

@keyframes userWave4 {
    0%, 100% { transform: scaleY(0.25) translateZ(0); }
    20% { transform: scaleY(1.0) translateZ(0); }
    60% { transform: scaleY(1.25) translateZ(0); }
    80% { transform: scaleY(0.6) translateZ(0); }
}

@-webkit-keyframes userWave4 {
    0%, 100% { -webkit-transform: scaleY(0.25) translateZ(0); }
    20% { -webkit-transform: scaleY(1.0) translateZ(0); }
    60% { -webkit-transform: scaleY(1.25) translateZ(0); }
    80% { -webkit-transform: scaleY(0.6) translateZ(0); }
}

@keyframes userWave5 {
    0%, 100% { transform: scaleY(0.65) translateZ(0); }
    40% { transform: scaleY(1.1) translateZ(0); }
}

@-webkit-keyframes userWave5 {
    0%, 100% { -webkit-transform: scaleY(0.65) translateZ(0); }
    40% { -webkit-transform: scaleY(1.1) translateZ(0); }
}

/* Glow Effect */
.voice-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Hardware acceleration for Safari iOS */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.voice-orb.connected .voice-glow {
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite;
    -webkit-animation: glow 2s ease-in-out infinite;
}

.voice-orb.user-speaking .voice-glow {
    background: radial-gradient(circle, rgba(0, 122, 255, 0.3) 0%, transparent 70%);
    animation: simpleGlow 2s ease-in-out infinite;
    -webkit-animation: simpleGlow 2s ease-in-out infinite;
}

.voice-orb.speaking .voice-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: simpleGlow 2s ease-in-out infinite;
    -webkit-animation: simpleGlow 2s ease-in-out infinite;
}

@keyframes simpleGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

@-webkit-keyframes simpleGlow {
    0%, 100% { -webkit-transform: scale(1); opacity: 0.6; }
    50% { -webkit-transform: scale(1.15); opacity: 1; }
}

@keyframes glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@-webkit-keyframes glow {
    0%, 100% { -webkit-transform: scale(1); opacity: 0.5; }
    50% { -webkit-transform: scale(1.2); opacity: 0.8; }
}

/* Click hint */
.click-hint {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    animation: fadeIn 1s ease;
    transition: opacity 0.3s ease;
}

.click-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mute Button */
.mute-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.mute-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Hardware acceleration for Safari iOS */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, background-color, color;
    /* Prevent iOS interaction issues */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.mute-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translate3d(0, 0, 0) scale(1.1);
    -webkit-transform: translate3d(0, 0, 0) scale(1.1);
}

.mute-button:active {
    transform: translate3d(0, 0, 0) scale(0.95);
    -webkit-transform: translate3d(0, 0, 0) scale(0.95);
    transition: transform 0.1s ease;
}

.mute-button.muted {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.mute-button.muted:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.mute-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.mute-button .mic-off {
    display: none;
}

.mute-button.muted .mic-on {
    display: none;
}

.mute-button.muted .mic-off {
    display: block;
}

/* Real-time Transcription Display */
.transcription-display {
    width: 100%;
    max-width: 600px;
    min-height: 120px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.transcription-line {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.transcription-line.entering {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
}

.transcription-line.current {
    font-size: 20px;
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.transcription-line.previous {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
    transform: translateY(0) translateZ(0);
}

.transcription-line.older {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.6;
    transform: translateY(-2px) translateZ(0);
}

.transcription-line.user {
    color: rgba(255, 255, 255, 0.7);
}

.transcription-line.user.previous {
    color: rgba(255, 255, 255, 0.5);
}

.transcription-line.user.older {
    color: rgba(255, 255, 255, 0.25);
}

.transcription-line.ai {
    color: rgba(255, 255, 255, 1);
}

.transcription-line.ai.previous {
    color: rgba(255, 255, 255, 0.7);
}

.transcription-line.ai.older {
    color: rgba(255, 255, 255, 0.35);
}

.transcription-line.system {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 18px;
}

.transcription-line.system.previous {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.transcription-line.system.older {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
}


/* Hidden Elements */
.hidden {
    display: none !important;
}

/* Debug Mode Styles */
.debug-mode .app-container {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    height: 100vh;
}

.debug-sidebar {
    display: none;
    background: #111111;
    border-top: 1px solid #1f2937;
    padding: 20px;
    overflow-y: auto;
    width: 100%;
    flex: 1;
}

.debug-mode .debug-sidebar {
    display: block;
}

.debug-mode .voice-interface {
    flex: 0 0 auto;
    height: auto;
    min-height: 300px;
}

.debug-text-bar {
    display: none;
    background: #111111;
    border-bottom: 1px solid #1f2937;
    padding: 16px 20px;
    width: 100%;
}

.debug-mode .debug-text-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.debug-text-input {
    flex: 1;
    padding: 10px 12px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 14px;
}

.debug-text-input::placeholder {
    color: #6b7280;
}

.debug-send-button {
    padding: 10px 16px;
    background: #10b981;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.debug-send-button:hover {
    background: #059669;
}

.debug-header {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f2937;
}

.debug-section {
    margin-bottom: 24px;
}

.debug-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.debug-info {
    background: #0a0a0a;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.debug-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.debug-info-row:last-child {
    margin-bottom: 0;
}

.debug-label {
    color: #9ca3af;
}

.debug-value {
    color: #e5e7eb;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
}

.debug-log {
    background: #0a0a0a;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.debug-log-entry {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    word-wrap: break-word;
}

.debug-log-entry.info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.debug-log-entry.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.debug-log-entry.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

.debug-log-entry.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.debug-timestamp {
    opacity: 0.6;
    margin-right: 8px;
}




/* Scrollbar Styles */
.debug-log::-webkit-scrollbar {
    width: 4px;
}

.debug-log::-webkit-scrollbar-track {
    background: transparent;
}

.debug-log::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 2px;
}

.debug-log::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}



/* Safari iOS Specific Optimizations */
.safari-ios .voice-orb {
    /* Force 3D acceleration on Safari iOS */
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-perspective: 1000px;
    -webkit-backface-visibility: hidden;
    /* Prevent iOS scroll bounce interference */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.safari-ios .waveform-bar {
    /* Ensure hardware acceleration for animations */
    -webkit-transform: scaleY(0.3) translateZ(0);
    transform: scaleY(0.3) translateZ(0);
    -webkit-will-change: transform;
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    /* Force layer creation */
    -webkit-transform: scaleY(0.3) translate3d(0, 0, 0);
    transform: scaleY(0.3) translate3d(0, 0, 0);
}

.safari-ios .voice-orb.speaking .waveform-bar,
.safari-ios .voice-orb.user-speaking .waveform-bar {
    /* Force GPU rendering for smoother animations */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    /* Force animation repaint for Safari */
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure animations run on GPU */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Safari-specific orb sizing and animation fixes using JavaScript detection */
.safari-browser .voice-orb-container {
    width: 240px !important;
    height: 240px !important;
}

.safari-browser .voice-orb {
    width: 240px !important;
    height: 240px !important;
}

/* Safari-specific speech animation fixes */
.safari-browser .voice-orb.speaking .waveform-bar,
.safari-browser .voice-orb.user-speaking .waveform-bar {
    /* Ensure animations work in Safari */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-animation-duration: inherit !important;
    animation-duration: inherit !important;
    -webkit-animation-iteration-count: infinite !important;
    animation-iteration-count: infinite !important;
    -webkit-animation-timing-function: ease-in-out !important;
    animation-timing-function: ease-in-out !important;
    will-change: height, transform !important;
    -webkit-will-change: height, transform !important;
}

/* Force Safari to respect the waveform animations with restart mechanism */
.safari-browser .voice-orb.speaking .waveform-bar:nth-child(1) {
    -webkit-animation: aiWave1 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: aiWave1 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.speaking .waveform-bar:nth-child(2) {
    -webkit-animation: aiWave2 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: aiWave2 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.speaking .waveform-bar:nth-child(3) {
    -webkit-animation: aiWave3 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: aiWave3 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.speaking .waveform-bar:nth-child(4) {
    -webkit-animation: aiWave4 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: aiWave4 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.speaking .waveform-bar:nth-child(5) {
    -webkit-animation: aiWave5 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: aiWave5 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}

.safari-browser .voice-orb.user-speaking .waveform-bar:nth-child(1) {
    -webkit-animation: userWave1 0.6s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: userWave1 0.6s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.user-speaking .waveform-bar:nth-child(2) {
    -webkit-animation: userWave2 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: userWave2 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.user-speaking .waveform-bar:nth-child(3) {
    -webkit-animation: userWave3 0.7s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: userWave3 0.7s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.user-speaking .waveform-bar:nth-child(4) {
    -webkit-animation: userWave4 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: userWave4 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}
.safari-browser .voice-orb.user-speaking .waveform-bar:nth-child(5) {
    -webkit-animation: userWave5 0.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation: userWave5 0.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    -webkit-animation-play-state: running !important;
    animation-play-state: running !important;
    -webkit-animation-fill-mode: both !important;
    animation-fill-mode: both !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voice-interface {
        padding: 20px;
    }

    /* Make orb even bigger on mobile for better touch interaction */
    .voice-orb-container {
        width: 140px;
        height: 140px;
    }

    .voice-orb {
        width: 140px;
        height: 140px;
    }

    /* Even bigger on mobile Safari */
    .safari-browser .voice-orb-container {
        width: 280px !important;
        height: 280px !important;
    }

    .safari-browser .voice-orb {
        width: 280px !important;
        height: 280px !important;
    }

    .debug-mode .app-container {
        flex-direction: column;
    }

    .debug-mode .debug-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50vh;
        border-left: none;
        border-top: 1px solid #1f2937;
        flex: none;
    }
}

/* Version Text - Subtle bottom-right corner */
.version-text {
    position: fixed;
    bottom: 12px;
    right: 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', monospace;
    pointer-events: none;
    user-select: none;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.version-text:hover {
    opacity: 0.6;
}

/* Booking Notification - Real-time booking updates */
.booking-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.booking-notification.visible {
    opacity: 1;
    transform: translateX(0);
}

.booking-notification-header {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-notification.success .booking-notification-header {
    color: #4ade80;
}

.booking-notification.info .booking-notification-header {
    color: #60a5fa;
}

.booking-notification.cancelled .booking-notification-header {
    color: #f87171;
}

.booking-notification-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-field {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.booking-field strong {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-right: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .booking-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}