/* ADMIN LOGIN PAGE */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border: 1px solid var(--glass-border-gold);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h2 {
    font-size: 1.8rem;
    margin-top: 10px;
}

/* ADMIN PANEL LAYOUT */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Sidebar Navigation */
.admin-sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 90;
    transition: var(--transition-normal);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu-item {
    margin-bottom: 6px;
    padding: 0 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--gold-primary);
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Main Panel Content Area */
.admin-main {
    margin-left: 260px;
    flex-grow: 1;
    padding: 40px;
    min-width: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.admin-title-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* STAT CARDS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 45px;
}

.stat-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-primary);
}

.stat-card.revenue::before { background: var(--gold-primary); }
.stat-card.bookings::before { background: var(--info); }
.stat-card.approved::before { background: var(--success); }
.stat-card.pending::before { background: var(--warning); }

.stat-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.stat-icon {
    color: var(--text-muted);
}

.stat-card.revenue .stat-icon { color: var(--gold-primary); }
.stat-card.bookings .stat-icon { color: var(--info); }
.stat-card.approved .stat-icon { color: var(--success); }
.stat-card.pending .stat-icon { color: var(--warning); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CHARTS PANEL */
.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.chart-card {
    padding: 24px;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.chart-container {
    flex-grow: 1;
    position: relative;
    height: 100%;
}

/* TABLES & SEARCH FILTERS */
.table-controls-card {
    padding: 20px;
    margin-bottom: 24px;
}

.table-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-grow: 1;
    max-width: 70%;
}

.search-input-wrapper {
    position: relative;
    min-width: 220px;
}

.search-input-wrapper input {
    padding-left: 36px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-select {
    width: auto;
    min-width: 140px;
    padding: 10px 14px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.data-table td {
    padding: 16px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Action Icons */
.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.approve:hover {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.action-btn.reject:hover {
    background: var(--warning);
    color: #fff;
    border-color: var(--warning);
}

.action-btn.edit:hover {
    background: var(--gold-primary);
    color: #070709;
    border-color: var(--gold-primary);
}

.action-btn.delete:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.payment-link {
    color: var(--gold-primary);
    text-decoration: underline;
    font-size: 0.8rem;
    cursor: pointer;
}

/* DIALOG MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 550px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

.modal-card.large {
    max-width: 750px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* RESPONSIVE LAYOUTS FOR ADMIN */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filters {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 20px;
    }
}
