:root  {
--primary: #2563eb;
--primary-dark: #1e40af;
--secondary: #64748b;
--dark: #0f172a;
--light: #f8fafc;
--white: #ffffff;
--success: #22c55e;
--danger: #ef4444;
--border: #e2e8f0;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar Style --- */
.sidebar {
    width: 260px;
    background-color: var(--dark);
    color: var(--white);
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #38bdf8; /* Accent color */
    letter-spacing: -0.025em;
}

.sidebar a {
    text-decoration: none;
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--primary);
    color: var(--white);
}

/* --- Main Content Area --- */
.main-content {
    flex: 1;
    margin-left: 260px; /* Lebar Sidebar */
    padding: 2.5rem;
    width: calc(100% - 260px);
}

header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--secondary);
    margin-bottom: 2rem;
}

/* --- Stats Grid --- */
.header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* --- Card Style --- */
.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Form & Input Style --- */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #475569;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: #fdfdfd;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-primary:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

/* --- Badges --- */
.badge-pro {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Table Modern --- */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    background-color: #f1f5f9;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 1rem 0.5rem;
    }
    .sidebar h2, .sidebar a span {
        display: none;
    }
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}