/* =========================
   Dantronics HUD Theme (RESTORED + FIXED)
========================= */

/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0a0c14;
    color: #e6e9ff;

    /* FIX BACKGROUND BUG */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

html {
    overflow-x: hidden;
}

/* =========================
   Layout
========================= */

.layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   Sidebar
========================= */

.sidebar {
    width: 220px;
    background: #0f1322;
    min-height: 100vh;
    padding: 20px;
    border-right: 1px solid #2c335c;
    flex-shrink: 0;
}

.sidebar h2 {
    color: #caa8ff;
    margin-bottom: 20px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9cc7ff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 5px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #1a1f3a;
    color: #caa8ff;
}

.sidebar a.active {
    background: #1a1f3a;
    color: #caa8ff;
    box-shadow: 0 0 10px rgba(106,57,255,0.4);
}

/* =========================
   Icons
========================= */

.icon {
    width: 20px;
    height: 20px;
    fill: #9cc7ff;
    flex-shrink: 0;
}

.sidebar a:hover .icon,
.sidebar a.active .icon {
    fill: #caa8ff;
}

/* =========================
   Main Content
========================= */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =========================
   Top Bar
========================= */

.topbar {
    background: #13172a;
    padding: 12px 20px;
    border-bottom: 1px solid #2c335c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   Container
========================= */

.container {
    padding: 20px;
}

/* =========================
   Cards / Sections
========================= */

.card {
    background: #13172a;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #262c4a;
    box-shadow: 0 0 12px rgba(106, 57, 255, 0.2);
}

/* =========================
   Inputs
========================= */

input, select {
    background: #1b203a;
    border: 1px solid #3b4270;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    margin: 5px;
}

input:focus, select:focus {
    outline: none;
    border-color: #6a39ff;
    box-shadow: 0 0 6px #6a39ff;
}

/* =========================
   Buttons
========================= */

button {
    background: linear-gradient(135deg, #6a39ff, #9b6bff);
    border: none;
    padding: 8px 14px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #7f52ff, #b58cff);
    box-shadow: 0 0 10px rgba(106,57,255,0.5);
}

/* =========================
   Tables
========================= */

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

th {
    background: #1e2445;
}

td, th {
    padding: 8px;
    border-bottom: 1px solid #2c335c;
}

tr:hover {
    background: #1a1f3a;
}

/* =========================
   Typography
========================= */

h1, h2 {
    color: #caa8ff;
}

.glow {
    text-shadow: 0 0 10px #6a39ff;
}

/* =========================
   Notice
========================= */

.notice {
    background: #142a1f;
    color: #8df5b2;
    padding: 10px;
    border-radius: 8px;
}

/* =========================
   Dashboard Stats
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #13172a;
    border: 1px solid #262c4a;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    margin: 0;
    font-size: 28px;
    color: #caa8ff;
}

.stat-card small {
    color: #9cc7ff;
}

.small {
    font-size: 12px;
    color: #aab2d8;
}

/* =========================
   Tables Scroll Fix
========================= */

#liveSessions,
#recentActivity,
#staffTracker,
#checkedIn,
#recent,
#staff {
    overflow-x: auto;
}