/* ============================================================
   KFSC global UI/UX polish
   Brand: navy #25204d, gold #d8ad4e (Nafath green kept as-is)
   Additive layer — loaded after the Bootstrap bundle.
   ============================================================ */

:root {
    --kfsc-navy: #25204d;
    --kfsc-navy-2: #322b63;
    --kfsc-gold: #d8ad4e;
    --kfsc-gold-dark: #b8892f;
    --kfsc-bg: #eef0f4;
    --kfsc-line: #e3e6ee;
}

/* ---------- Typography ---------- */
body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    background: var(--kfsc-bg) !important;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--kfsc-navy);
    font-weight: 700;
}

a {
    color: var(--kfsc-navy);
    transition: color .15s ease;
}

    a:hover, a:focus {
        color: var(--kfsc-gold-dark);
        text-decoration: none;
    }

/* ---------- Main content as a white card ---------- */
.body-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(37, 32, 77, .08);
    padding: 26px 30px !important;
    margin-top: 22px;
    margin-bottom: 28px;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all .15s ease;
    padding: 7px 18px;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--kfsc-navy);
    border-color: var(--kfsc-navy);
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background: var(--kfsc-navy-2) !important;
        border-color: var(--kfsc-navy-2) !important;
    }

.btn-info {
    background: var(--kfsc-navy);
    border-color: var(--kfsc-navy);
}

    .btn-info:hover, .btn-info:focus {
        background: var(--kfsc-navy-2) !important;
        border-color: var(--kfsc-navy-2) !important;
    }

.btn-warning {
    background: var(--kfsc-gold);
    border-color: var(--kfsc-gold);
    color: #3a2e0c;
}

    .btn-warning:hover, .btn-warning:focus {
        background: var(--kfsc-gold-dark) !important;
        border-color: var(--kfsc-gold-dark) !important;
        color: #fff;
    }

/* ---------- Form controls ---------- */
.form-control {
    border-radius: 8px;
    border: 1px solid #d4d9e0;
    box-shadow: none;
    height: 40px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .form-control:focus {
        border-color: var(--kfsc-gold);
        box-shadow: 0 0 0 3px rgba(216, 173, 78, .18);
    }

textarea.form-control {
    height: auto;
}

label, .control-label {
    color: #34495e;
    font-weight: 600;
}

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

/* ---------- Panels / cards ---------- */
.panel {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--kfsc-line);
    box-shadow: 0 2px 12px rgba(37, 32, 77, .06);
}

.panel-heading {
    font-weight: 700;
    font-size: 16px;
}

.panel-info > .panel-heading {
    background: var(--kfsc-navy);
    color: #fff;
    border-color: var(--kfsc-navy);
}

/* ---------- Tables ---------- */
/* NOTE: do not set a background here — the site header logo bar uses a
   <table> for layout, and a white background would hide its navy color.
   Content tables sit on the white .body-content card, so transparent is fine. */
.body-content .table {
    background: transparent;
}

    .body-content .table > thead > tr > th,
    .body-content .table > tbody > tr > th,
    .body-content .table th.active {
        background: #f4f6f9;
        color: var(--kfsc-navy);
        border-color: var(--kfsc-line);
        font-weight: 700;
    }

.body-content .table-bordered, .body-content .table-bordered > tbody > tr > td, .body-content .table-bordered > tbody > tr > th {
    border-color: var(--kfsc-line);
}

.body-content .table-hover > tbody > tr:hover {
    background: #fbf7ec;
}

/* ---------- Navbar / brand / footer ---------- */
.navbar-brand {
    color: var(--kfsc-gold) !important;
    font-weight: 700;
    font-size: 18px;
}

.navbar-default {
    border-radius: 0;
    background: #fff;
}

footer p {
    font-size: 13px !important;
    margin: 0;
    padding-top: 20px;
}

/* ---------- Misc ---------- */
hr {
    border-top: 1px solid var(--kfsc-line);
}

.text-danger {
    color: #c0392b;
}

/* gentle entrance for content */
.body-content {
    animation: kfscFade .25s ease;
}

@keyframes kfscFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
