﻿/*
============================================================
NKALA CONNECT - GLOBAL SITE.CSS
Professional Blue / Gold Theme
============================================================

Primary:
    #003366  Dark Blue
    #075a9e  Blue
    #eaf4fb  Soft Blue
    #d4a900  Gold Accent

This stylesheet is designed to work with:
- ASP.NET Core Razor Pages
- Bootstrap 5
- Identity pages
- Nkala Connect home page
- Navbar / footer
- Forms / cards / alerts
- Chat and community UI
- Responsive mobile layouts

============================================================
*/

/* ==========================================================
   1. ROOT VARIABLES
   ========================================================== */

:root {
    --nk-blue-dark: #003366;
    --nk-blue: #075a9e;
    --nk-blue-medium: #0b6eaf;
    --nk-blue-light: #eaf4fb;
    --nk-page: #f7f9fb;
    --nk-gold: #d4a900;
    --nk-gold-hover: #e5bd25;
    --nk-gold-light: #fff8dc;
    --nk-text: #243447;
    --nk-muted: #64748b;
    --nk-border: #dbe5ec;
    --nk-white: #ffffff;
    --nk-success: #278a52;
    --nk-danger: #b83a3a;
    --nk-warning: #a87500;
    --nk-radius: 7px;
    --nk-radius-sm: 5px;
    --nk-shadow-sm: 0 2px 8px rgba(0, 51, 102, 0.06);
    --nk-shadow: 0 5px 18px rgba(0, 51, 102, 0.08);
    --nk-transition: 0.2s ease;
}


/* ==========================================================
   2. GLOBAL / DOCUMENT
   ========================================================== */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--nk-page);
    color: var(--nk-text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    min-height: 1px;
}

a {
    color: var(--nk-blue);
    text-decoration: none;
}

    a:hover {
        color: var(--nk-blue-dark);
    }

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* ==========================================================
   3. PAGE LAYOUT
   ========================================================== */

.nk-page {
    min-height: calc(100vh - 140px);
}

.nk-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* ==========================================================
   4. NAVBAR
   ========================================================== */

.custom-navbar {
    background: var(--nk-blue-dark) !important;
    min-height: 64px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1030;
}

    .custom-navbar .container {
        min-height: 48px;
    }

    .custom-navbar .navbar-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: white !important;
        font-size: 1.15rem;
        font-weight: 600;
        padding: 4px 0;
        transition: color var(--nk-transition);
    }

        .custom-navbar .navbar-brand:hover {
            color: #f1d35c !important;
        }

        .custom-navbar .navbar-brand img {
            height: 40px;
            width: auto;
            object-fit: contain;
            filter: none;
            transition: opacity var(--nk-transition);
        }

            .custom-navbar .navbar-brand img:hover {
                opacity: 0.9;
            }


        /* Brand text */

        .custom-navbar .navbar-brand span {
            color: white !important;
            font-size: 1.15rem;
            font-weight: 600;
            letter-spacing: 0.1px;
        }

        .custom-navbar .navbar-brand:hover span {
            color: #f1d35c !important;
        }


    /* Navigation links */

    .custom-navbar .navbar-nav {
        align-items: center;
    }

    .custom-navbar .nav-link {
        color: rgba(255, 255, 255, 0.86) !important;
        font-size: 0.9rem;
        font-weight: 500;
        padding: 8px 12px !important;
        border-radius: 5px;
        transition: color var(--nk-transition), background-color var(--nk-transition);
    }

        .custom-navbar .nav-link:hover,
        .custom-navbar .nav-link:focus {
            color: white !important;
            background: rgba(255, 255, 255, 0.08);
        }

        .custom-navbar .nav-link.active {
            color: #f1d35c !important;
            background: rgba(255, 255, 255, 0.06);
        }


        /* Admin link */

        .custom-navbar .nav-link.text-warning,
        .custom-navbar .text-warning {
            color: #f1d35c !important;
        }


    /* Navbar toggler */

    .custom-navbar .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.35);
        padding: 6px 9px;
    }

        .custom-navbar .navbar-toggler:focus {
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
        }

    .custom-navbar .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }


