/* ── Shared Admin Page Styles ───────────────────────────────────────────────
   Imported by index.html. Used across all /admin/* pages.
   ──────────────────────────────────────────────────────────────────────── */

.admin-page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Lightbox */
.sc-lightbox-overlay {
    background: rgba(5, 2, 10, 0.6) !important;
    backdrop-filter: blur(8px) !important;
}

/* Status / badges */
.system-status-badge {
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 1px;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid rgba(0, 255, 170, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.1);
}

.role-badge {
    font-size: 0.6rem;
    font-weight: 850;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.admin-badge {
    background: var(--glass-active-bg, rgba(234, 0, 217, 0.08));
    border: var(--glass-border);
    color: var(--geek-magenta);
}

.scout-badge {
    background: rgba(var(--geek-accent-rgb, 138, 43, 226), 0.08);
    border: var(--glass-border);
    color: var(--geek-purple-light);
}

/* Metric cards */
.metric-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: white;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-top: 4px;
}

/* Tool / limits cards */
.tool-card,
.api-limits-card {
    padding: 1.5rem;
}

.limit-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.limit-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.limit-name {
    font-weight: 700;
    opacity: 0.8;
}

.limit-usage {
    font-weight: 800;
    opacity: 0.9;
}

.limit-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.limit-bar-fill {
    height: 100%;
    border-radius: 3px;
}

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

.registry-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.registry-table th {
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 900;
}

.registry-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

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

/* User / actor cells */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-cell {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.user-email {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Action buttons */
.role-toggle-btn {
    background: none;
    border: 1px solid;
    padding: 4px 10px;
    border-radius: var(--theme-border-radius-control, 20px);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.promote-btn {
    border-color: var(--geek-cyan);
    color: var(--geek-cyan);
}

.promote-btn:hover:not(:disabled) {
    background: rgba(var(--geek-accent-rgb, 138, 43, 226), 0.1);
    border-color: var(--geek-cyan);
}

.demote-btn {
    background: transparent;
    border: 1px solid var(--geek-magenta);
    padding: 4px 10px;
    border-radius: var(--theme-border-radius-control, 20px);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--geek-magenta);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.demote-btn:hover:not(:disabled) {
    background: rgba(var(--geek-accent-rgb), 0.15);
    border-color: var(--geek-magenta);
    color: var(--geek-magenta);
}

.role-toggle-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem;
    opacity: 0.5;
    font-size: 0.9rem;
}
