/* ==========================================================================
   Tax Ki Jankari (taxkijankari.com) - Custom Stylesheet
   Modern Indian Financial Consultancy Aesthetic (Trust Navy & Saffron)
   With Full Dark/Light Theme Engine & Interactive Chatbot UI
   ========================================================================== */

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

:root {
    --primary-navy: #0A1E3F;
    --navy-dark: #07152B;
    --navy-light: #162E5B;
    --saffron: #FF8C00;
    --saffron-dark: #E65100;
    --saffron-light: #FFF3E0;
    --emerald-trust: #059669;
    --slate-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E293B;
    background-color: #F8FAFC;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ==========================================================================
   DARK MODE ENGINE
   ========================================================================== */
html.dark {
    color-scheme: dark;
    background-color: #070e1c !important;
    color: #e2e8f0 !important;
}

html.dark body {
    background-color: #070e1c !important;
    color: #e2e8f0 !important;
}

html.dark header {
    background-color: rgba(7, 14, 28, 0.95) !important;
    border-color: #1a2942 !important;
}

html.dark .bg-white {
    background-color: #0f1c33 !important;
    color: #f1f5f9 !important;
}

html.dark .bg-slate-50 {
    background-color: #0b1527 !important;
}

html.dark .bg-slate-100 {
    background-color: #13223d !important;
}

html.dark .bg-slate-100\/70 {
    background-color: #091222 !important;
}

html.dark .border-slate-100,
html.dark .border-slate-200 {
    border-color: #1e3050 !important;
}

html.dark .border-slate-300 {
    border-color: #273e65 !important;
}

html.dark .text-slate-900,
html.dark .text-navy-950,
html.dark .text-slate-800 {
    color: #f8fafc !important;
}

html.dark .text-slate-700,
html.dark .text-slate-600 {
    color: #cbd5e1 !important;
}

html.dark .text-slate-500 {
    color: #94a3b8 !important;
}

html.dark input,
html.dark select,
html.dark textarea {
    background-color: #0b1527 !important;
    color: #f8fafc !important;
    border-color: #1e3050 !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
    border-color: #f97316 !important;
}

html.dark .mobile-sticky-action-bar {
    background-color: #0b1527 !important;
    border-color: #1e3050 !important;
}

html.dark #mobile-nav-drawer {
    background-color: #0f1c33 !important;
}

html.dark .bg-amber-50,
html.dark .bg-amber-50\/60 {
    background-color: rgba(69, 39, 16, 0.35) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

html.dark .text-amber-950,
html.dark .text-amber-900,
html.dark .text-amber-800 {
    color: #fde68a !important;
}

html.dark .bg-emerald-50 {
    background-color: rgba(6, 78, 59, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

html.dark .text-emerald-900,
html.dark .text-emerald-800 {
    color: #a7f3d0 !important;
}

html.dark .bg-orange-50 {
    background-color: rgba(124, 45, 18, 0.25) !important;
    border-color: rgba(251, 146, 60, 0.25) !important;
}

html.dark .bg-blue-50,
html.dark .bg-blue-50\/80 {
    background-color: rgba(30, 58, 138, 0.25) !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
}

html.dark .text-blue-950,
html.dark .text-blue-900,
html.dark .text-blue-800 {
    color: #bfdbfe !important;
}

/* Gradients */
.bg-gradient-saffron {
    background: linear-gradient(135deg, #FF8C00 0%, #FF5722 100%);
}

.text-gradient-saffron {
    background: linear-gradient(135deg, #FF8C00 0%, #FF5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-navy-gradient {
    background: linear-gradient(135deg, #0A1E3F 0%, #061124 100%);
}

.bg-navy-hero {
    background: radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
                #07152B;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
html.dark ::-webkit-scrollbar-track {
    background: #070e1c;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #1e3050;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF8C00;
}

/* Card Glow Effect */
.card-hover-saffron {
    transition: all 0.3s ease;
}
.card-hover-saffron:hover {
    border-color: rgba(255, 140, 0, 0.4);
    box-shadow: 0 12px 30px -10px rgba(255, 140, 0, 0.15);
    transform: translateY(-3px);
}

/* Form Inputs Focus */
.form-input-focus:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

/* Theme Switcher Button Animation */
.theme-toggle-btn {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle-btn:active {
    transform: scale(0.9) rotate(15deg);
}

/* ==========================================================================
   AI TAX ASSISTANT CHATBOT UI
   ========================================================================== */
#tax-chatbot-window {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-bubble-user {
    background: linear-gradient(135deg, #FF8C00 0%, #EA580C 100%);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.chat-bubble-bot {
    background: #F1F5F9;
    color: #1E293B;
    border-bottom-left-radius: 4px;
}

html.dark .chat-bubble-bot {
    background: #16243d;
    color: #F1F5F9;
}

.chat-prompt-pill {
    transition: all 0.2s ease;
}
.chat-prompt-pill:hover {
    transform: translateY(-1px);
    border-color: #FF8C00;
}

/* Responsive Sticky Footer for Mobile */
@media (max-width: 768px) {
    .mobile-sticky-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 45;
        background: #FFFFFF;
        border-top: 1px solid #E2E8F0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    }
    body {
        padding-bottom: 72px;
    }
}

/* Printing styles */
@media print {
    .no-print, header, footer, #tax-chatbot-toggle, #tax-chatbot-window, .mobile-sticky-action-bar {
        display: none !important;
    }
}