/* ==========================================================
   5. NAVBAR PROFILE
   ========================================================== */

.nk-nav-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .nk-nav-profile img {
        width: 32px;
        height: 32px;
        object-fit: cover;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.55);
    }

.nk-nav-profile-name {
    color: white;
    font-size: 0.88rem;
    font-weight: 500;
}


/* ==========================================================
   6. BUTTONS
   ========================================================== */

.nk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: var(--nk-radius-sm);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color var(--nk-transition), border-color var(--nk-transition), color var(--nk-transition), box-shadow var(--nk-transition);
}

    .nk-btn:hover {
        transform: none;
    }

    .nk-btn:focus-visible {
        outline: 2px solid rgba(7, 90, 158, 0.4);
        outline-offset: 2px;
    }

.nk-btn-gold {
    background: var(--nk-gold);
    border-color: var(--nk-gold);
    color: #17202a !important;
}

    .nk-btn-gold:hover {
        background: var(--nk-gold-hover);
        border-color: var(--nk-gold-hover);
        color: #17202a !important;
    }

.nk-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: white !important;
}

    .nk-btn-outline:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: white;
        color: white !important;
    }

.nk-btn-primary {
    background: var(--nk-blue);
    border-color: var(--nk-blue);
    color: white !important;
}

    .nk-btn-primary:hover {
        background: var(--nk-blue-dark);
        border-color: var(--nk-blue-dark);
        color: white !important;
    }

.nk-btn-secondary {
    background: white;
    border-color: var(--nk-border);
    color: var(--nk-text) !important;
}

    .nk-btn-secondary:hover {
        background: #f4f7f9;
        border-color: #c5d3dd;
    }

.nk-btn-danger {
    background: var(--nk-danger);
    border-color: var(--nk-danger);
    color: white !important;
}

.nk-btn-sm {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 0.82rem;
}


/* Bootstrap button refinement */

.btn {
    border-radius: var(--nk-radius-sm);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--nk-blue);
    border-color: var(--nk-blue);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--nk-blue-dark);
        border-color: var(--nk-blue-dark);
    }

.btn-warning {
    background-color: var(--nk-gold);
    border-color: var(--nk-gold);
}


/* ==========================================================
   7. HOME PAGE
   ========================================================== */

.nk-home {
    --nk-blue-dark: #003366;
    --nk-blue: #075a9e;
    --nk-blue-soft: #eaf4fb;
    --nk-light-blue: #f4f9fc;
    --nk-gold: #d4a900;
    --nk-text: #243447;
    --nk-muted: #64748b;
    --nk-border: #dbe5ec;
    --nk-white: #ffffff;
    color: var(--nk-text);
    background: var(--nk-white);
}


/* Home hero */

.nk-home-hero {
    position: relative;
    background: #003366;
    color: white;
    padding: 58px 0 62px;
    overflow: hidden;
}

.nk-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.nk-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e9c84a;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    margin-bottom: 15px;
}

.nk-eyebrow-line {
    display: inline-block;
    width: 25px;
    height: 2px;
    background: #e9c84a;
}

.nk-eyebrow-dark {
    color: var(--nk-blue);
}

.nk-home-hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 0;
    max-width: 650px;
}

    .nk-home-hero h1 span {
        display: inline;
        color: #e5c14a;
        font-weight: 500;
    }

.nk-hero-text {
    max-width: 590px;
    margin: 20px 0 26px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.nk-hero-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}


/* Hero side panel */

.nk-hero-panel {
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin-left: auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.nk-panel-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09);
    color: #e5c14a;
    font-size: 1rem;
}

.nk-hero-panel h2 {
    margin: 0 0 10px;
    color: white;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 500;
}

.nk-panel-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
}

.nk-panel-points {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

    .nk-panel-points div {
        display: flex;
        align-items: center;
        gap: 9px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.85rem;
        margin-bottom: 9px;
    }

        .nk-panel-points div:last-child {
            margin-bottom: 0;
        }

    .nk-panel-points i {
        color: #e5c14a;
        font-size: 0.7rem;
    }


/* Signed-in profile */

.nk-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nk-profile-photo-wrap {
    position: relative;
    flex: 0 0 auto;
}

.nk-profile-photo {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.nk-online-dot {
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #35b56a;
    border: 2px solid #064b82;
}

.nk-profile-label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    margin-bottom: 2px;
}

.nk-profile-name {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.nk-profile-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.76rem;
}

    .nk-profile-status span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #35b56a;
    }

