:root {
    --bg-dark: #060609;
    --bg-surface: #0f0f16;
    --card-bg: rgba(20, 20, 32, 0.5);
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-green: #39ff14;
    --neon-red: #ff3131;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 8%;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 6, 9, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Containers & Grid Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Hero & Section Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Interactive Components & Cards */
.card {
    padding: 30px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
}

/* Stat Card specific overrides */
.stat-card {
    text-align: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Forms & Input Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    background: rgba(6, 6, 9, 0.7);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.25);
    background: rgba(15, 15, 22, 0.9);
}

/* Buttons System */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(188, 19, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 243, 255, 0.5);
}

.btn-primary:disabled {
    background: #27273a;
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Live Progress Elements */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    height: 12px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    width: 0%;
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badges Status */
.badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-warning { background: rgba(255, 193, 7, 0.15); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.3); }
.badge-info { background: rgba(0, 243, 255, 0.15); color: var(--neon-blue); border: 1px solid rgba(0, 243, 255, 0.3); }
.badge-success { background: rgba(57, 255, 20, 0.15); color: var(--neon-green); border: 1px solid rgba(57, 255, 20, 0.3); }

/* Admin Panel Shell Layout */
.admin-shell {
    display: flex;
    min-height: calc(100vh - 73px);
}

.sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
    padding: 30px 15px;
}

.sidebar-menu button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.sidebar-menu button:hover, .sidebar-menu button.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon-blue);
}

.main-content {
    flex: 1;
    padding: 40px;
    background: var(--bg-dark);
}

.admin-view {
    display: none;
}

.admin-view.active {
    display: block;
}

/* Tables System */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-surface);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 80px;
    font-size: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .admin-shell { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
}

@media (max-width: 640px) {
    nav { padding: 15px 5%; }
    .logo { font-size: 22px; }
    .nav-links a { margin-left: 15px; font-size: 13px; }
    .main-content { padding: 20px 15px; }
}