/* ============================================
   RESPONSIVE - Mobile, Tablet, Desktop
   ============================================ */

/* Mobile (up to 576px) */
/* Mobile (up to 576px) */
@media (max-width: 576px) {
    /* 1. Force the parent container to stack vertically */
    .login-container {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2. Show the showcase section */
    .login-showcase {
        display: block !important;
        text-align: center !important;
        padding-bottom: 1rem !important;
    }

    /* 3. Hide the features list to save space */
    .login-showcase .features {
        display: none !important;
    }

    /* 4. Ensure Institution Name is large */
    .login-showcase h1 {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* 5. Ensure Student Login is smaller */
    .login-header h2 {
        font-size: 1.1rem !important;
    }
}

/* Tablet (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gpa-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .registration-layout {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-bar .form-group {
        flex: 1;
        min-width: 180px;
    }
}

/* Small Desktop (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-wrapper {
        padding: 1.5rem;
        max-width: 960px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gpa-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .content-wrapper {
        max-width: 1280px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .action-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .top-navbar,
    .hamburger,
    .btn-modern,
    .filter-bar,
    .pagination-modern {
        display: none !important;
    }

    .content-wrapper {
        padding: 0;
        margin: 0;
    }

    .card-modern {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-drawer {
        overflow-y: auto;
    }

    .login-container {
        min-height: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-modern,
    .nav-link,
    .action-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-modern:active {
        transform: scale(0.97);
    }
}