.nk-panel-divider {
    height: 1px;
    margin: 20px 0 16px;
    background: rgba(255, 255, 255, 0.12);
}


/* ==========================================================
   8. HOME FEATURES
   ========================================================== */

.nk-features {
    padding: 58px 0;
    background: #f8fafc;
}

.nk-section-heading {
    max-width: 650px;
    margin: 0 auto 38px;
    text-align: center;
}

    .nk-section-heading h2 {
        margin: 0 0 11px;
        color: var(--nk-blue-dark);
        font-size: clamp(1.75rem, 3vw, 2.35rem);
        font-weight: 500;
        line-height: 1.25;
    }

    .nk-section-heading p {
        margin: 0;
        color: var(--nk-muted);
        font-size: 0.95rem;
        line-height: 1.65;
    }

.nk-feature {
    height: 100%;
    padding: 26px 24px;
    background: white;
    border: 1px solid var(--nk-border);
    border-radius: 6px;
    transition: border-color var(--nk-transition), box-shadow var(--nk-transition);
}

    .nk-feature:hover {
        border-color: #c5d5e0;
        box-shadow: 0 4px 14px rgba(0, 51, 102, 0.06);
    }

.nk-feature-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 5px;
    background: #eef5fa;
    color: var(--nk-blue);
    font-size: 0.95rem;
}

