﻿/* ─── Design Tokens — matches Index palette exactly ─────────────── */
:root {
    --navy: #0C2340;
    --navy-mid: #1A3D6D;
    --navy-soft: #2B5FA8;
    --green: #0E9157;
    --green-light: #D1F5E3;
    --green-dark: #0A6B40;
    --chalk: #FFFFFF;
    --off-white: #F7F9FC;
    --border: #E2E8F0;
    --text-1: #0C2340;
    --text-2: #475569;
    --text-3: #94A3B8;
    --red: #DC2626;
    --amber: #F59E0B;
    --shadow-sm: 0 2px 8px rgba(12,35,64,.06);
    --shadow-md: 0 8px 28px rgba(12,35,64,.1);
    --shadow-lg: 0 16px 48px rgba(12,35,64,.14);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 32px;
    --nav-h: 72px;
}

/* ─── Base Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--text-1);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-h);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    line-height: 1.2;
    letter-spacing: -.02em;
}

main {
    flex: 1;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────── */
.navbar-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1040;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, background .25s ease;
}

    .navbar-main.scrolled {
        box-shadow: var(--shadow-md);
        background: rgba(255,255,255,.99);
    }

    .navbar-main .container {
        height: 100%;
        display: flex;
        align-items: center;
    }

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(12,35,64,.2);
    overflow: hidden;
}

    .brand-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.03em;
}

.brand-tagline {
    font-size: .65rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Nav links */
.navbar-nav .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    color: var(--text-2) !important;
    padding: 7px 14px !important;
    border-radius: var(--r-sm);
    transition: color .2s ease, background .2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

    .navbar-nav .nav-link:hover {
        color: var(--navy) !important;
        background: var(--off-white);
    }

    .navbar-nav .nav-link.active {
        color: var(--navy) !important;
        background: #EEF3FA;
        font-weight: 700;
    }

    .navbar-nav .nav-link i {
        font-size: .8rem;
        opacity: .7;
    }

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    background: #fff;
    padding: 8px;
    min-width: 210px;
    animation: dropDown .18s ease;
}

@keyframes dropDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: .9rem;
    color: var(--text-1);
    border-radius: var(--r-sm);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s ease, color .15s ease;
}

    .dropdown-item i {
        font-size: .8rem;
        color: var(--text-3);
        width: 16px;
        text-align: center;
    }

    .dropdown-item:hover {
        background: var(--off-white);
        color: var(--navy);
    }

        .dropdown-item:hover i {
            color: var(--navy-soft);
        }

    .dropdown-item.text-danger {
        color: var(--red) !important;
    }

        .dropdown-item.text-danger:hover {
            background: #FEF2F2;
        }

.dropdown-divider {
    border-color: var(--border);
    margin: 6px 0;
}

/* User avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-mid), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}

.user-info .name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-1);
    line-height: 1.2;
}

.user-info .email {
    font-size: .75rem;
    color: var(--text-3);
    line-height: 1.2;
}

/* CTA buttons in nav */
.btn-nav-outline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .88rem;
    padding: 8px 18px;
    border-radius: var(--r-sm);
    border: 2px solid var(--border);
    color: var(--text-1);
    background: transparent;
    text-decoration: none;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

    .btn-nav-outline:hover {
        border-color: var(--navy-mid);
        background: #EEF3FA;
        color: var(--navy);
    }

