/* =====================================================
   RESPONSIVE.CSS
   DocShield AI – Enterprise Responsive System
   Top 1% Hackathon Winning Mobile + Tablet Experience
===================================================== */


/* =====================================================
   LARGE LAPTOPS (1400px and below)
===================================================== */

@media (max-width: 1400px) {

    .container,
    .dashboard-main,
    .section {
        padding-left: 28px;
        padding-right: 28px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 52px;
    }

    .card h2 {
        font-size: 30px;
    }

    .dashboard-title h1 {
        font-size: 30px;
    }
}


/* =====================================================
   LAPTOPS + TABLETS (1200px and below)
===================================================== */

@media (max-width: 1200px) {

    .main-navbar,
    .navbar {
        padding: 18px 24px;
    }

    .nav-center {
        gap: 18px;
    }

    .main-sidebar {
        width: 250px;
    }

    .dashboard-main {
        margin-left: 250px;
        padding: 24px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid,
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1,
    .page-hero h1 {
        font-size: 46px;
    }
}


/* =====================================================
   TABLETS (992px and below)
===================================================== */

@media (max-width: 992px) {

    .main-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: 0.35s ease;
    }

    .main-sidebar.active {
        left: 0;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 22px;
    }

    .sidebar-toggle,
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-center,
    .nav-right {
        display: none;
    }

    .dashboard-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .metrics-grid,
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 100px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .hero p,
    .page-hero p {
        font-size: 15px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 16px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}


/* =====================================================
   MOBILE DEVICES (768px and below)
===================================================== */

@media (max-width: 768px) {

    .container,
    .section,
    .dashboard-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero,
    .page-hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero p,
    .page-hero p {
        font-size: 14px;
        line-height: 1.8;
    }

    .metrics-grid,
    .cards,
    .analytics-kpi {
        grid-template-columns: 1fr;
    }

    .dashboard-title h1 {
        font-size: 26px;
    }

    .card,
    .feature-card,
    .form-container,
    .upload-box,
    .analytics-panel {
        padding: 22px;
        border-radius: 20px;
    }

    .card h2,
    #fraudMeter,
    #fraudMeterValue {
        font-size: 36px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-actions,
    .form-actions,
    .review-actions {
        flex-direction: column;
        width: 100%;
    }

    .table-container {
        padding: 14px;
        overflow-x: auto;
    }

    table {
        min-width: 700px;
    }

    .chatbot-popup,
    .notification-panel,
    .fraud-alert-popup {
        width: calc(100% - 24px);
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-height: 80vh;
    }

    .chatbot-trigger,
    .notification-trigger {
        width: 56px;
        height: 56px;
        font-size: 22px;
        right: 18px;
    }

    .chatbot-trigger {
        bottom: 90px;
    }

    .notification-trigger {
        bottom: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .upload-area {
        padding: 36px 20px;
    }

    .sidebar-logo h2 {
        font-size: 24px;
    }
}


/* =====================================================
   SMALL MOBILE DEVICES (576px and below)
===================================================== */

@media (max-width: 576px) {

    .hero h1,
    .page-hero h1 {
        font-size: 28px;
    }

    .dashboard-title h1 {
        font-size: 22px;
    }

    .card h2,
    #fraudMeter,
    #fraudMeterValue {
        font-size: 30px;
    }

    .btn.large {
        padding: 16px 20px;
        font-size: 14px;
    }

    .timeline-item span {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 14px;
    }

    .notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 13px;
        padding: 14px 16px;
    }

    .nav-search {
        min-width: unset;
        width: 100%;
    }

    .auth-box {
        padding: 24px;
    }
}


/* =====================================================
   EXTRA SMALL DEVICES (400px and below)
===================================================== */

@media (max-width: 400px) {

    .hero h1,
    .page-hero h1 {
        font-size: 24px;
    }

    .card,
    .feature-card {
        padding: 18px;
    }

    .card h2 {
        font-size: 26px;
    }

    .btn {
        font-size: 14px;
        padding: 14px 16px;
    }

    .timeline-item h3 {
        font-size: 16px;
    }

    .timeline-item p {
        font-size: 13px;
    }
}


/* =====================================================
   MOBILE NAVIGATION PANEL
===================================================== */

.mobile-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background: rgba(7, 17, 31, 0.98);
    backdrop-filter: blur(18px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 998;
    transition: 0.35s ease;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    text-decoration: none;
    font-weight: 600;
    color: white;
}

.mobile-menu-toggle,
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 1000;
}