/* Base Styles for Admin Dashboard */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #FEF3E2;
    overflow-x: hidden;
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #FEF3E2;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #F3C627 0%, #f59e0b 100%);
    padding: 30px 20px;
    color: #1a1a1a;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.user-profile {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1a1a1a;
    border: 3px solid rgba(0,0,0,0.1);
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.account-type {
    font-size: 0.9rem;
    color: #1a1a1a;
    background: rgba(0,0,0,0.1);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(0,0,0,0.1);
    color: #1a1a1a;
    transform: translateX(5px);
}

.menu-item.active {
    background: rgba(0,0,0,0.15);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-item i {
    width: 16px;
    text-align: center;
    font-size: 1rem;
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    padding: 30px;
    background-color: #FEF3E2;
}

.admin-header {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    border: 1px solid rgba(243, 198, 39, 0.1);
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.admin-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.6;
}

.admin-section {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    border: 1px solid rgba(243, 198, 39, 0.1);
    color: #fff;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #F3C627;
    font-size: 1.3rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid rgba(243, 198, 39, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(243, 198, 39, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #F3C627;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    font-weight: 500;
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.users-table th,
.users-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.users-table th {
    background: #2a2a2a;
    font-weight: 600;
    color: #F3C627;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tr:hover {
    background-color: #2a2a2a;
}

.users-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin: 2px;
}

.status-business {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-admin {
    background: linear-gradient(135deg, #F3C627 0%, #f59e0b 100%);
    color: white;
}

.status-user {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

/* Action Buttons */
.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-promote {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-promote:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-demote {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-demote:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn-disabled {
    background: #4a4a4a;
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.7);
}

.loading i {
    font-size: 2rem;
    color: #F3C627;
    margin-bottom: 15px;
}

/* Messages */
.error {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .admin-main {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-title {
        font-size: 2rem;
    }
    
    .users-table {
        font-size: 0.9rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 15px 10px;
    }
}

/* Event Approval System Styles */
.events-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #f59e0b;
    background: transparent;
    color: #f59e0b;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #f59e0b;
    color: white;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.events-table th,
.events-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.events-table th {
    background: #f59e0b;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.events-table tr:hover {
    background-color: #f9fafb;
}

.event-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.event-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.status-draft {
    background-color: #9ca3af;
    color: white;
}

.status-pending {
    background-color: #f59e0b;
    color: white;
}

.status-approved {
    background-color: #10b981;
    color: white;
}

.status-rejected {
    background-color: #ef4444;
    color: white;
}

.status-published {
    background-color: #3b82f6;
    color: white;
}

.btn-approve {
    background-color: #10b981;
    color: white;
    margin-right: 5px;
}

.btn-approve:hover {
    background-color: #059669;
}

.btn-reject {
    background-color: #ef4444;
    color: white;
    margin-right: 5px;
}

.btn-reject:hover {
    background-color: #dc2626;
}

.btn-publish {
    background-color: #3b82f6;
    color: white;
    margin-right: 5px;
}

.btn-publish:hover {
    background-color: #2563eb;
}

.btn-view {
    background-color: #6b7280;
    color: white;
}

.btn-view:hover {
    background-color: #4b5563;
}

.no-events {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
}

/* Maintenance Section Styles */
.maintenance-actions {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.maintenance-actions .btn {
    margin-bottom: 15px;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-info:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.maintenance-info {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

#bulkUpdateMessage {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

#bulkUpdateMessage.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#bulkUpdateMessage.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

#bulkUpdateMessage.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

#fixAdminMessage {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

#fixAdminMessage.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#fixAdminMessage.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

#fixAdminMessage.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

#getAllUsersMessage {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

#getAllUsersMessage.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#getAllUsersMessage.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

#getAllUsersMessage.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}