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

/* Custom styles variables */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --bmc-yellow: #FFDD00;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--bg-dark);
        color: var(--text-light);
    }
    input, summary, #fileList, textarea {
        color: #e5e7eb;
        background-color: #1e293b; /* Slate-800 */
        border-color: #334155; /* Slate-700 */
    }
}

/* Utilities */
.font-cookie { font-family: 'Cookie', cursive; }
.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    transition: all 0.2s ease;
}
.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Navbar Button */
.bmc-button {
    background-color: var(--bmc-yellow);
    color: #000000 !important;
    font-family: 'Cookie', cursive, sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}
.bmc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Coffee Steam Animation */
@keyframes steam {
    0% { transform: translateY(0) opacity(1); }
    100% { transform: translateY(-10px) opacity(0); }
}
.steam-1 { animation: steam 2s infinite 0.2s; }
.steam-2 { animation: steam 2s infinite 0.6s; }
.steam-3 { animation: steam 2s infinite 1s; }

/* Logo SVG Colors */
.logo-text { color: #1e293b; }
.dark .logo-text { color: #f1f5f9; }
.logo-svg .main-path { fill: #3b82f6; }
.logo-svg .secondary-path { fill: #60a5fa; }
.dark .logo-svg .secondary-path { fill: #93c5fd; }

/* Modal Styles */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}
.modal.active .modal-content {
    transform: scale(1);
}
.star-rating button {
    transition: color 0.2s;
}
.star-rating button:hover,
.star-rating button.active {
    color: #FFDD00;
}

/* Chat Widget Styles */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    transition: transform 0.3s ease;
}
.chat-widget-btn:hover { transform: scale(1.1); }
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    z-index: 49;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-window.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.chat-messages { scrollbar-width: thin; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(0, -10px); }
    100% { transform: translate(0, 0); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}
.animate-pulse-ring::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Typing Indicator */
.typing-indicator { display: flex; align-items: center; gap: 3px; }
.typing-indicator span {
    width: 6px; height: 6px; background-color: currentColor; border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both; opacity: 0.7;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); }
}

/* Input Focus Styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* File List */
#fileList {
    max-height: 400px;
    overflow-y: auto;
}

/* Loading Spinner Animation */
.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #3b82f6;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* AI Gradient Text */
.ai-gradient-text {
    background: linear-gradient(to right, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-box-border {
    position: relative;
    z-index: 0;
}
.ai-box-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 0.75rem;
    background: linear-gradient(45deg, #4f46e5, #9333ea, #ec4899);
    z-index: -1;
    opacity: 0.3;
    filter: blur(6px);
}

/* Custom Alert */
#customAlert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
#customAlert.show { opacity: 1; visibility: visible; }
