:root {
    --bg-main: #0c0c14;
    --bg-card: #161625;
    --bg-sidebar: #12121f;
    --accent-primary: #00d2ff;
    --accent-secondary: #9d50bb;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --border-color: #2a2a3a;
    --success: #00ff88;
    --danger: #ff4d4d;
    --warning: #ffaa00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

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

/* SIDEBAR */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    height: 100vh;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span { color: var(--accent-primary); }

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(0, 210, 255, 0.1);
    color: var(--accent-primary);
}

/* MAIN CONTENT */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
}

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

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

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }

.card-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
}

/* TABLES */
.data-table-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

th {
    background-color: rgba(255, 255, 255, 0.05);
    text-align: left;
    padding: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

td {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

tr:hover { background-color: rgba(255, 255, 255, 0.02); }

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover { opacity: 0.9; transform: scale(1.05); }

/* STATUS BADGES */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.status-active { background-color: rgba(0, 255, 136, 0.1); color: var(--success); }
.status-paused { background-color: rgba(255, 170, 0, 0.1); color: var(--warning); }

/* LOGIN PAGE */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0c0c14 100%);
}

.login-box {
    width: 400px;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    color: white;
    outline: none;
}

input:focus { border-color: var(--accent-primary); }

/* UTILS */
.hidden { display: none; }
