:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
    --accent: #38bdf8;
    --danger: #ef4444;
    --success: #22c55e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Login Overlay */
#login-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
    width: 300px;
}

input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
}

button {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    border: none;
    border-radius: 0.5rem;
    color: #0f172a;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

/* Dashboard Content */
#main-content {
    width: 90%;
    max-width: 1000px;
    padding: 2rem;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--card);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #334155;
}

.value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
}

.status {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.success { background: rgba(34, 197, 94, 0.2); color: var(--success); }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #334155;
}

th { background: #334155; color: var(--accent); }