/* ============================================================
   THE PRESIDENT'S AWARD - KENYA | STAFF PORTAL
   Brand colours, fonts, responsive layout
   ============================================================ */

/* -------------------- Base & Reset ------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fc;
    color: #333;
    line-height: 1.6;
}

/* -------------------- Brand Colors ------------------------ */
:root {
    --primary-blue: #18b1e7;      /* Battery Charged Blue */
    --primary-red: #CB2127;       /* Fire Engine Red */
    --primary-silver: #707578;    /* Sonic Silver */
    --primary-black: #000000;     /* Black */
    --secondary-gray: #e9ecef;
    --white: #ffffff;
    --text-dark: #212529;
}

/* Utility classes */
.bg-brand-blue { background-color: var(--primary-blue) !important; }
.bg-brand-red { background-color: var(--primary-red) !important; }
.bg-brand-silver { background-color: var(--primary-silver) !important; }
.bg-brand-black { background-color: var(--primary-black) !important; }

.text-brand-blue { color: var(--primary-blue); }
.text-brand-red { color: var(--primary-red); }
.text-brand-silver { color: var(--primary-silver); }
.text-brand-black { color: var(--primary-black); }

.btn-brand-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}
.btn-brand-primary:hover {
    background-color: #0d9ad0;
    border-color: #0d9ad0;
}
.btn-brand-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}
.btn-brand-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* -------------------- Typography ------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Calibri', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: 0.3s;
}
a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* -------------------- Navbar customization ---------------- */
.navbar-brand img {
    max-height: 45px;
    margin-right: 10px;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* -------------------- Cards & Dashboard ------------------- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card-header {
    background-color: var(--primary-silver);
    color: white;
    font-weight: bold;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}
.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Stats widgets */
.stat-card {
    background: white;
    border-left: 5px solid var(--primary-blue);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-blue);
}

/* -------------------- Tables ------------------------------ */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.table thead th {
    background-color: var(--primary-silver);
    color: white;
    border-bottom: none;
    font-weight: 600;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(24,177,231,0.05);
}

/* -------------------- Forms ------------------------------- */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
    transition: 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(24,177,231,0.25);
}
label {
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

/* -------------------- Alerts & Notifications ------------- */
.alert-brand {
    background-color: rgba(24,177,231,0.1);
    border-left: 4px solid var(--primary-blue);
    color: #0c5c7a;
}
.alert-important {
    background-color: rgba(203,33,39,0.1);
    border-left: 4px solid var(--primary-red);
    color: #8b1a1f;
}

/* -------------------- Progress / Clearance Steps --------- */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.step .circle {
    width: 40px;
    height: 40px;
    background: var(--secondary-gray);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    transition: 0.3s;
}
.step.completed .circle {
    background-color: var(--primary-blue);
    color: white;
}
.step.active .circle {
    background-color: var(--primary-red);
    color: white;
    transform: scale(1.1);
}
.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .step-label { font-size: 0.7rem; }
    .circle { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* -------------------- Responsive Utilities --------------- */
@media (max-width: 768px) {
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .card-header {
        font-size: 1rem;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .table-responsive-stack {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* -------------------- Print Styles (letterhead) ---------- */
@media print {
    body {
        background: white;
        font-size: 12pt;
        margin: 2cm;
    }
    .navbar, .btn, .no-print {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .card-header {
        background: #eee !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* -------------------- Additional Brand Elements ---------- */
.brand-border-bottom {
    border-bottom: 3px solid var(--primary-blue);
}
.brand-ribbon {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    height: 5px;
    width: 100%;
}

/* Dashboard charts container */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Profile picture */
.profile-pic {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    padding: 3px;
    background: white;
}

/* Footer (optional) */
.footer {
    background-color: var(--primary-silver);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}