/* Axia Insurance — Custom Styles extending Tailwind */

body {
    font-family: 'Inter', sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ====== SCENARIO TABS ====== */
.scenario-tab {
    cursor: pointer;
    border: 1px solid transparent;
}

.scenario-tab.active[data-scenario="renewal"] {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    color: white;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.4);
    border-color: rgba(13, 148, 136, 0.3);
}

.scenario-tab.active[data-scenario="lifeevents"] {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.3);
}

.scenario-tab.active[data-scenario="claims"] {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ====== SCENARIO BADGES ====== */
.scenario-badge-renewal {
    background: rgba(13, 148, 136, 0.15);
    color: #5eead4;
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.scenario-badge-lifeevents {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.scenario-badge-claims {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ====== LEFT PANEL THEMES ====== */
#left-panel.theme-renewal {
    background: linear-gradient(180deg, #042f2e 0%, #0c1222 50%, #111827 100%);
    border-color: #134e4a;
}

#left-panel.theme-lifeevents {
    background: linear-gradient(180deg, #2e1065 0%, #0c1222 50%, #111827 100%);
    border-color: #4c1d95;
}

#left-panel.theme-claims {
    background: linear-gradient(180deg, #451a03 0%, #0c1222 50%, #111827 100%);
    border-color: #78350f;
}

/* Avatar glow per scenario */
#left-panel.theme-renewal #avatar-container {
    border-color: #134e4a;
    box-shadow: 0 0 50px rgba(13, 148, 136, 0.15);
}

#left-panel.theme-lifeevents #avatar-container {
    border-color: #4c1d95;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.15);
}

#left-panel.theme-claims #avatar-container {
    border-color: #78350f;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.15);
}

/* Active call glow per scenario */
#left-panel.theme-renewal .active-glow {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 60px rgba(13, 148, 136, 0.35) !important;
}

#left-panel.theme-lifeevents .active-glow {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.35) !important;
}

#left-panel.theme-claims .active-glow {
    border-color: #f59e0b !important;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.35) !important;
}

/* Pulse ring colors per theme */
#left-panel.theme-renewal #pulse-ring-1 { border-color: #14b8a6; }
#left-panel.theme-renewal #pulse-ring-2 { border-color: #5eead4; }

#left-panel.theme-lifeevents #pulse-ring-1 { border-color: #8b5cf6; }
#left-panel.theme-lifeevents #pulse-ring-2 { border-color: #a78bfa; }

#left-panel.theme-claims #pulse-ring-1 { border-color: #f59e0b; }
#left-panel.theme-claims #pulse-ring-2 { border-color: #fbbf24; }

/* Animations for Mic Orb */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-pulse-ring {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    display: block !important;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Chat bubble shapes */
.chat-bubble {
    position: relative;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.4;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease-out;
}

.chat-bubble.user {
    background-color: #0d9488;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background-color: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #e2e8f0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab switch animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.scenario-animate {
    animation: slideIn 0.3s ease-out;
}

/* Typing indicator */
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

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

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