/* Mobile Navigation */
@media (max-width: 768px) {
    /* Show hamburger button */
    .hamburger-btn {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Adjust logo for mobile */
    .logo {
        margin-right: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    /* Hide header contact on mobile */
    .header-contact {
        display: none;
    }
    
    /* Mobile Navigation Menu */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), #0e3a5a);
        margin: 0;
        border-radius: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 20px;
        height: 100%;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 60px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .nav-menu li a i {
        width: 25px;
        text-align: center;
    }
    
   
    
    /* User actions in mobile menu */
    .nav-container .user-actions {
        margin-top: auto;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-container .btn-login {
        width: 100%;
        justify-content: center;
    }
    
    /* Prevent body scroll when menu is open */
    body.mobile-nav-active {
        overflow: hidden;
    }
    
    /* Dashboard cards on mobile */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Table responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 992px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .main-navigation {
        width: 100%;
        right: -100%;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu li a {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .card {
        padding: 15px;
    }
    
    .card-stat {
        font-size: 2rem;
    }
}