@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Serif:wght@500;600;700&family=JetBrains+Mono:wght@500&family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* ── Template design tokens ── */
    --navy:    #0b2a4a;
    --navy-2:  #11305a;
    --navy-3:  #1a3e6b;
    --steel:   #1e4d8f;
    --steel-2: #2f6bb8;
    --steel-3: #dbe6f5;
    --steel-4: #eef3fb;
    --parchment:   #f5f3ec;
    --parchment-2: #efece3;
    --ink:   #1a1d24;
    --ink-2: #3b4252;
    --ink-3: #6b7280;
    --line:  #dfe3ea;
    --line-2:#e7eaf0;
    --saffron: #c8612c;
    --ok:     #177245;   --ok-bg:     #e7f3ec;
    --warn:   #a35a00;   --warn-bg:   #fbf1de;
    --bad:    #9b1b1b;   --bad-bg:    #fbe7e7;

    /* ── Legacy aliases (kept for existing pages) ── */
    --body-background: var(--parchment);
    --navbar-background: var(--navy);
    --footer-background: #081e36;
    --black: #1a1d24;
    --white: #FFFFFF;

    --font-primary:   'Inter', 'Open Sans', ui-sans-serif, sans-serif;
    --font-secondary: 'IBM Plex Serif', 'Montserrat', Georgia, serif;
    --font-mono:      'JetBrains Mono', ui-monospace, monospace;

    --login-bg: url('../images/global/login_bg.svg');
}

body {
    color: var(--ink);
    font-family: var(--font-primary);
    font-feature-settings: "ss01","cv11";
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background-color: var(--body-background);
}

.serif { font-family: var(--font-secondary); }
.mono  { font-family: var(--font-mono); }

.header-img-div {
    padding: 0.9rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f5ec 0%, #ecead9 100%);
    border-bottom: 1px solid #d9d4bc;
}

.header-img-div::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(11,42,74,.025) 0 1px, transparent 1px 12px),
        radial-gradient(ellipse at 8% 80%, rgba(200,97,44,.06), transparent 40%);
    pointer-events: none;
}

.header-stambh {
    height: clamp(3rem, 6vw, 4.2rem);
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(11,42,74,.12));
}

.header-org-name {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: clamp(0.88rem, 1.8vw, 1.1rem);
    color: var(--navy);
    letter-spacing: 0.04em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.header-org-sub {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b6243;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ── NAVBAR STRIP + COMPONENTS ───────────────────────── */
.navbar-strip {
    background-color: var(--navbar-background);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--saffron);
}

.nav-toggler-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    padding: 0.4rem 0.75rem;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s;
}

.nav-toggler-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.nav-link-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.8rem;
    font-size: 0.81rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #ffffff !important;
    border-bottom-color: var(--saffron);
}

.nav-link-custom.active {
    font-weight: 600;
}

.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 0.28rem 0.85rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    white-space: nowrap;
}

.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-logout-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
}

.nav-district-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6ecf97;
    background: rgba(110,207,151,0.1);
    border: 1px solid rgba(110,207,151,0.25);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* ── SHARED PAGE HEADER ──────────────────────────────── */
.page-header {
    background: linear-gradient(180deg, #f7f5ec 0%, #efece3 100%);
    border-bottom: 1px solid #d9d4bc;
    padding: 0.65rem 0;
}

.page-title {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 0.1rem;
}

.page-sub {
    font-size: 0.78rem;
    color: #6b6243;
    margin-bottom: 0;
}

.page-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    background: #255AA9;
    border: 1.5px solid #255AA9;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.page-header-btn:hover {
    background: #1a3a6e;
    border-color: #1a3a6e;
    color: #ffffff;
}

