

.admin-nav {
    background-color: #1a1a1a;
    border-bottom: 4px solid #007bff;
    position: relative;
}

.nav-container {
    display: flex;
    padding: 0 5%;
    transition: all 0.3s ease-in-out;
}

.nav-link {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-link.active {
    background-color: #007bff;
    color: #ffffff;
}

.nav-link:hover:not(.active) {
    background-color: #2a2a2a;
}

.nav-link.logout {
    margin-left: auto;
    color: #ff4d4d;
}


.menu-toggle {
    display: none;
    width: 100%;
    padding: 15px;
    background: #0b0b0b;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    text-align: center;
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block; 
    }

    .nav-container {
        display: none; 
        flex-direction: column;
        padding: 0;
        width: 100%;
        background-color: #1a1a1a;
        position: absolute;
        top: 55px; 
        left: 0;
        z-index: 1000;
        border-bottom: 2px solid #007bff;
    }

  
    .nav-container.show {
        display: flex;
    }

    .nav-link {
        border-bottom: 1px solid #333;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-link.logout {
        margin-left: 0;
    }

    
    .dashboard-grid, .user-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 90%;
    }

    .chart-card {
        height: auto;
        min-height: 300px;
    }

    
    .table-wrapper, .ledger-wrapper, .responsive-table-container {
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch; 
        width: 100%;
    }

    .user-table, .history-table {
        width: 100%;
        min-width: 600px; 
    }

    .user-table td, .history-table td {
        font-size: 0.8rem;
        padding: 10px;
    }

    
    .modal-card {
        width: 90%;
        padding: 20px;
        margin: 10px auto;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer-actions .btn-pill, .modal-footer-actions .btn-primary {
        max-width: 100%;
        width: 100%;
    }

    
    body {
        justify-content: flex-start; 
        padding-bottom: 20px;
    }
    
    .main-header {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .header-top {
        padding: 10px 2%;
        flex-direction: column;
        gap: 10px;
    }

    .header-search input {
        width: 100%;
        max-width: 200px;
    }
}


