/* ── Base ─────────────────────────────────────────────────────────────────── */

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
    html { font-size: 15px; }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 80px;
    color: #1a1d23;
    background-color: #f4f6f9;
    font-family: 'Source Sans Pro', sans-serif;
}

/* ── Brand stripe ─────────────────────────────────────────────────────────── */

body::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */

.navbar {
    margin-top: 3px;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-bottom: none !important;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar-brand img {
    transition: opacity .15s;
}

.navbar-brand:hover img {
    opacity: .8;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

.ck-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.ck-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #868e96;
    margin-bottom: .35rem;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */

.ck-table {
    border-collapse: separate;
    border-spacing: 0;
}

.ck-table thead th {
    background: #f8f9fa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: .75rem 1rem;
    white-space: nowrap;
}

.ck-table tbody tr {
    transition: background .1s;
}

.ck-table tbody tr:hover {
    background: #f0f4ff;
}

.ck-table tbody td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.ck-table tfoot td {
    padding: .75rem 1rem;
    border-top: 2px solid #dee2e6;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: .01em;
}

.btn-primary {
    background: #2c6fce;
    border-color: #2c6fce;
}

.btn-primary:hover {
    background: #245db5;
    border-color: #245db5;
}

/* ── Form controls ────────────────────────────────────────────────────────── */

.form-control, .form-select {
    border-radius: 6px;
    border-color: #d0d5dd;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus, .form-select:focus {
    border-color: #2c6fce;
    box-shadow: 0 0 0 3px rgba(44,111,206,.15);
}

/* ── Sidebar tweaks ───────────────────────────────────────────────────────── */

.offcanvas-header {
    padding: 1rem 1.25rem;
}

/* ── Page headings ────────────────────────────────────────────────────────── */

h4 {
    font-weight: 700;
    color: #1a1d23;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */

.badge {
    font-weight: 600;
    letter-spacing: .02em;
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
    background: #fff;
    color: #868e96;
    font-size: 12px;
    padding: .75rem 0;
}

/* ── Container ────────────────────────────────────────────────────────────── */

.container {
    padding-top: .5rem;
}
