/* Admin Portal Styles */
:root {
    --primary-color: #2E7D32;
    /* Green 800 */
    --primary-light: #4CAF50;
    --bg-color: #F4F6F8;
    --card-bg: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --success: #2ecc71;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Sidebar */
.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item:hover,
.nav-item.active {
    background-color: #e8f5e9;
    color: var(--primary-color);
}

/* Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* City List */
.city-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.city-card {
    background: var(--card-bg);
    border-left: 5px solid var(--primary-light);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
}

.city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.city-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.city-stats {
    display: flex;
    gap: 20px;
}

.stat-pill {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Login Page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b5e20 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #1b5e20;
}

/* Detail View */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.detail-table th,
.detail-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.detail-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: var(--text-dark);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active .status-badge {
    background: #e8f5e9;
    color: var(--success);
}

.status-pending .status-badge {
    background: #fff3e0;
    color: var(--warning);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-body {
    display: grid;
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f9f9f9;
    padding: 8px 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
}

.detail-value {
    color: var(--text-dark);
    font-weight: 500;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-approve {
    background-color: var(--success);
    color: white;
}

.btn-reject {
    background-color: var(--danger);
    color: white;
}

.btn-block {
    background-color: #34495e;
    color: white;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Shop Image in Modal */
.modal-shop-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #eee;
}

/* Responsive Sidebar & Mobile Styles */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    margin-right: 15px;
    padding: 5px;
}

.mobile-close-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
    min-width: 44px;
    /* Accessible touch target */
    min-height: 44px;
    display: flex;
    /* Flex to center icon if needed, but 'display: none' overrides this initially. handled in media query */
    align-items: center;
    justify-content: center;
}

/* Override display none for base class, it is handled in media query mostly but let's be safe */
.mobile-close-btn {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .admin-container {
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-close-btn {
        display: flex;
    }

    .main-content {
        padding: 15px;
    }

    /* Adjust loading text placement if needed */
    .loading {
        display: inline-block;
        vertical-align: middle;
    }

    /* Ensure main content header flexes correctly with burger button */
    .main-content>.mobile-menu-btn {
        margin-bottom: 15px;
    }
}@ i m p o r t   u r l ( ' p a y o u t . c s s ' ) ;  
 