/* assets/css/style.css */

/* ========================================
   CSS VARIABLES & ROOT
   ======================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-input: #16162a;
    --border-color: #2a2a4a;
    --border-glow: #6c5ce7;
    
    --text-primary: #e8e8f0;
    --text-secondary: #8888aa;
    --text-muted: #555577;
    
    --accent-purple: #6c5ce7;
    --accent-blue: #0984e3;
    --accent-cyan: #00cec9;
    --accent-green: #00b894;
    --accent-yellow: #fdcb6e;
    --accent-orange: #e17055;
    --accent-red: #d63031;
    --accent-pink: #e84393;
    
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #0984e3);
    --gradient-success: linear-gradient(135deg, #00b894, #00cec9);
    --gradient-danger: linear-gradient(135deg, #d63031, #e84393);
    --gradient-warning: linear-gradient(135deg, #fdcb6e, #e17055);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #2a2a4a);
    
    --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);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
    --shadow-glow-green: 0 0 20px rgba(0, 184, 148, 0.3);
    --shadow-glow-red: 0 0 20px rgba(214, 48, 49, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --sidebar-width: 280px;
    --header-height: 70px;
}

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

html {
    scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 3px;
}

/* ========================================
   LAYOUT
   ======================================== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sidebar-logo {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-size: 16px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.sidebar-brand span {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 12px 12px 8px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    margin-bottom: 2px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--text-primary);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-purple);
    font-weight: 600;
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

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

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 13px;
    font-weight: 600;
}

.user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

/* Header */
.top-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 500;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.page-title h1 {
    font-size: 22px;
    font-weight: 700;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-clock {
    font-size: 28px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-date {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.header-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.header-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
}

/* Content Area */
.content-area {
    padding: 32px;
}

/* ========================================
   CARDS & COMPONENTS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.purple::before { background: var(--gradient-primary); }
.stat-card.green::before { background: var(--gradient-success); }
.stat-card.orange::before { background: var(--gradient-warning); }
.stat-card.red::before { background: var(--gradient-danger); }

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

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.purple { background: rgba(108,92,231,0.15); color: var(--accent-purple); }
.stat-icon.green { background: rgba(0,184,148,0.15); color: var(--accent-green); }
.stat-icon.orange { background: rgba(225,112,85,0.15); color: var(--accent-orange); }
.stat-icon.red { background: rgba(214,48,49,0.15); color: var(--accent-red); }
.stat-icon.blue { background: rgba(9,132,227,0.15); color: var(--accent-blue); }
.stat-icon.cyan { background: rgba(0,206,201,0.15); color: var(--accent-cyan); }

.stat-trend {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.stat-trend.up { background: rgba(0,184,148,0.15); color: var(--accent-green); }
.stat-trend.down { background: rgba(214,48,49,0.15); color: var(--accent-red); }

.stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* TV Grid Cards */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.tv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.tv-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tv-card.in-use {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
}

.tv-card.in-use .tv-card-header {
    background: linear-gradient(135deg, rgba(0,184,148,0.2), rgba(0,206,201,0.1));
}

.tv-card.maintenance {
    border-color: var(--accent-orange);
}

.tv-card.maintenance .tv-card-header {
    background: linear-gradient(135deg, rgba(225,112,85,0.2), rgba(253,203,110,0.1));
}

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

.tv-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tv-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.tv-card.available .tv-icon { background: rgba(108,92,231,0.15); color: var(--accent-purple); }
.tv-card.in-use .tv-icon { background: rgba(0,184,148,0.2); color: var(--accent-green); }
.tv-card.maintenance .tv-icon { background: rgba(225,112,85,0.15); color: var(--accent-orange); }

.tv-name {
    font-size: 18px;
    font-weight: 700;
}

.tv-ps-type {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.ps3 { background: rgba(214,48,49,0.15); color: var(--accent-red); }
.ps4 { background: rgba(9,132,227,0.15); color: var(--accent-blue); }
.ps5 { background: rgba(108,92,231,0.15); color: var(--accent-purple); }

.tv-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-available { background: rgba(108,92,231,0.15); color: var(--accent-purple); }
.badge-in-use { background: rgba(0,184,148,0.2); color: var(--accent-green); }
.badge-maintenance { background: rgba(225,112,85,0.15); color: var(--accent-orange); }

.tv-card-body {
    padding: 20px;
}

/* Timer Display */
.timer-display {
    text-align: center;
    padding: 20px 0;
}

.timer-value {
    font-size: 48px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
    margin-bottom: 8px;
}

.timer-value.running { color: var(--accent-green); }
.timer-value.warning { color: var(--accent-yellow); animation: pulse-warning 1s infinite; }
.timer-value.expired { color: var(--accent-red); animation: pulse-danger 0.5s infinite; }
.timer-value.idle { color: var(--text-muted); }

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-danger {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

.timer-label {
    font-size: 12px;
    color: var(--text-muted);
}

.timer-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 1s linear;
}

.timer-progress-bar.running { background: var(--gradient-success); }
.timer-progress-bar.warning { background: var(--gradient-warning); }
.timer-progress-bar.expired { background: var(--gradient-danger); }

.session-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.session-info-item {
    background: var(--bg-input);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.session-info-item label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.session-info-item span {
    font-size: 14px;
    font-weight: 600;
}

.tv-card-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
    line-height: 1.4;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

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

.btn-success {
    background: var(--gradient-success);
    color: white;
}
.btn-success:hover {
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}
.btn-danger:hover {
    box-shadow: var(--shadow-glow-red);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--gradient-warning);
    color: #333;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(108,92,231,0.1);
}

.btn-ghost {
    background: rgba(108,92,231,0.1);
    color: var(--accent-purple);
}
.btn-ghost:hover {
    background: rgba(108,92,231,0.2);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.section-title i {
    margin-right: 8px;
    color: var(--accent-purple);
}

/* Data Card / Panel */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.panel-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-body {
    padding: 24px;
}

.panel-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.1);
}

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

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

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(42,42,74,0.5);
    font-size: 14px;
    vertical-align: middle;
}

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

.data-table tbody tr:hover {
    background: rgba(108,92,231,0.05);
}

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 24px 28px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
    border-color: transparent;
}

