/*
 * Central theme file for the whole site.
 * Keep colors, spacing, typography, layout, buttons, tables here.
 */

/* ===== Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 10px;
}

/* ===== Base ===== */
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Layout ===== */
.sidebar {
    background: #111827 !important;
}

.sidebar .nav-link {
    color: #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: var(--card-bg);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* ===== Tables ===== */
.table {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--muted);
}

.table td, .table th {
    vertical-align: middle;
}

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

/* ===== Alerts ===== */
.alert {
    border-radius: var(--radius);
}