.btn-nav-primary {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .88rem;
    padding: 8px 18px;
    border-radius: var(--r-sm);
    border: 2px solid transparent;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

    .btn-nav-primary:hover {
        background: var(--navy-mid);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(12,35,64,.22);
        color: #fff;
    }

/* Hamburger */
.navbar-toggler {
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 7px 10px;
    background: transparent;
    color: var(--text-1);
    transition: all .2s ease;
}

    .navbar-toggler:hover {
        background: var(--off-white);
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

.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='%230C2340' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── TOAST / ALERT NOTIFICATIONS ────────────────────────────────── */
.notification-wrap {
    position: fixed;
    top: calc(var(--nav-h) + 16px);
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notif-toast {
    pointer-events: all;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 320px;
    max-width: 420px;
    animation: toastIn .3s cubic-bezier(.2,.8,.3,1) forwards;
}

    .notif-toast.hiding {
        animation: toastOut .3s ease forwards;
    }

@@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

    .notif-icon.success {
        background: var(--green-light);
        color: var(--green-dark);
    }

    .notif-icon.error {
        background: #FEF2F2;
        color: var(--red);
    }

.notif-body {
    flex: 1;
}

.notif-title {
    font-family: 'Syne', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 2px;
}

.notif-msg {
    font-size: .83rem;
    color: var(--text-2);
    line-height: 1.4;
}

.notif-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    font-size: .85rem;
    padding: 2px;
    line-height: 1;
    transition: color .15s;
    flex-shrink: 0;
    margin-top: 2px;
}

    .notif-close:hover {
        color: var(--text-1);
    }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer-main {
    background: var(--navy);
    color: rgba(255,255,255,.85);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

    .footer-main::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--navy-soft), var(--green), var(--navy-soft));
    }

    .footer-main::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 10% 80%, rgba(14,145,87,.08) 0%, transparent 50%), radial-gradient(circle at 90% 20%, rgba(43,95,168,.1) 0%, transparent 45%);
        pointer-events: none;
    }

.footer-inner {
    position: relative;
    z-index: 1;
    padding: 64px 0 0;
}

.footer-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-soft));
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 16px;
    overflow: hidden;
}

    .footer-brand-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.footer-brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    display: block;
}

.footer-brand-tag {
    font-size: .72rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 16px;
}

.footer-brand-desc {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    max-width: 280px;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    transition: all .2s ease;
}

    .social-btn:hover {
        background: rgba(255,255,255,.14);
        color: #fff;
        transform: translateY(-3px);
        border-color: rgba(255,255,255,.2);
    }

.footer-col-title {
    font-family: 'Syne', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 20px;
}

.footer-link-list {
    list-style: none;
}

    .footer-link-list li {
        margin-bottom: 8px;
    }

    .footer-link-list a {
        font-size: .88rem;
        color: rgba(255,255,255,.55);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: color .2s ease, padding-left .2s ease;
        padding: 3px 0;
    }

        .footer-link-list a i {
            font-size: .7rem;
            opacity: .5;
        }

        .footer-link-list a:hover {
            color: rgba(255,255,255,.9);
            padding-left: 4px;
        }

            .footer-link-list a:hover i {
                opacity: 1;
                color: var(--green);
            }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .88rem;
    color: rgba(255,255,255,.55);
}

    .footer-contact-item i {
        color: var(--green);
        font-size: .85rem;
        margin-top: 2px;
        flex-shrink: 0;
        width: 16px;
        text-align: center;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 56px;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

    .footer-bottom a {
        color: rgba(255,255,255,.4);
        text-decoration: none;
        transition: color .2s;
    }

        .footer-bottom a:hover {
            color: rgba(255,255,255,.8);
        }

/* ─── BACK TO TOP ─────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    border: 2px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--navy-mid);
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
        color: #fff;
    }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@@media (max-width: 991px) {
    :root {
        --nav-h: 66px;
    }

    .navbar-collapse {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        box-shadow: var(--shadow-lg);
        padding: 12px 16px;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 12px !important;
        border-radius: var(--r-sm);
    }

    .nav-divider {
        border-top: 1px solid var(--border);
        margin: 8px 0;
    }

    .navbar-nav .nav-link.active {
        background: #EEF3FA;
    }

    .dropdown-menu {
        box-shadow: none;
        border: none;
        background: var(--off-white);
        border-radius: var(--r-sm);
        padding: 4px 0 4px 12px;
        animation: none;
    }
}

@media (max-width: 576px) {
    .notif-toast {
        min-width: 280px;
        max-width: calc(100vw - 32px);
    }

    .notification-wrap {
        right: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