/* glass-style variant for filter-selects inside page-header */
.page-header-select {
    font-size: 0.82rem !important;
    border: 1.5px solid rgba(37,90,169,0.3) !important;
    border-radius: 7px !important;
    color: #1a2742 !important;
    background-color: rgba(255,255,255,0.7) !important;
    padding: 0.35rem 2rem 0.35rem 0.7rem !important;
    min-width: 140px;
    width: auto !important;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.page-header-select option { color: #1a2742; background: #ffffff; }

.page-header-select:focus {
    border-color: #255AA9 !important;
    box-shadow: 0 0 0 3px rgba(37,90,169,0.12) !important;
    outline: none;
}

.hero-section {
    margin-top: -1rem;
    background: url("../images/global/hero_bg.svg");
    background-size: cover;
    background-position: bottom;
}

.hero-section-info {
    display: flex;
    justify-content: end;
    align-items: center;
}

.qr-illustration {
    display: flex;
    justify-content: end;
    align-items: end;
}

.qr-illustration img {
    width: 18rem;
}

.highlighted-features {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.feature {
    padding: 0.5rem 1.5rem;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    border-radius: 8px;
    background-color: #ffffff;
    width: 95%;
    text-align: center;
    outline: 2px solid #5B59B335;
    outline-offset: -6px;
}

.feature .text-container {
    padding: 0.5rem 0;
}

.feature img {
    display: flex;
    width: 4.5rem;
    margin: 0.5rem auto;
}

.feature h6 {
    background: linear-gradient(90deg, #5B59B3 -7.71%, #255AA9 96.64%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer {
    background-color: var(--footer-background);
}

/* ── FOOTER text and link colors tuned for dark footer ── */
.footer-brand-name {
    font-family: var(--font-secondary);
}

/* ── FOOTER COMPONENTS ───────────────────────────────── */
.footer-main {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-brand-logo img {
    height: 3rem;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-brand-name {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.35;
}

.footer-brand-sub {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.2px;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 0;
}

.footer-heading {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #6ecf97 !important;
}

.footer-about-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-bottom {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.62);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom a:hover {
    color: #6ecf97 !important;
}

header a,
footer a {
    /* color: var(--black); */
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s;
}

#login_form a,
#register_form a,
#forgotPasswordCard a {
    text-decoration: none;
    color: var(--secondary);
}

.nav-link {
    font-size: small;
    color: #ffffff;
}

.nav-link:hover,
header a:hover,
#login_form a:hover,
#register_form a:hover,
#forgotPasswordCard a:hover {
    /* color: var(--secondary); */
    color: #EA8B80;
}

.nav-link:focus,
header a:focus,
#login_form a:focus,
#register_form a:focus,
#forgotPasswordCard a:focus {
    /* color: var(--secondary); */
    color: #EA8B80;
}

.font-primary {
    font-family: var(--font-primary);
}

.font-secondary {
    font-family: var(--font-secondary);
}

.font-600 {
    font-weight: 600;
}

.font-700 {
    font-weight: 700;
}

/* LOGIN CARD */
.login_card {
    padding: 0 2.5rem;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 4rem;
    font-weight: 600;
    background-image: var(--login-bg);
}

.login_error {
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    padding: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
}

.login_card h4 {
    font-weight: 600;
    font-family: var(--font-secondary);
}

.my-section-header {
    margin: 0.25rem 0;
    padding: 0.25rem 0;
/*     background-color: #e8eefa; */
    background-color: #d5e3ff;
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 600;
    font-size: 1rem;
    color: #3a3a3a;
    text-align: center;
}

.my-modal-header {
    background-color: #d5e3ff;
}

/* LOADER */

.loader {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 5000;
    background-color: #000000ae;
    justify-content: center;
    align-items: center;
    font-family: var(--fontSecondary);
    font-weight: 600;
    transition: 1s;
}

#my-loader span {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    background-color: #ffffff;
    margin: 35px 5px;
}

#my-loader span:nth-child(1) {
    animation: bounce 1s ease-in-out infinite;
}

#my-loader span:nth-child(2) {
    animation: bounce 1s ease-in-out 0.33s infinite;
}

#my-loader span:nth-child(3) {
    animation: bounce 1s ease-in-out 0.66s infinite;
}

@keyframes bounce {

    0%,
    75%,
    100% {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }

    25% {
        -webkit-transform: translateY(-20px);
        -ms-transform: translateY(-20px);
        -o-transform: translateY(-20px);
        transform: translateY(-20px);
    }
}
