/* Custom animations and styling for QCI Demo Portal */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    color: #1F2937;
}

h1, h2, h3, h4, h5, h6, .merriweather {
    font-family: 'Merriweather', serif;
}

/* Color Variables */
:root {
    --qci-navy: #0F3B66;
    --qci-saffron: #E65100;
    --qci-green: #10B981;
    --qci-amber: #F59E0B;
    --qci-red: #EF4444;
}

.text-qci-navy { color: var(--qci-navy); }
.bg-qci-navy { background-color: var(--qci-navy); }
.border-qci-navy { border-color: var(--qci-navy); }
.text-qci-saffron { color: var(--qci-saffron); }
.bg-qci-saffron { background-color: var(--qci-saffron); }

/* OCR Scanner Animation */
.scanner-container {
    position: relative;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--qci-saffron);
    box-shadow: 0 0 10px var(--qci-saffron), 0 0 20px var(--qci-saffron);
    animation: scan 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
    display: none;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.parsing-active .scanner-line {
    display: block;
}

/* Pulsing Badge */
.pulse-badge {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Fade in up animation */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chatbot Styles */
.chatbot-widget {
    box-shadow: 0 10px 25px -5px rgba(15, 59, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-messages {
    scroll-behavior: smooth;
}

.typing-dot {
    animation: typingBounce 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; }

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

/* Glassmorphism effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Scrollbar for inner elements */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #F1F5F9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Print Styles */
@media print {
    body { background-color: #FFFFFF; }
    .no-print { display: none !important; }
    .print-only { display: block !important; }
    .shadow-lg, .shadow-md, .shadow { box-shadow: none !important; }
}
