@media (max-width: 767px) {
    .topbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #181818;
        z-index: 1001;
        padding: 0;
        margin: 0;
    }
    .topbar-menu.active {
        display: flex !important;
    }
    .topbar-toggle {
        display: block !important;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 1002;
    }
}
@media (max-width: 767px) {
    .quick-stats-mini {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .quick-stats-mini .stat-item {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
        text-align: center;
        border-radius: 8px;
        background: #222;
        color: #fff;
        margin-bottom: 8px;
    }
    .premium-header .container-fluid .row {
        flex-direction: column;
    }
    .premium-title, .premium-subtitle {
        font-size: 20px;
        text-align: center;
    }
    .premium-dashboard {
        padding: 0 5px;
    }
    .stats-row > div {
        margin-bottom: 15px;
    }
}
/*
=======================================================
FOOTBALL ADMIN PANEL - RESPONSIVE STYLES
=======================================================
Enhanced responsive design for tablets and mobile devices
*/

/* =======================================================
   DESKTOP & TABLET SIDEBAR TOGGLE
======================================================= */

/* Desktop sidebar toggle button (hidden on mobile) */
@media (min-width: 768px) {
    .sidebar-toggle-btn {
        display: block !important;
    }
    
    /* Smooth transitions for desktop sidebar */
    .page-container {
        transition: all 0.3s ease;
    }
    
    .left-content {
        transition: all 0.3s ease;
    }
    
    .sidebar-menu {
        transition: all 0.3s ease;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .sidebar-toggle-btn {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    /* Smaller sidebar on tablets when collapsed */
    .page-container.sidebar-collapsed .sidebar-menu {
        width: 50px !important;
    }
    
    .page-container.sidebar-collapsed .left-content {
        width: 100% !important;
    }
    
    /* Better spacing for collapsed state on tablets */
    .page-container.sidebar-collapsed .sidebar-toggle-btn {
        right: 5px;
        top: 15px;
    }
}

/* =======================================================
   GLOBAL RESPONSIVE UTILITIES
======================================================= */

/* Remove min-width restriction for mobile devices */
@media (max-width: 1024px) {
    .page-container {
        min-width: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* =======================================================
   TABLET STYLES (768px - 1024px)
======================================================= */
@media (max-width: 1024px) and (min-width: 768px) {
    
    /* Layout adjustments */
    .page-container {
        min-width: auto;
        width: 100%;
    }
    
    .left-content {
        width: 100% !important;
        padding: 15px;
    }
    
    .sidebar-menu {
        width: 25% !important;
    }
    
    .page-container.sidebar-collapsed .left-content {
        width: 100% !important;
    }
    
    .page-container.sidebar-collapsed .sidebar-menu {
        width: 5% !important;
    }
    
    /* Home page adjustments */
    .homeMT {
        margin-top: 5% !important;
    }
    
    .home_btn, .home_btn1, .home_btn2 {
        margin: 5%;
        padding: 6%;
        font-size: 18px;
    }
    
    /* Login form adjustments */
    .rowMT {
        margin-top: 5% !important;
    }
    
    .myForm {
        margin: 0 20px;
        padding: 20px 25px 30px;
    }
    
    /* Table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    /* Form elements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button adjustments */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* =======================================================
   MOBILE STYLES (up to 767px)
======================================================= */
@media (max-width: 767px) {
    
    /* Force sidebar to be hidden on mobile */
    .sidebar-menu {
        position: fixed !important;
        left: -250px !important;
        top: 0 !important;
        width: 250px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transition: left 0.3s ease !important;
        background: rgba(0, 0, 0, 0.95) !important;
        overflow-y: auto;
    }
    
    .sidebar-menu.mobile-open {
        left: 0 !important;
    }
    
    .left-content {
        width: 100% !important;
        float: none !important;
        padding: 10px !important;
    }
    
    .page-container.sidebar-collapsed .left-content,
    .page-container.sidebar-collapsed-back .left-content {
        width: 100% !important;
    }
    
    /* Mobile header */
    .mobile-header {
        display: block !important;
        background: #000;
        padding: 15px;
        color: white;
        position: relative;
        z-index: 9998;
    }
    
    .mobile-menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        float: left;
        margin-right: 15px;
    }
    
    .mobile-title {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
        display: inline-block;
    }
    
    .mobile-logout {
        float: right;
        /* background: #dc3545; */
        color: white;
        padding: 5px 10px;
        border-radius: 3px;
        text-decoration: none;
        font-size: 12px;
    }
    
    /* Login page mobile */
    .rowMT {
        margin-top: 20px !important;
    }
    
    .myForm {
        margin: 0 10px !important;
        padding: 20px 15px 30px !important;
        border-radius: 5px;
    }
    
    .myForm h3 {
        font-size: 20px !important;
        margin-bottom: 20px;
    }
    
    .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
        margin-bottom: 15px;
    }
    
    .btn-login {
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    /* Home page mobile */
    .homeMT {
        margin-top: 20px !important;
    }
    
    .home_btn, .home_btn1, .home_btn2 {
        margin: 10px 5px !important;
        padding: 20px 10px !important;
        font-size: 16px !important;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Make home buttons stack vertically on very small screens */
    @media (max-width: 480px) {
        .home_btn, .home_btn1, .home_btn2 {
            margin: 10px 0 !important;
            width: 100% !important;
        }
        
        .col-md-4 {
            margin-bottom: 10px;
        }
    }
    
    /* Table mobile responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0px 0 !important;
    }
    
    .table-responsive table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 8px 4px !important;
        white-space: nowrap;
    }
    
    /* Mobile cards for better data display */
    .mobile-card {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 15px;
        margin: 10px 0;
        color: white;
    }
    
    .mobile-card h4 {
        margin: 0 0 10px 0;
        font-size: 16px;
        color: #fff;
    }
    
    .mobile-card p {
        margin: 5px 0;
        font-size: 14px;
    }
    
    .mobile-card .actions {
        margin-top: 10px;
        text-align: right;
    }
    
    .mobile-card .btn {
        padding: 5px 10px;
        font-size: 12px;
        margin-left: 5px;
    }
    
    /* Form improvements for mobile */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
        display: block;
    }
    
    /* Sidebar menu mobile styles */
    .sidebar-menu .menu ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-menu .menu ul li a {
        padding: 15px 20px !important;
        font-size: 14px;
        display: block;
    }
    
    .sidebar-menu .menu ul li ul li a {
        padding-left: 40px !important;
        font-size: 13px;
    }
    
    /* Remove hover effects on mobile */
    .home_btn:hover, .home_btn1:hover, .home_btn2:hover {
        background: #ffffff3b !important;
    }
    
    /* Mobile overlay for sidebar */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Alert messages mobile */
    .alert {
        margin: 10px;
        padding: 10px;
        font-size: 14px;
        border-radius: 5px;
    }
    
    /* Navigation improvements */
    .breadcrumb {
        background: transparent;
        padding: 10px 0;
        margin: 0;
    }
    
    .breadcrumb li {
        font-size: 12px;
    }
    
    /* Footer mobile */
    .login-footer {
        font-size: 11px;
        margin-top: 15px;
    }
    
    /* Remember me checkbox mobile */
    .remember-me {
        margin: 15px 0;
        font-size: 14px;
    }
    
    .remember-me input[type="checkbox"] {
        transform: scale(1.2);
        margin-right: 10px;
    }
}

/* =======================================================
   SMALL MOBILE STYLES (up to 480px)
======================================================= */
@media (max-width: 480px) {
    
    .myForm {
        margin: 0 5px !important;
        padding: 15px 10px 20px !important;
    }
    
    .myForm h3 {
        font-size: 18px !important;
    }
    
    .form-control {
        padding: 4px !important;
    }
    
    .home_btn, .home_btn1, .home_btn2 {
        padding: 15px 5px !important;
        font-size: 14px !important;
        min-height: 70px;
    }
    
    .mobile-title {
        font-size: 16px;
    }
    
    .table-responsive table {
        font-size: 11px;
    }
    
    .mobile-card {
        padding: 10px;
    }
    
    .mobile-card h4 {
        font-size: 14px;
    }
    
    .mobile-card p {
        font-size: 12px;
    }
}

/* =======================================================
   LANDSCAPE MOBILE STYLES
======================================================= */
@media (max-width: 767px) and (orientation: landscape) {
    
    .rowMT {
        margin-top: 10px !important;
    }
    
    .homeMT {
        margin-top: 10px !important;
    }
    
    .myForm {
        padding: 15px !important;
    }
    
    .home_btn, .home_btn1, .home_btn2 {
        padding: 10px !important;
        min-height: 60px;
        font-size: 14px !important;
    }
}

/* =======================================================
   UTILITIES AND HELPERS
======================================================= */

/* Hide elements on mobile */
.hidden-mobile {
    display: block;
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
.visible-mobile {
    display: none;
}

@media (max-width: 767px) {
    .visible-mobile {
        display: block !important;
    }
}

/* Text utilities for mobile */
@media (max-width: 767px) {
    .text-mobile-center {
        text-align: center !important;
    }
    
    .text-mobile-left {
        text-align: left !important;
    }
    
    .text-mobile-right {
        text-align: right !important;
    }
}

/* Spacing utilities for mobile */
@media (max-width: 767px) {
    .p-mobile-0 { padding: 0 !important; }
    .p-mobile-1 { padding: 5px !important; }
    .p-mobile-2 { padding: 10px !important; }
    .p-mobile-3 { padding: 15px !important; }
    
    .m-mobile-0 { margin: 0 !important; }
    .m-mobile-1 { margin: 5px !important; }
    .m-mobile-2 { margin: 10px !important; }
    .m-mobile-3 { margin: 15px !important; }
}

/* =======================================================
   PRINT STYLES
======================================================= */
@media print {
    .sidebar-menu,
    .mobile-header,
    .btn,
    .mobile-overlay {
        display: none !important;
    }
    
    .left-content {
        width: 100% !important;
        float: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