.nk-feature h3 {
    margin: 0 0 8px;
    color: var(--nk-blue-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.nk-feature p {
    margin: 0;
    color: var(--nk-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}


/* ==========================================================
   9. HOME CTA
   ========================================================== */

.nk-bottom-cta {
    padding: 28px 0 45px;
    background: white;
}

.nk-bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 30px;
    background: #f4f9fc;
    border: 1px solid var(--nk-border);
    border-left: 4px solid var(--nk-gold);
    border-radius: 6px;
}

.nk-bottom-cta h2 {
    margin: 0 0 4px;
    color: var(--nk-blue-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.nk-bottom-cta p {
    margin: 0;
    color: var(--nk-muted);
    font-size: 0.88rem;
}


/* ==========================================================
   10. CONTENT SECTIONS
   ========================================================== */

.nk-section {
    padding: 45px 0;
}

.nk-section-title {
    color: var(--nk-blue-dark);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.nk-section-subtitle {
    color: var(--nk-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
}


/* ==========================================================
   11. CARDS
   ========================================================== */

.nk-card {
    background: white;
    border: 1px solid var(--nk-border);
    border-radius: var(--nk-radius);
    box-shadow: var(--nk-shadow-sm);
    padding: 24px;
}

.nk-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.nk-card-title {
    margin: 0;
    color: var(--nk-blue-dark);
    font-size: 1.15rem;
    font-weight: 600;
}

.nk-card-muted {
    color: var(--nk-muted);
    font-size: 0.86rem;
}


/* Bootstrap cards */

.card {
    border-color: var(--nk-border);
    border-radius: var(--nk-radius);
    box-shadow: var(--nk-shadow-sm);
}

.card-header {
    background: #f8fafc;
    border-bottom-color: var(--nk-border);
    color: var(--nk-blue-dark);
    font-weight: 600;
}


/* ==========================================================
   12. FORMS
   ========================================================== */

.form-label {
    color: var(--nk-text);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    min-height: 42px;
    border: 1px solid #ccd8e1;
    border-radius: 5px;
    color: var(--nk-text);
    font-size: 0.9rem;
    background-color: white;
    box-shadow: none;
    transition: border-color var(--nk-transition), box-shadow var(--nk-transition);
}

textarea.form-control {
    min-height: 100px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nk-blue);
    box-shadow: 0 0 0 2px rgba(7, 90, 158, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-text {
    color: var(--nk-muted);
    font-size: 0.8rem;
}

.input-group-text {
    background: #f4f7f9;
    border-color: #ccd8e1;
    color: var(--nk-muted);
}


/* Validation */

.field-validation-error,
.text-danger {
    color: var(--nk-danger) !important;
    font-size: 0.8rem;
}

.input-validation-error {
    border-color: var(--nk-danger) !important;
}


/* ==========================================================
   13. IDENTITY / AUTHENTICATION
   ========================================================== */

.nk-auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
}

.nk-auth-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border: 1px solid var(--nk-border);
    border-radius: 8px;
    box-shadow: var(--nk-shadow);
    padding: 30px;
}

.nk-auth-title {
    color: var(--nk-blue-dark);
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.nk-auth-subtitle {
    color: var(--nk-muted);
    font-size: 0.88rem;
    margin-bottom: 25px;
}


/* ==========================================================
   14. ALERTS / NOTIFICATIONS
   ========================================================== */

.nk-alert {
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 0.88rem;
    border: 1px solid transparent;
}

.nk-alert-info {
    color: #174c70;
    background: #edf7fd;
    border-color: #c7e4f5;
}

.nk-alert-success {
    color: #21613c;
    background: #edf8f1;
    border-color: #c8e8d4;
}

.nk-alert-warning {
    color: #745900;
    background: #fff9e6;
    border-color: #f1dfa2;
}

.nk-alert-danger {
    color: #7f2929;
    background: #fff0f0;
    border-color: #edcccc;
}


/* ==========================================================
   15. BADGES / STATUS
   ========================================================== */

.nk-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.nk-status-primary {
    color: #075a9e;
    background: #eaf4fb;
}

.nk-status-success {
    color: #21613c;
    background: #edf8f1;
}

.nk-status-warning {
    color: #745900;
    background: #fff8dc;
}

.nk-status-danger {
    color: #7f2929;
    background: #fff0f0;
}

.nk-status-muted {
    color: #64748b;
    background: #f1f5f9;
}


/* ==========================================================
   16. TABLES
   ========================================================== */

.nk-table {
    width: 100%;
    background: white;
    border: 1px solid var(--nk-border);
    border-radius: 6px;
    overflow: hidden;
}

    .nk-table table {
        margin: 0;
    }

    .nk-table thead th {
        background: #f4f7f9;
        color: var(--nk-blue-dark);
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        border-bottom: 1px solid var(--nk-border);
    }

    .nk-table tbody td {
        color: var(--nk-text);
        font-size: 0.88rem;
        vertical-align: middle;
        border-color: #edf1f4;
    }

    .nk-table tbody tr:hover {
        background: #f8fafc;
    }


/* ==========================================================
   17. CHAT / MESSAGING
   ========================================================== */

.nk-chat {
    display: flex;
    min-height: 550px;
    background: white;
    border: 1px solid var(--nk-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--nk-shadow-sm);
}

.nk-chat-sidebar {
    width: 290px;
    flex: 0 0 290px;
    background: #f8fafc;
    border-right: 1px solid var(--nk-border);
}

.nk-chat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nk-chat-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--nk-border);
    background: white;
}

.nk-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.nk-message {
    max-width: 72%;
    padding: 9px 13px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.nk-message-received {
    background: white;
    border: 1px solid var(--nk-border);
    margin-right: auto;
}

.nk-message-sent {
    background: var(--nk-blue);
    color: white;
    margin-left: auto;
}

.nk-chat-input {
    padding: 12px;
    background: white;
    border-top: 1px solid var(--nk-border);
}


/* ==========================================================
   18. PROFILE
   ========================================================== */

.nk-profile-card {
    background: white;
    border: 1px solid var(--nk-border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--nk-shadow-sm);
}

.nk-profile-large-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #dbe5ec;
}

.nk-profile-heading {
    color: var(--nk-blue-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.nk-profile-meta {
    color: var(--nk-muted);
    font-size: 0.86rem;
}


/* ==========================================================
   19. FOOTER
   ========================================================== */

footer {
    background: var(--nk-blue-dark);
    color: rgba(255, 255, 255, 0.82);
    padding: 22px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}

    footer p {
        margin: 0;
        font-size: 0.84rem;
    }

    footer a {
        color: #d8eaf7;
        text-decoration: none;
        transition: color var(--nk-transition);
    }

        footer a:hover {
            color: #f1d35c;
        }

.nk-footer {
    background: var(--nk-blue-dark);
    color: rgba(255, 255, 255, 0.82);
    padding: 35px 0 22px;
}

.nk-footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.nk-footer-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
    line-height: 1.6;
}

.nk-footer-bottom {
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}


/* ==========================================================
   20. SOCIAL ICONS
   ========================================================== */

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .social-icons a {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: rgba(255, 255, 255, 0.75);
        background: rgba(255, 255, 255, 0.07);
        transition: background-color var(--nk-transition), color var(--nk-transition);
    }

        .social-icons a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.15);
        }

    .social-icons i {
        font-size: 0.9rem;
    }


/* ==========================================================
   21. MODALS
   ========================================================== */

.modal-content {
    border: 1px solid var(--nk-border);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom-color: var(--nk-border);
}

.modal-title {
    color: var(--nk-blue-dark);
    font-size: 1.15rem;
    font-weight: 600;
}

.modal-footer {
    border-top-color: var(--nk-border);
}


/* ==========================================================
   22. DROPDOWNS
   ========================================================== */

.dropdown-menu {
    border: 1px solid var(--nk-border);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.dropdown-item {
    color: var(--nk-text);
    font-size: 0.88rem;
    border-radius: 4px;
    padding: 8px 11px;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--nk-blue-light);
        color: var(--nk-blue-dark);
    }


/* ==========================================================
   23. PAGINATION
   ========================================================== */

.pagination .page-link {
    color: var(--nk-blue);
    border-color: var(--nk-border);
    font-size: 0.85rem;
}

    .pagination .page-link:hover {
        color: var(--nk-blue-dark);
        background: var(--nk-blue-light);
    }

.pagination .active .page-link {
    background: var(--nk-blue);
    border-color: var(--nk-blue);
    color: white;
}


/* ==========================================================
   24. LOADING / EMPTY STATES
   ========================================================== */

.nk-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--nk-muted);
}

    .nk-empty-state i {
        color: #9bb3c5;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .nk-empty-state h3 {
        color: var(--nk-blue-dark);
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 7px;
    }

    .nk-empty-state p {
        margin: 0;
        font-size: 0.88rem;
    }


/* ==========================================================
   25. ACCESSIBILITY
   ========================================================== */

:focus-visible {
    outline: 2px solid rgba(7, 90, 158, 0.55);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================
   26. RESPONSIVE
   ========================================================== */

@media (max-width: 991.98px) {

    .custom-navbar .navbar-nav {
        align-items: stretch;
    }

    .custom-navbar .nav-link {
        padding: 9px 10px !important;
    }

    .nk-home-hero {
        padding: 52px 0 56px;
    }

    .nk-hero-panel {
        max-width: none;
        margin: 10px 0 0;
    }

    .nk-chat-sidebar {
        width: 240px;
        flex-basis: 240px;
    }
}


@media (max-width: 767.98px) {

    html {
        font-size: 14px;
    }

    .custom-navbar {
        min-height: 58px;
    }

        .custom-navbar .navbar-brand img {
            height: 36px;
        }

        .custom-navbar .navbar-brand span {
            font-size: 1.05rem;
        }

    .nk-home-hero {
        padding: 45px 0 48px;
    }

        .nk-home-hero h1 {
            font-size: 2.15rem;
        }

    .nk-hero-text {
        font-size: 0.95rem;
    }

    .nk-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .nk-hero-actions .nk-btn {
            width: 100%;
        }

    .nk-hero-panel {
        padding: 21px;
    }

    .nk-profile-photo {
        width: 72px;
        height: 72px;
    }

    .nk-features {
        padding: 50px 0;
    }

    .nk-section-heading {
        margin-bottom: 30px;
    }

        .nk-section-heading h2 {
            font-size: 1.8rem;
        }

    .nk-feature {
        padding: 23px 21px;
    }

    .nk-bottom-cta {
        padding: 22px 0 35px;
    }

    .nk-bottom-cta-inner {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

        .nk-bottom-cta-inner .nk-btn {
            width: 100%;
        }

    .nk-auth-page {
        padding: 30px 15px;
    }

    .nk-auth-card {
        padding: 24px 20px;
    }

    .nk-card {
        padding: 20px;
    }

    .nk-chat {
        min-height: 500px;
    }

    .nk-chat-sidebar {
        width: 100px;
        flex-basis: 100px;
    }

    .nk-message {
        max-width: 88%;
    }

    .nk-footer {
        padding: 28px 0 18px;
    }

    .social-icons {
        justify-content: center;
    }
}


@media (max-width: 575.98px) {

    .custom-navbar .navbar-brand span {
        font-size: 1rem;
    }

    .nk-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .nk-home-hero h1 {
        font-size: 2rem;
    }

    .nk-profile {
        align-items: flex-start;
    }

    .nk-profile-name {
        font-size: 0.98rem;
    }

    .nk-chat-sidebar {
        display: none;
    }
}


/* ==========================================================
   END OF NKALA CONNECT SITE.CSS
   ==========================================================
*/

/* ==========================================================
   NKALA LOANS - IDENTITY PAGES
   Login / Register / Forgot Password
   ========================================================== */

.identity-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 15px;
}

.identity-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.identity-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 42px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.04);
}


