/* Mobile Responsive Styles for All Admin Pages */
@media (max-width: 768px) {
    body { padding-bottom: 80px; }
    
    .sidebar { 
        position: fixed;
        left: -100% !important;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    .sidebar.show { left: 0 !important; }
    .sidebar-brand { padding: 15px 20px; }
    .sidebar-brand h4 { font-size: 1.1rem; }
    .sidebar-menu { padding: 10px 0; }
    .sidebar-menu li a { 
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .main-content { 
        margin-left: 0 !important;
        padding: 10px !important;
        padding-top: 65px !important;
        width: 100%;
    }
    
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px 15px;
        margin-bottom: 0;
        border-radius: 0;
        z-index: 998;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .top-bar h2 { 
        font-size: 1.1rem;
        margin: 0;
    }
    .top-bar .btn-primary {
        font-size: 0.8rem;
        padding: 6px 12px;
        width: 100%;
    }
    .top-bar select { 
        width: 100% !important;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .stats-grid { 
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .stat-card { 
        padding: 12px;
        border-radius: 8px;
    }
    .stat-card h6 { 
        font-size: 10px;
        margin-bottom: 6px;
    }
    .stat-card h3 { 
        font-size: 1.3rem;
    }
    .stat-card i { 
        font-size: 1.3rem;
        display: none;
    }
    
    .card { 
        border-radius: 8px;
        margin-bottom: 15px;
        overflow: hidden;
    }
    .card-header { 
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .card-body { padding: 12px; }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table { 
        font-size: 0.7rem;
        min-width: 500px;
    }
    .table thead th { 
        padding: 6px 4px;
        font-size: 9px;
        white-space: nowrap;
    }
    .table tbody td { 
        padding: 6px 4px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    .badge { 
        font-size: 8px;
        padding: 2px 5px;
        display: inline-block;
        margin: 1px 0;
    }
    
    .btn-sm {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    .btn-warning, .btn-danger {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    .modal-content {
        border-radius: 12px;
    }
    .modal-header {
        padding: 12px 15px;
    }
    .modal-body {
        padding: 15px;
    }
    .modal-title {
        font-size: 1rem;
    }
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .mobile-menu-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: #3b82f6;
        border-radius: 50%;
        border: none;
        color: white;
        font-size: 1.3rem;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1000;
        display: none;
    }
    .mobile-overlay.show { display: block; }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none !important; }
    .mobile-overlay { display: none !important; }
}
