@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a5f;         /* Deep slate/navy */
    --primary-hover: #152943;
    --primary-light: #eef2f6;
    --secondary: #d97706;       /* Soft amber */
    --secondary-hover: #b45309;
    --accent: #2563eb;          /* High-end active state blue */
    --warm-white: #fdfaf2;      /* Warm white base background */
    --creamy-white: #ffffff;    /* Creamy/pure white for cards/widgets */
    --navbar-bg: #fdfbf7;       /* Creamy white for navbar */
    --text-dark: #2c2a27;       /* Rich charcoal brown/grey */
    --text-muted: #747167;      /* Warm muted text */
    --border-color: #e8e4d8;    /* Softer warm grey borders */
    --card-shadow: 0 10px 30px -5px rgba(44, 42, 39, 0.05), 0 1px 3px rgba(44, 42, 39, 0.02);
    --card-shadow-hover: 0 20px 40px -10px rgba(44, 42, 39, 0.1), 0 2px 8px rgba(44, 42, 39, 0.04);
}

body {
    font-family: 'Instrument Sans', 'Outfit', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--warm-white);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--warm-white);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Navbar */
.navbar {
    background-color: var(--primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
}
.navbar-brand {
    color: var(--creamy-white) !important;
    font-weight: 700;
    font-size: 1.25rem;
}
.navbar-brand span {
    color: var(--creamy-white) !important;
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Sidebar */
.sidebar {
    background-color: var(--navbar-bg) !important;
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    padding-top: 1.5rem;
}
.sidebar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    margin: 0.15rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar .nav-link:hover {
    background-color: rgba(30, 58, 95, 0.04);
    color: var(--primary) !important;
}
.sidebar .nav-link.active {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15);
}

/* Cards & Widgets */
.card, .dashboard-card {
    background-color: var(--creamy-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.card:hover, .dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.card-header {
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Inputs & Form Controls */
.form-control, .form-select {
    background-color: var(--creamy-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    background-color: var(--creamy-white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
    color: var(--text-dark);
}
.form-control:read-only {
    background-color: var(--warm-white);
    opacity: 0.85;
}

/* Buttons */
.btn {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}
.btn-secondary {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    color: white;
}
.btn-secondary:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Table styling */
.table {
    --bs-table-bg: var(--creamy-white);
    --bs-table-striped-bg: rgba(44, 42, 39, 0.01);
    --bs-table-hover-bg: rgba(30, 58, 95, 0.02);
    border-color: var(--border-color);
    color: var(--text-dark);
}
.table th {
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
}

/* Badges */
.badge {
    padding: 0.45em 0.75em;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 450px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 58, 95, 0.85), rgba(13, 58, 95, 0.95));
    z-index: -1;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: #e2e8f0;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer a:hover {
    color: white;
}
/* Landing-page Android application download */
.footer-app-download {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.footer-app-download .btn {
    min-width: 240px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .footer-app-download {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-app-download .btn {
        width: 100%;
        min-width: 0;
    }
}


/* Highly visible Android APK download banner */
.apk-download-banner .apk-download-button:hover,
.apk-download-banner .apk-download-button:focus {
    background: #146c43 !important;
    border-color: #146c43 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .apk-download-banner {
        justify-content: center !important;
        text-align: center;
        padding: 18px 14px !important;
    }

    .apk-download-banner > div {
        justify-content: center;
    }

    .apk-download-banner .apk-download-button {
        width: 100%;
        white-space: normal !important;
    }
}

/* Compact Android app download link */
.android-download-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.35;
    color: #e2e8f0;
}
.android-download-compact .app-name {
    font-weight: 600;
}
.android-download-compact a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.android-download-compact a:hover,
.android-download-compact a:focus {
    color: #ffffff;
    opacity: 0.85;
}

/* Landing page typography only: 2px smaller, leaving the rest of the system unchanged. */
body.landing-page {
    font-size: 14px;
}
body.landing-page .navbar-brand {
    font-size: 18px;
}
body.landing-page .navbar-nav .nav-link {
    font-size: 14px;
}
body.landing-page .hero-content .display-4 {
    font-size: calc(1.475rem + 2.7vw - 2px);
}
body.landing-page .hero-content .display-5 {
    font-size: calc(1.425rem + 2.1vw - 2px);
}
body.landing-page .lead,
body.landing-page .btn-lg {
    font-size: 18px;
}
body.landing-page .scouts-features h2 {
    font-size: calc(1.325rem + 0.9vw - 2px);
}
body.landing-page .feature-card .card-title,
body.landing-page .footer h4 {
    font-size: 22px;
}
body.landing-page .android-download-compact {
    font-size: 12px;
}

@media (min-width: 1200px) {
    body.landing-page .hero-content .display-4 {
        font-size: calc(3.5rem - 2px);
    }
    body.landing-page .hero-content .display-5 {
        font-size: calc(3rem - 2px);
    }
    body.landing-page .scouts-features h2 {
        font-size: calc(2rem - 2px);
    }
}


/* ==========================================================
   Subtle UI refinement — same KSU theme, layout/functions intact
   ========================================================== */
body.landing-page .navbar {
    padding: 0.62rem 0;
}
body.landing-page .navbar-brand img {
    max-height: 40px !important;
}
body.landing-page .navbar-nav .nav-link {
    padding: 0.46rem 0.9rem !important;
    border-radius: 7px;
}
body.landing-page .hero-section {
    height: 56vh;
    min-height: 410px;
    max-height: 650px;
}
body.landing-page .hero-content {
    max-width: 980px;
    padding-left: 1rem;
    padding-right: 1rem;
}
body.landing-page .hero-content .display-4,
body.landing-page .hero-content .display-5 {
    letter-spacing: -0.025em;
    text-wrap: balance;
}
body.landing-page .hero-content .display-4 {
    margin-bottom: 0.85rem !important;
}
body.landing-page .hero-content .display-5 {
    margin-bottom: 0.8rem !important;
}
body.landing-page .hero-content .lead {
    margin-bottom: 1.55rem !important;
}
body.landing-page .hero-section .btn-lg {
    padding: 0.72rem 1.25rem !important;
    border-radius: 9px;
    letter-spacing: 0.01em;
}
body.landing-page .scouts-features {
    padding: 42px 0 30px;
}
body.landing-page .scouts-features .text-center.mb-5 {
    margin-bottom: 1.8rem !important;
}
body.landing-page .feature-card {
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(44, 42, 39, 0.055);
}
body.landing-page .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 26px rgba(44, 42, 39, 0.08);
}
body.landing-page .feature-card .card-body {
    padding: 1.35rem !important;
}
body.landing-page .feature-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
}
body.landing-page .feature-card .card-title {
    margin-bottom: 0.45rem;
    letter-spacing: -0.015em;
}
body.landing-page .feature-card .card-text {
    color: #55534e;
    line-height: 1.55;
    margin-bottom: 0;
}
body.landing-page .footer {
    padding: 30px 0 24px;
}
body.landing-page .android-download-compact {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
body.landing-page .footer h4 {
    margin-bottom: 0.55rem;
}
body.landing-page .footer p {
    margin-bottom: 0.45rem;
}
body.landing-page .footer hr {
    opacity: 0.22;
}

@media (max-width: 767.98px) {
    body.landing-page .navbar {
        padding: 0.52rem 0;
    }
    body.landing-page .navbar-brand img {
        max-height: 36px !important;
    }
    body.landing-page .navbar-brand span {
        font-size: 0.95rem;
    }
    body.landing-page .navbar-collapse {
        padding-top: 0.55rem;
    }
    body.landing-page .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem !important;
    }
    body.landing-page .hero-section {
        height: auto;
        min-height: 430px;
        padding: 3rem 0;
    }
    body.landing-page .hero-content .display-4 {
        font-size: 1.9rem;
    }
    body.landing-page .hero-content .display-5 {
        font-size: 1.55rem;
    }
    body.landing-page .hero-content .lead {
        font-size: 1rem;
    }
    body.landing-page .hero-section .btn-lg {
        width: min(100%, 250px);
        font-size: 0.92rem;
    }
    body.landing-page .scouts-features {
        padding: 32px 0 18px;
    }
    body.landing-page .scouts-features .col-md-4 {
        margin-bottom: 0.8rem !important;
    }
    body.landing-page .footer {
        padding: 24px 0 20px;
    }
}