.modal-body {
    padding: 0 28px 24px;
}

.modal-footer {
    padding: 16px 28px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Alert / Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
.toast.warning { border-left: 4px solid var(--accent-yellow); }
.toast.info { border-left: 4px solid var(--accent-blue); }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--accent-green); }
.toast.error .toast-icon { color: var(--accent-red); }
.toast.warning .toast-icon { color: var(--accent-yellow); }
.toast.info .toast-icon { color: var(--accent-blue); }

.toast-content h4 {
    font-size: 14px;
    font-weight: 600;
}

.toast-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Animations for GSAP */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.gsap-fade-left {
    opacity: 0;
    transform: translateX(-30px);
}

.gsap-fade-right {
    opacity: 0;
    transform: translateX(30px);
}

.gsap-scale-in {
    opacity: 0;
    transform: scale(0.9);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--accent-purple);
}

.pricing-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-cyan);
}

/* Quick action grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.quick-action-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.quick-action-btn:hover {
    border-color: var(--accent-purple);
    background: rgba(108,92,231,0.1);
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.quick-action-btn span {
    font-size: 12px;
    font-weight: 600;
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-bg-effects .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.login-bg-effects .orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    right: -100px;
}

.login-bg-effects .orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    bottom: -50px;
    left: -50px;
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.login-card h1 {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-card p {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.login-card .form-control {
    padding: 14px 16px;
}

.login-error {
    background: rgba(214,48,49,0.15);
    border: 1px solid rgba(214,48,49,0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--accent-red);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Powered on indicator */
.power-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.power-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.power-dot.on {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-dot 2s infinite;
}

.power-dot.off {
    background: var(--text-muted);
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 4px var(--accent-green); }
    50% { box-shadow: 0 0 12px var(--accent-green); }
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .content-area {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tv-grid {
        grid-template-columns: 1fr;
    }
    .top-header {
        padding: 0 16px;
    }
    .header-clock {
        font-size: 20px;
    }
    .timer-value {
        font-size: 36px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .login-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-value {
        font-size: 24px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}