:root {
    --lumerai-blue: #5B8EC6;        /* Exact Lumerai logo blue */
    --lumerai-blue-dark: #4A7AB5;   /* Darker shade for hovers */
    --lumerai-blue-light: #4175B1;  /* Lighter shade */
    --lumerai-navy: #2B5A8E;        /* Navy for header */
    --surface: #f8f9fa;
    --border-color: #e9ecef;
}

body { 
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf4 100%);
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* Lumerai Brand Colors */
.lumerai-blue { 
    background-color: var(--lumerai-blue-light); 
}

.lumerai-blue:hover:not(:disabled) { 
    background-color: var(--lumerai-blue-light); 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 142, 198, 0.4);
}

.lumerai-blue-text { 
    color: var(--lumerai-blue-light); 
}

/* Top Header Bar - Match Lumerai Logo Exactly */
.fixed.top-0 {
    background: var(--lumerai-blue-light);
    border-bottom: none;
}

.fixed.top-0 .text-neutral-700 {
    color: white !important;
}

/* Form Inputs */
.form-input {
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
}

.form-input:focus { 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(91, 142, 198, 0.15);
    border-color: var(--lumerai-blue-light); 
}

/* Accent Bar - Single Lumerai Blue */
.accent-bar::after { 
    content: ""; 
    display: block; 
    width: 72px; 
    height: 4px; 
    background: var(--lumerai-blue-light);
    border-radius: 999px; 
    margin: 10px auto 0; 
}

/* Card Elevation */
.elevate { 
    box-shadow: 0 20px 50px rgba(91, 142, 198, 0.08), 0 5px 15px rgba(0,0,0,0.05); 
    border: 1px solid rgba(91, 142, 198, 0.05);
}

/* Button Styles */
#callButton {
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(91, 142, 198, 0.3);
}

#callButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#hangupButton {
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

#hangupButton:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

#muteButton {
    transition: all 0.3s ease;
}

#muteButton:hover:not(:disabled) {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

/* Toast Notifications */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lumerai-blue-light);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(91, 142, 198, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    font-weight: 500;
}

#toast.visible {
    opacity: 1;
    visibility: visible;
}

/* Transcript Bubbles */
@keyframes bubble-in { 
    from { opacity: 0; transform: translateY(10px) scale(0.95); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    animation: bubble-in 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.agent-bubble {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-bubble {
    background: var(--lumerai-blue-light);
    color: white;
    border-bottom-right-radius: 6px;
    align-self: flex-end;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(91, 142, 198, 0.3);
}

#transcript {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Audio Visualizer */
.audio-visualizer { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 5px; 
    height: 40px; 
}

.audio-bar { 
    width: 4px; 
    background: var(--lumerai-blue-light);
    border-radius: 3px; 
    animation: pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(91, 142, 198, 0.4);
}

.audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes pulse { 
    0%, 100% { 
        height: 10px; 
        opacity: 0.5; 
    } 
    50% { 
        height: 32px; 
        opacity: 1; 
    } 
}

/* Loading Spinner */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Labels */
label {
    color: #374151;
    font-weight: 500;
}

/* Input Fields */
input, textarea {
    font-size: 15px;
}

input:focus, textarea:focus {
    background-color: #ffffff;
}

/* Status Text Colors */
.text-green-600 { color: #059669; }
.text-blue-600 { color: var(--lumerai-blue-light); }
.text-red-600 { color: #dc2626; }
.text-gray-700 { color: #374151; }

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 640px) {
    .accent-bar::after {
        width: 60px;
        height: 3px;
    }
    
    .chat-bubble {
        max-width: 90%;
    }
}