/* ==========================================================
   HEADER
   ========================================================== */

.identity-header {
    margin-bottom: 34px;
}

.identity-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient( 135deg, #0d6efd, #084298 );
    color: #ffffff;
    font-size: 27px;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.25);
}

.identity-brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 7px;
}

.identity-title {
    margin: 0;
    font-size: 30px;
    font-weight: 750;
    color: #172033;
    letter-spacing: -0.5px;
}

.identity-subtitle {
    margin: 8px 0 0;
    color: #737b8c;
    font-size: 15px;
}


/* ==========================================================
   VALIDATION
   ========================================================== */

.identity-validation {
    border-radius: 12px;
    font-size: 14px;
}


/* ==========================================================
   FORM SECTION
   ========================================================== */

.identity-form-section {
    background: #f8faff;
    border: 1px solid #e8edf7;
    border-radius: 17px;
    padding: 24px;
}

.identity-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}

.identity-section-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f0ff;
    color: #0d6efd;
    flex-shrink: 0;
}

.identity-section-heading h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #202938;
}

.identity-section-heading span {
    display: block;
    margin-top: 2px;
    color: #858d9c;
    font-size: 12px;
}


/* ==========================================================
   INPUTS
   ========================================================== */

.identity-field-label {
    display: block;
    margin-bottom: 7px;
    color: #394354;
    font-size: 13px;
    font-weight: 650;
}

