/* assets/css/responsive.css - Responsive Design Styles */

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large devices (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    /* Header */
    .hero-title {
        font-size: 3.5rem;
    }

    /* About Page */
    .leadership-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Dashboard */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium devices (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 15px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    /* Grid Layouts */
    .facts-grid,
    .news-grid,
    .programmes-grid,
    .facilities-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mvg-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .history-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-image {
        order: -1;
    }

    /* Dashboard */
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

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

    .charts-container {
        grid-template-columns: 1fr;
    }

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

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Tables */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-dialog.lg {
        width: 95%;
    }
}

/* Small devices (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Grid Layouts */
    .facts-grid,
    .news-grid,
    .programmes-grid,
    .facilities-grid,
    .gallery-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

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

    .quick-actions {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        margin: 0 auto;
    }

    /* Dashboard */
    .dashboard-main {
        padding: 20px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
    }

    .user-menu {
        width: 100%;
        justify-content: space-around;
    }

    /* Forms */
    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Extra small devices (less than 576px) */
@media (max-width: 575px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 24px;
    }

    /* Cards */
    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Dashboard */
    .dashboard-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 12px;
    }

    .header-actions {
        width: auto;
        display: inline-flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-actions .btn {
        width: auto;
        margin-bottom: 0;
    }

    /* Tables */
    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-dialog {
        width: 95%;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    /* Login */
    .login-box {
        padding: 30px 20px;
    }

    .login-logo {
        width: 60px;
    }

    /* Welcome Section */
    .welcome-features {
        grid-template-columns: 1fr;
    }

    .floating-card {
        display: none;
    }

    .experience-badge {
        width: 80px;
        height: 80px;
    }

    .experience-badge .years {
        font-size: 1.5rem;
    }

    /* Events */
    .events-preview {
        padding: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-content {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-contact-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .no-print,
    .main-nav,
    .sidebar,
    .footer,
    .btn,
    .mobile-menu-toggle,
    .user-menu,
    .quick-actions {
        display: none !important;
    }

    .dashboard-main {
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    table {
        page-break-inside: avoid;
        border-collapse: collapse;
    }

    th {
        background: #f5f5f5 !important;
        color: black !important;
    }

    @page {
        margin: 2cm;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 30px 0;
    }

    .hero-slider {
        height: 100vh;
    }

    .modal-dialog {
        max-height: 80vh;
    }
}

/* High Resolution Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-attachment: fixed;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode-auto {
        --light-gray: #2a2a2a;
        --medium-gray: #3a3a3a;
        --white: #1a1a1a;
        --dark-gray: #f5f5f5;
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}