/* Bundle Fire - Modern Gaming Dark Admin CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-main: #0B0D19;
    --bg-sidebar: #0E1120;
    --bg-card: #13172D;
    --bg-card-hover: #181E3B;
    --bg-input: #090B15;
    --border-color: #212643;
    --border-light: rgba(255, 255, 255, 0.08);
    --text-main: #F3F4F6;
    --text-muted: #94A3B8;
    --text-dark: #64748B;
    --primary: #FF2E00;
    --primary-glow: rgba(255, 46, 0, 0.35);
    --accent-purple: #7C3AED;
    --accent-purple-glow: rgba(124, 58, 237, 0.4);
    --accent-green: #10B981;
    --accent-green-glow: rgba(16, 185, 129, 0.35);
    --accent-blue: #3B82F6;
    --accent-blue-glow: rgba(59, 130, 246, 0.35);
    --accent-orange: #F59E0B;
    --accent-orange-glow: rgba(245, 158, 11, 0.35);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Layout */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

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

.brand-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF1744, #FF6D00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.brand-text h2 {
    font-size: 16px;
    font-weight: 800;
    color: #FFF;
    line-height: 1.2;
}

.brand-text h2 span {
    color: #FF3D00;
}

.brand-text p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-item a .left-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item a .icon {
    font-size: 16px;
    width: 20px;
    display: inline-block;
    text-align: center;
}

.nav-item a .chevron {
    font-size: 11px;
    opacity: 0.5;
    transition: var(--transition);
}

.nav-item a:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.nav-item a:hover .chevron {
    transform: translateX(3px);
    opacity: 1;
}

.nav-item.active a {
    background: linear-gradient(90deg, #7C3AED, #6366F1);
    color: #FFF;
    box-shadow: 0 4px 18px var(--accent-purple-glow);
}

.nav-item.active a .chevron {
    opacity: 1;
}

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

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #EF4444;
    color: #FFF;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
    min-height: 100vh;
}

/* Top Bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-selector-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
}

.app-selector-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #FF1744, #FF9100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-users-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    color: #10B981;
    font-size: 13px;
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.date-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-full);
}

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.profile-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: #FFF;
}

.profile-info p {
    font-size: 10px;
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 4px;
}

.page-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.action-btn-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #7C3AED, #6366F1);
    color: #FFF;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--accent-purple-glow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.action-btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-purple-glow);
}

/* 4 Glowing Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    color: #FFF;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card.purple {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.stat-card.green {
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.stat-card.blue {
    background: linear-gradient(135deg, #1D4ED8, #3B82F6);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.stat-card.orange {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.stat-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.stat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card-title {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card-sub {
    font-size: 11.5px;
    opacity: 0.85;
    margin-top: 6px;
}

/* Analytics Graph & Sections */
.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

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

.card-header-flex h3 {
    font-size: 17px;
    font-weight: 800;
    color: #FFF;
}

.card-header-flex p {
    font-size: 12px;
    color: var(--text-muted);
}

.badge-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

.data-table th {
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Form Controls */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #FFF;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 12px var(--accent-purple-glow);
}

.submit-btn {
    background: linear-gradient(90deg, #FF1744, #FF6D00);
    color: #FFF;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: var(--transition);
}

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

/* Alerts & Toast Notifications */
.alert-box {
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: alertSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alertSlideDown {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.12));
    border: 2px solid #10B981;
    color: #34D399;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(220, 38, 38, 0.12));
    border: 2px solid #EF4444;
    color: #F87171;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-wrapper { margin-left: 0; padding: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .topbar { flex-direction: column; align-items: flex-start; }
}
