
/* --- RESPONSIVE ADMIN --- */
@media (min-width: 769px) {
    .admin-toggle-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Layout */
    .admin-layout {
        flex-direction: column;
        padding-bottom: 70px; /* Space for bottom nav */
    }

    /* --- BOTTOM NAVIGATION BAR --- */
    .admin-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: auto;
        background-color: #fff;
        border-right: none;
        border-top: 1px solid #eef2f6;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 1000;
        padding: 0;
        transform: none;
        overflow-y: visible;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        padding: 0.5rem;
        gap: 0;
    }

    .sidebar-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0.5rem;
        margin-bottom: 0;
        font-size: 0.7rem;
        border-radius: 8px;
        text-align: center;
        flex: 1;
        border: none !important;
        outline: none !important;
    }

    .sidebar-link i {
        font-size: 1.2rem;
        margin-bottom: 2px;
        width: auto;
        padding: 5px 15px;
        border-radius: 20px;
        transition: all 0.3s ease;
    }
    
    .sidebar-link:hover {
        padding-left: 0.5rem; /* Override default hover effect */
        background-color: transparent;
    }

    .sidebar-link.active {
        background-color: transparent;
        color: var(--primary-blue);
        font-weight: 700;
        border: none !important;
        outline: none !important;
    }

    .sidebar-link.active i {
        background-color: var(--primary-blue);
        color: #fff;
        box-shadow: none;
        transform: none;
    }
    
    .sidebar-link.logout {
        margin-top: 0;
        border-top: none;
    }

    /* Main Content */
    .admin-main-content {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
        min-height: calc(100vh - var(--header-height) - 70px);
    }

    /* Toggle Button - Removed */
    .admin-toggle-btn {
        display: none;
    }

    /* Components */
    .dashboard-header, 
    .dashboard-header-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem;
    }

    .dashboard-header h2,
    .header-title h2 {
        font-size: 1.5rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    /* Search & Filters */
    .search-bar-wrapper {
        flex-direction: column;
        padding: 1rem;
    }

    .search-input-group,
    .filter-group,
    .filter-select {
        width: 100%;
        min-width: 0;
    }

    /* Tables */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px; /* Ensure table doesn't squash too much */
    }
    
    .admin-table th, 
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .action-btn {
        padding: 0.4rem;
        width: 32px;
        height: 32px;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Profile Grid */
    .profile-grid {
        grid-template-columns: 1fr;
    }
}
