:root {
    --accent: #00ff88;
    --bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text: #ffffff;
    --text-dim: #aaa;
    --danger: #ff4d4d;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
}

/* LOGIN BOX */
.admin-login-box {
    max-width: 400px;
    margin: 15vh auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* DASHBOARD LAYOUT */
.dashboard-container {
    display: none; 
    padding: 40px clamp(1rem, 5vw, 5rem);
    max-width: 1400px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

/* TABLE STYLING */
.table-responsive {
    background: #111;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid #222;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

th {
    background: #1a1a1a;
    color: var(--text-dim);
    padding: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #222;
    font-size: 14px;
}

/* STATUS PILLS */
.status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* BUTTONS */
.button-group { display: flex; gap: 12px; }

.export-btn {
    background: #1d6f42;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.logout-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

input, select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    margin: 5px;
    border-radius: 8px;
}

#detailDrawer::-webkit-scrollbar {
    display: none;
}

#detailDrawer {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #151515;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card h3 {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Live Pulse Green Dot */
.pulse-green {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 0 rgba(0, 255, 136, 0.4);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Flash effect when data updates */
.stat-card-update {
    animation: flash-border 0.6s ease-out;
}

@keyframes flash-border {
    0% { border-color: #00ff88; background: #1a2e25; }
    100% { border-color: #333; background: #151515; }
}