/* ============================================================================
   BMB NEXUS ADMIN PANEL - CYBERPUNK THEME
   Date: November 2, 2025
   Isolated admin panel with zero conflicts
   ============================================================================ */

:root {
    --primary: #4facfe;
    --primary-dark: #2563eb;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --surface: #1e293b;
    --surface-light: #334155;
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: rgba(79, 172, 254, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(79, 172, 254, 0.3);
}

/* RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    max-width: 100%;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-back {
    padding: 0.5rem 1.25rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--glow);
}

/* CONTAINER */
.admin-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* SIDEBAR */
.admin-sidebar {
    width: 280px;
    background: var(--bg-dark);
    border-right: 2px solid var(--border);
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    overflow-y: auto;
    z-index: 900;
}

.admin-nav {
    padding: 1.5rem 0;
}

.admin-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.admin-nav-item:hover {
    background: rgba(79, 172, 254, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.admin-nav-item.active {
    background: rgba(79, 172, 254, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
    box-shadow: inset 0 0 20px rgba(79, 172, 254, 0.1);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    flex: 1;
}

/* CONTENT AREA */
.admin-content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    background: var(--bg-darker);
    min-height: calc(100vh - 70px);
}

.admin-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    margin-bottom: 2rem;
}

.tab-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tab-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(79, 172, 254, 0.2));
    border: 1px solid var(--blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid var(--green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid var(--purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.stat-icon.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 146, 60, 0.2));
    border: 1px solid var(--orange);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.stat-icon.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.2));
    border: 1px solid var(--red);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* CHARTS GRID */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.chart-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
}

/* DATA CARDS */
.data-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.data-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.card-header-flex h3 {
    margin: 0;
}

/* TABLES */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.4);
}

.data-table thead {
    background: rgba(79, 172, 254, 0.1);
    border-bottom: 2px solid var(--primary);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: rgba(79, 172, 254, 0.05);
}

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

/* BUTTONS */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: translateY(-2px);
}

.btn-refresh {
    padding: 0.5rem 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-refresh:hover {
    background: var(--primary);
    color: white;
}

/* ACTION BAR */
.action-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ACTIVITY FEED */
.activity-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.activity-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(79, 172, 254, 0.05);
    transform: translateX(4px);
}

.activity-icon {
    font-size: 1.25rem;
}

.activity-text {
    flex: 1;
    color: var(--text-secondary);
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* MODELS GRID */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.model-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.model-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.model-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.model-provider {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.model-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.model-badge.primary {
    background: linear-gradient(135deg, var(--green), #22c55e);
    color: white;
}

.model-badge.fallback {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--orange);
    color: var(--orange);
}

.model-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
}

.pricing-item {
    display: flex;
    flex-direction: column;
}

.pricing-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.pricing-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.model-ratings {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.rating {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.rating-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: width 0.3s ease;
}

.model-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-edit, .btn-delete {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-edit {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-edit:hover {
    background: var(--primary);
    color: white;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
}

.btn-delete:hover {
    background: var(--red);
    color: white;
}

/* APPROVAL QUEUE */
.approval-queue {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.approval-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.approval-item.flagged {
    border-left-color: var(--red);
}

.approval-item:hover {
    background: rgba(79, 172, 254, 0.05);
    transform: translateX(4px);
}

.content-preview {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.content-thumbnail {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 8px;
}

.content-info {
    flex: 1;
}

.content-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.content-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.flag-reason {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 500;
}

.approval-actions {
    display: flex;
    gap: 0.75rem;
}

.approve-btn, .reject-btn, .review-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.approve-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
}

.approve-btn:hover {
    background: var(--green);
    color: white;
}

.reject-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--red);
    color: var(--red);
}

.reject-btn:hover {
    background: var(--red);
    color: white;
}

.review-btn {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.review-btn:hover {
    background: var(--primary);
    color: white;
}

/* API PROVIDERS GRID */
.api-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.api-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

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

.api-provider-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-icon {
    font-size: 2rem;
}

.api-provider-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.api-provider-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.api-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.api-status.connected {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--red);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* CONTAINERS GRID */
.containers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.container-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

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

.container-name {
    font-weight: 600;
    color: var(--text-primary);
}

.container-status {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.container-status.running {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

.container-status.stopped {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.container-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* LOADING PLACEHOLDER */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* USAGE STATS GRID */
.usage-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.usage-stat {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.usage-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.usage-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }
    
    .admin-content {
        margin-left: 240px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .models-grid,
    .api-providers-grid {
        grid-template-columns: 1fr;
    }
}

/* USER DETAIL MODAL */
.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-actions-section {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.user-actions-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.btn-warning {
    padding: 0.75rem 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--orange);
    border-radius: 8px;
    color: var(--orange);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-warning:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 172, 254, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 172, 254, 0.5);
}

/* =================== SUPPORT TICKETS STYLES =================== */

.filter-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.4);
    color: #4facfe;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.open {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.in_progress {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-badge.resolved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.closed {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

