/* ==========================================
   ADMIN DASHBOARD STYLES
   ========================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar.collapsed .sidebar-text {
    display: none;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

.toggle-sidebar {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-left: 3px solid var(--primary);
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-topbar {
    padding: 1.5rem 2rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    overflow-y: auto;
}

.admin-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.admin-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
}
.search-box input {
    background: transparent;
    border: none;
    color: white;
    margin-left: 0.5rem;
    outline: none;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: bold;
}
.badge.active { background-color: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge.premium { background-color: rgba(251, 191, 36, 0.2); color: var(--premium); }

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}
.btn-icon:hover { color: var(--text-main); background-color: var(--bg-input); }
.btn-icon.delete:hover { color: var(--error); }

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

/* Verification Queue */
.verification-list {
    list-style: none;
}
.verification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.verification-item .info {
    display: flex;
    flex-direction: column;
}
.verification-item .info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.verification-item .actions {
    display: flex;
    gap: 0.5rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}
.close-lightbox {
    position: absolute;
    top: -2rem;
    right: -2rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .admin-sidebar { position: absolute; height: 100vh; z-index: 50; transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-grid { grid-template-columns: 1fr; }
}