.identity-input-wrapper {
    position: relative;
}

    .identity-input-wrapper > i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #8a94a6;
        font-size: 14px;
        z-index: 2;
    }

.identity-input {
    height: 50px !important;
    padding-left: 43px !important;
    border-radius: 11px !important;
    border: 1px solid #dce2ec !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .identity-input:focus {
        border-color: #0d6efd !important;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10) !important;
    }


/* ==========================================================
   LOGIN OPTIONS
   ========================================================== */

.identity-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 17px 0 22px;
    font-size: 13px;
}

    .identity-login-options .form-check {
        margin: 0;
    }

    .identity-login-options .form-check-label {
        color: #5f6878;
    }

.identity-forgot-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

    .identity-forgot-link:hover {
        text-decoration: underline;
    }


/* ==========================================================
   PRIMARY BUTTON
   ========================================================== */

.identity-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient( 135deg, #0d6efd, #084298 );
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.20);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .identity-submit:hover {
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(13, 110, 253, 0.28);
    }

    .identity-submit span {
        display: flex;
        align-items: center;
        gap: 9px;
    }

.identity-submit-arrow {
    opacity: .8;
    transition: transform .15s ease;
}

.identity-submit:hover .identity-submit-arrow {
    transform: translateX(3px);
}


/* ==========================================================
   DIVIDER
   ========================================================== */

.identity-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 22px;
    height: 18px;
}

    .identity-divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: #e7ebf2;
    }

    .identity-divider span {
        position: relative;
        padding: 0 12px;
        background: #ffffff;
        color: #a0a7b3;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: 1.5px;
    }


