/* USERS Panel Centralized Responsive Styles */

/* Base container and layout */
@media (max-width: 991px) {
    .container, .dashboard-container {
        padding: 15px;
    }
    
    .content-grid, 
    .form-grid, 
    .methods-grid, 
    .stats-grid, 
    .plans-grid, 
    .gateways-grid, 
    .row {
        grid-template-columns: 1fr !important;
        display: grid;
        gap: 15px;
    }
    
    .header, 
    .top-bar, 
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .top-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    /* Tables scrolling */
    .data-table, 
    .deposits-table, 
    .investments-table, 
    .transactions-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }
    
    .notification-dropdown {
        width: 100%;
        max-width: 350px;
        right: 10px;
        left: auto;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .profile-sidebar, 
    .profile-content, 
    .card, 
    .dashboard-section {
        width: 100%;
        padding: 15px;
    }
    
    .auth-card, 
    .login-card, 
    .register-card {
        width: 95% !important;
        margin: 10px auto;
        padding: 20px;
    }
    
    /* Sidebar */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 1001;
        top: 0;
        bottom: 0;
        left: 0;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(3px);
        margin: 0;
        padding: 0;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 15px;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px;
        cursor: pointer;
        color: var(--text);
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .quick-links {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card, 
    .plan-card, 
    .gateway-item {
        padding: 15px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .live-clock {
        display: none; /* Hide clock on very small screens to save space */
    }
}
