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

/* Mobile (up to 576px) */
@media (max-width: 576px) {
    .content-wrapper {
        padding: 0.75rem;
    }

    h1, .dashboard-welcome h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .card-body-custom {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-cards-grid {
        grid-template-columns: 1fr;
    }

    .table-modern th,
    .table-modern td {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-group {
        width: 100%;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .gpa-cards {
        grid-template-columns: 1fr;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .modal-container {
        width: 95%;
        margin: 1rem;
    }

    .pagination-modern {
        flex-wrap: wrap;
    }

    .pagination-item {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* 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);
    }
}