/* ==========================================================
   ACCOUNT LINKS
   ========================================================== */

.identity-account-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.identity-account-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 13px;
    border-radius: 12px;
    color: #4f596b;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

    .identity-account-link:hover {
        background: #f6f8fc;
        color: #172033;
        transform: translateX(2px);
    }

.identity-primary-link {
    background: #f7faff;
}

.identity-link-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf3ff;
    color: #0d6efd;
}

.identity-account-link > span:nth-child(2) {
    flex: 1;
}

.identity-account-link strong {
    display: block;
    font-size: 13px;
    font-weight: 650;
}

.identity-account-link small {
    display: block;
    margin-top: 2px;
    color: #9299a6;
    font-size: 11px;
}

.identity-link-arrow {
    color: #aeb5c1;
    font-size: 11px;
}


/* ==========================================================
   EXTERNAL LOGIN
   ========================================================== */

.identity-external {
    text-align: center;
}

.identity-external-title {
    margin-bottom: 15px;
    color: #5f6878;
    font-size: 13px;
    font-weight: 600;
}

.identity-external-button {
    min-height: 46px;
    border: 1px solid #dce2ec;
    border-radius: 11px;
    background: #ffffff;
    color: #414b5c;
    font-size: 13px;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease;
}

    .identity-external-button:hover {
        background: #f8faff;
        border-color: #bfc9da;
    }


/* ==========================================================
   FOOTER
   ========================================================== */

.identity-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
    color: #9aa1ad;
    font-size: 11px;
}

    .identity-footer i {
        color: #0d6efd;
    }


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 575px) {

    .identity-page {
        padding: 25px 12px;
    }

    .identity-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .identity-form-section {
        padding: 19px;
    }

    .identity-title {
        font-size: 26px;
    }

    .identity-login-options {
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================
   LOGOUT
   ========================================================== */

.identity-logout-logo {
    background: linear-gradient(
        135deg,
        #495057,
        #212529
    );

    box-shadow:
        0 10px 24px rgba(33, 37, 41, 0.18);
}

.identity-logout-panel {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 24px;
    padding: 18px;

    border: 1px solid #e4e8ee;
    border-radius: 15px;

    background: #f8f9fb;
}

.identity-logout-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #e9ecef;
    color: #495057;

    font-size: 15px;
}

.identity-logout-panel h5 {
    margin: 0 0 5px;

    color: #343a40;

    font-size: 15px;
    font-weight: 700;
}

.identity-logout-panel p {
    margin: 0;

    color: #6c757d;

    font-size: 13px;
    line-height: 1.55;
}

.identity-logout-submit {
    background: linear-gradient(
        135deg,
        #495057,
        #212529
    );

    box-shadow:
        0 8px 20px rgba(33, 37, 41, 0.18);
}

.identity-logout-submit:hover {
    box-shadow:
        0 12px 26px rgba(33, 37, 41, 0.25);
}

.identity-cancel-link {
    display: inline-block;

    color: #6c757d;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: color .15s ease;
}

.identity-cancel-link:hover {
    color: #0d6efd;
    text-decoration: none;
}

.identity-status-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 16px;
    border: 1px solid #dcefe5;
    border-radius: 13px;
    background: #f6fcf8;
}

.identity-status-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e1f5e9;
    color: #198754;
    font-size: 14px;
}

.identity-status-message strong {
    display: block;
    margin-bottom: 2px;
    color: #253044;
    font-size: 13px;
    font-weight: 700;
}

.identity-status-message span {
    display: block;
    color: #697386;
    font-size: 12px;
    line-height: 1.5;
}

.identity-security-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e4eaf4;
    border-radius: 13px;
    background: #f8faff;
}

.identity-security-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e8f0ff;
    color: #0d6efd;
    font-size: 13px;
}

.identity-security-note strong {
    display: block;
    margin-bottom: 3px;
    color: #394354;
    font-size: 12px;
    font-weight: 700;
}

.identity-security-note span {
    display: block;
    color: #858d9c;
    font-size: 11px;
    line-height: 1.5;
}