/* ==========================================================================
   Elite Task Zone - Comprehensive Responsive & Design System Polish
   ========================================================================== */
@import url("chatbot.css");

/* Robust Material Symbols Icon Rendering (Prevents Text FOUT) */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    vertical-align: middle;
}

/* Smooth Scrolling & Box Model Safety */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Header & Logo Enhancements */
.mix-blend-multiply {
    mix-blend-mode: multiply;
}

.header-bg-solid {
    background-color: #ffffff !important;
}

/* Typography Responsive Overrides */
@media (max-width: 640px) {
    .font-hero-display, h1 {
        font-size: 2.25rem !important; /* 36px on small mobile */
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
    }

    .font-section-heading, h2 {
        font-size: 1.75rem !important; /* 28px on small mobile */
        line-height: 1.3 !important;
    }

    .font-sub-heading, h3 {
        font-size: 1.25rem !important; /* 20px on small mobile */
    }

    .py-section-padding-y {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .px-gutter {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .font-hero-display, h1 {
        font-size: 3.25rem !important; /* 52px on tablet */
        line-height: 1.15 !important;
    }

    .font-section-heading, h2 {
        font-size: 2.25rem !important; /* 36px on tablet */
    }

    .py-section-padding-y {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
}

/* Responsive Image & Card Container Caps */
img, video {
    max-width: 100%;
    height: auto;
}

.card-responsive {
    width: 100%;
    overflow: hidden;
}

/* Hover Elevations & Micro-Interactions */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .hover-lift:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -15px rgba(0, 85, 198, 0.15);
    }
}

/* Responsive Modal Styling */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 6, 21, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
    transform: scale(1) translateY(0);
}

/* Floating Action Widget Responsiveness */
@media (max-width: 640px) {
    #floating-action-widget {
        right: 12px !important;
        gap: 10px !important;
    }
    #floating-action-widget a, #floating-action-widget button {
        width: 44px !important;
        height: 44px !important;
    }
    #floating-action-widget svg {
        width: 22px !important;
        height: 22px !important;
    }
    #floating-action-widget span {
        font-size: 20px !important;
    }
}

/* Toast Notifications - Responsive Placement */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
}

@media (max-width: 640px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: 100%;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0b1f3a;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    font-size: 13px;
    font-weight: 500;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-info {
    border-left: 4px solid #146ef5;
}

/* Custom Responsive Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf8ff;
}
::-webkit-scrollbar-thumb {
    background: #c4c6ce;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0055c6;
}
