/* ─── Base ─────────────────────────────────────────────── */
html { font-size: 14px; position: relative; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 15px; } }

body {
    margin-bottom: 60px;
    color: #1a1a2e;
    background-color: #f5f6fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Navbar ───────────────────────────────────────────── */
.navbar {
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    background: #fff !important;
}

a.navbar-brand {
    font-weight: 600;
    font-size: 17px;
    color: #1a1a2e !important;
    white-space: normal;
    word-break: break-all;
}

.nav-link {
    font-size: 14px;
    color: #444 !important;
}

.nav-link:hover { color: #2563eb !important; }

.navbar .nav-link.active {
    color: #2563eb !important;
    border-bottom: 2px solid #2563eb;
    font-weight: 600;
}

/* ─── Page headings ────────────────────────────────────── */
h1, h2, h3 {
    font-weight: 600;
    color: #1a1a2e;
}

hr { border-color: #e8eaed; }

/* ─── Cards / content blocks ───────────────────────────── */
.card, .content-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    background: #fff;
    padding: 28px;
    margin-bottom: 20px;
}

/* ─── Form controls ────────────────────────────────────── */
.form-control, .form-select {
    border-radius: 8px !important;
    border: 1px solid #dde1e7 !important;
    padding: 7px 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    height: 38px !important;
    transition: border-color .2s, box-shadow .2s !important;
    background-color: #fff !important;
}

textarea.form-control {
    height: auto !important;
    line-height: 1.5 !important;
}

select.form-control,
select.form-select {
    padding: 0 36px 0 12px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
    outline: none !important;
}

label, .control-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 4px;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 18px !important;
    transition: background .2s, box-shadow .2s !important;
    border: none !important;
}

.btn-primary {
    background-color: #2563eb !important;
    color: #fff !important;
}
.btn-primary:hover { background-color: #1d4ed8 !important; }

.btn-info {
    background-color: #0ea5e9 !important;
    color: #fff !important;
}
.btn-info:hover { background-color: #0284c7 !important; }

.btn-warning {
    background-color: #f59e0b !important;
    color: #fff !important;
}
.btn-warning:hover { background-color: #d97706 !important; }

.btn-danger {
    background-color: #ef4444 !important;
    color: #fff !important;
}
.btn-danger:hover { background-color: #dc2626 !important; }

.btn-secondary {
    background-color: #6b7280 !important;
    color: #fff !important;
}
.btn-secondary:hover { background-color: #4b5563 !important; }

.btn-outline-dark,
.btn-outline-secondary {
    background-color: #fff !important;
    color: #444 !important;
    border: 1px solid #dde1e7 !important;
}
.btn-outline-dark:hover,
.btn-outline-secondary:hover {
    background-color: #f5f6fa !important;
    color: #2563eb !important;
    border-color: #2563eb !important;
}

/* ─── Tables ───────────────────────────────────────────── */
.table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    font-size: 14px;
}

.table thead th {
    background-color: #f8f9fb;
    border-bottom: 1px solid #e8eaed;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    padding: 12px 16px;
}

.table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f0f1f3;
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background-color: #f8f9fb; }

/* ─── Footer ───────────────────────────────────────────── */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    line-height: 60px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #e8eaed !important;
    background: #fff;
}

/* ─── Misc ─────────────────────────────────────────────── */
.border-bottom { border-bottom: 1px solid #e8eaed !important; }
.box-shadow { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

a { color: #2563eb; }
a:hover { color: #1d4ed8; }

input[type=checkbox] {
    -webkit-transform: scale(1.4);
    transform: scale(1.4);
    margin-left: -18px;
}

.text-danger { font-size: 12px; }
