/* =========================================================
   GROWTH INSURE
   HORIZONTAL SAAS NAVIGATION
   ========================================================= */
/* =========================================================
   THEME
   ========================================================= */
:root {
    --gi-navy: #061D4C;
    --gi-navy-dark: #041536;
    --gi-navy-light: #0B2A61;
    --gi-teal: #19B7A5;
    --gi-teal-dark: #0F9687;
    --gi-teal-soft: rgba(25, 183, 165, .12);
    --gi-ink: #172033;
    --gi-muted: #667085;
    --gi-page: #F5F7FA;
    --gi-white: #FFFFFF;
    --gi-line: #E4E7EC;
    --gi-shadow: 0 8px 24px rgba(6, 29, 76, .08);
    --gi-navbar-height: 70px;
}


/* =========================================================
   BASE
   ========================================================= */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--gi-page);
    color: var(--gi-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--gi-teal-dark);
}

    a:hover {
        color: var(--gi-navy);
    }


/* =========================================================
   APPLICATION
   ========================================================= */

.gi-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gi-page);
}


/* =========================================================
   HORIZONTAL HEADER — MODERN SAAS NAVBAR
   ========================================================= */

.gi-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: var(--gi-navy);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 4px 18px rgba(4, 21, 54, .16);
}

.gi-header-inner {
    width: 100%;
    height: var(--gi-navbar-height);
    min-height: var(--gi-navbar-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
}

/* =========================================================
   BRAND / LOGO
   ========================================================= */

.gi-brand {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding-right: 25px;
    margin-right: 18px;
    text-decoration: none !important;
}

    .gi-brand::after {
        content: "";
        position: absolute;
        right: 0;
        top: 18px;
        bottom: 18px;
        width: 1px;
        background: rgba(255, 255, 255, .12);
    }

.gi-logo {
    display: block !important;
    width: 145px !important;
    height: auto !important;
    max-width: 145px !important;
    max-height: 48px !important;
    object-fit: contain;
    transition: opacity .2s ease, transform .2s ease;
}

.gi-brand:hover .gi-logo {
    opacity: .96;
    transform: scale(1.015);
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.gi-navigation {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    white-space: nowrap;
    overflow: visible;
}

.gi-nav-link {
    position: relative;
    flex: 0 0 auto;
    height: 42px;
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgba(255, 255, 255, .72) !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.gi-nav-icon {
    width: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .48);
    font-size: .80rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color .18s ease, transform .18s ease;
}

.gi-nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, .065);
    border-color: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
}

    .gi-nav-link:hover .gi-nav-icon {
        color: var(--gi-teal);
        transform: translateY(-1px);
    }

.gi-nav-link.active {
    color: #FFFFFF !important;
    background: rgba(25, 183, 165, .13);
    border-color: rgba(25, 183, 165, .18);
    box-shadow: inset 0 0 0 1px rgba(25, 183, 165, .03);
}

    .gi-nav-link.active::after {
        display: none;
    }

    .gi-nav-link.active .gi-nav-icon {
        color: var(--gi-teal);
    }

/* =========================================================
   RIGHT HEADER AREA
   ========================================================= */

.gi-header-actions {
    flex: 0 0 auto;
    height: 100%;
    margin-left: auto;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

/* =========================================================
   NOTIFICATION
   ========================================================= */

.gi-notification {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .70);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

    .gi-notification:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, .07);
        border-color: rgba(255, 255, 255, .08);
    }

.gi-notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: var(--gi-teal);
    border: 2px solid var(--gi-navy);
    border-radius: 50%;
}

/* =========================================================
   USER PROFILE
   ========================================================= */

.gi-user {
    min-height: 44px;
    padding: 4px 8px 4px 5px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
    transition: background-color .18s ease, border-color .18s ease;
}

    .gi-user:hover {
        background: rgba(255, 255, 255, .075);
        border-color: rgba(255, 255, 255, .12);
    }

.gi-user-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gi-teal);
    background: rgba(25, 183, 165, .14);
    border: 1px solid rgba(25, 183, 165, .18);
    font-size: .78rem;
    font-weight: 800;
}

.gi-user-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 3px;
}

.gi-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #FFFFFF;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
}

.gi-user-role {
    margin-top: 2px;
    color: rgba(255, 255, 255, .48);
    font-size: .66rem;
    font-weight: 500;
    line-height: 1.2;
}

.gi-user-menu {
    width: 30px;
    height: 38px;
    margin-left: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .48);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 10px;
    transition: color .18s ease, background-color .18s ease;
}

    .gi-user-menu:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, .08);
    }

/* =========================================================
   LOGOUT
   ========================================================= */

.gi-logout-form {
    margin: 0 0 0 5px;
    padding: 0;
}

.gi-logout {
    height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, .72) !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    font-size: .78rem;
    font-weight: 650;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

    .gi-logout:hover {
        color: #FFFFFF !important;
        background: rgba(255, 255, 255, .07);
        border-color: rgba(255, 255, 255, .22);
        transform: translateY(-1px);
    }

    .gi-logout i {
        color: rgba(255, 255, 255, .52);
        transition: color .18s ease;
    }

    .gi-logout:hover i {
        color: var(--gi-teal);
    }

/* =========================================================
   MOBILE TOGGLE
   ========================================================= */

.gi-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    cursor: pointer;
    font-size: 17px;
    transition: background-color .18s ease, border-color .18s ease;
}

    .gi-mobile-toggle:hover {
        background: rgba(255, 255, 255, .13);
        border-color: rgba(255, 255, 255, .20);
    }

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.gi-mobile-navigation {
    display: none;
    width: 100%;
    padding: 10px 16px 16px;
    background: var(--gi-navy-dark);
    border-top: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

    .gi-mobile-navigation.show {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

.gi-mobile-nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, .78) !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none !important;
    font-size: .88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

    .gi-mobile-nav-link:hover {
        color: #FFFFFF !important;
        background: rgba(255, 255, 255, .07);
    }

    .gi-mobile-nav-link.active {
        color: #FFFFFF !important;
        background: rgba(25, 183, 165, .13);
        border-color: rgba(25, 183, 165, .15);
    }

        .gi-mobile-nav-link.active i {
            color: var(--gi-teal);
        }

.gi-mobile-logout-form {
    margin-top: 7px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.gi-mobile-logout:hover {
    color: #FFFFFF !important;
    background: rgba(220, 38, 38, .10);
}

/* =========================================================
   MAIN
   ========================================================= */

.gi-main {
    flex: 1 0 auto;
    min-width: 0;
    background: var(--gi-page);
}


/* =========================================================
   CONTENT HEADER
   ========================================================= */

.gi-content-header {
    padding: 26px 30px 12px;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.gi-page-title {
    margin: 0;
    color: var(--gi-navy);
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.025em;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.gi-breadcrumb {
    margin: 0;
    font-size: .84rem;
}


    .gi-breadcrumb .breadcrumb-item a {
        color: var(--gi-teal-dark);
        text-decoration: none;
        font-weight: 600;
    }


    .gi-breadcrumb .breadcrumb-item.active {
        color: var(--gi-muted);
    }


/* =========================================================
   CONTENT
   ========================================================= */

.gi-content {
    padding: 12px 30px 35px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    border: 1px solid var(--gi-line);
    border-radius: 12px;
    box-shadow: var(--gi-shadow);
    overflow: hidden;
}


.card-header {
    padding: 16px 20px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--gi-line);
}


.card-title {
    color: var(--gi-navy);
    font-weight: 700;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: .60rem 1rem;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}


    .btn:hover {
        transform: translateY(-1px);
    }


.btn-primary {
    color: #FFFFFF !important;
    background: var(--gi-teal);
    border-color: var(--gi-teal);
    box-shadow: 0 5px 12px rgba(25, 183, 165, .20);
}


    .btn-primary:hover,
    .btn-primary:focus {
        color: #FFFFFF;
        background: var(--gi-teal-dark);
        border-color: var(--gi-teal-dark);
    }


/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select {
    border: 1px solid var(--gi-line);
    border-radius: 8px;
    color: var(--gi-ink);
    padding: .68rem .85rem;
}


    .form-control:focus,
    .form-select:focus {
        border-color: var(--gi-teal);
        box-shadow: 0 0 0 .20rem rgba(25, 183, 165, .13);
    }


.form-check-input:checked {
    background-color: var(--gi-teal);
    border-color: var(--gi-teal);
}


/* =========================================================
   CONTENT PANEL
   ========================================================= */

.content-panel {
    background: #FFFFFF;
    border: 1px solid var(--gi-line);
    border-radius: 12px;
    padding: 26px;
    box-shadow: var(--gi-shadow);
}


    .content-panel h1 {
        color: var(--gi-navy);
        font-weight: 800;
        letter-spacing: -.035em;
    }


/* =========================================================
   WELCOME HERO
   ========================================================= */

.welcome-hero {
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    background: linear-gradient( 105deg, var(--gi-navy), #0B5266 );
    border-radius: 14px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 16px 30px rgba(6, 29, 76, .16);
}


    .welcome-hero::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        right: -70px;
        top: -100px;
        border: 45px solid rgba(255, 255, 255, .07);
        border-radius: 50%;
    }


    .welcome-hero > * {
        position: relative;
        z-index: 1;
    }


    .welcome-hero h1 {
        margin: .35rem 0 .6rem;
        font-weight: 800;
        letter-spacing: -.04em;
    }


    .welcome-hero p {
        max-width: 42rem;
        margin-bottom: 1.35rem;
        color: #D6EAED;
    }


/* =========================================================
   QUICK LINKS
   ========================================================= */

.quick-link {
    height: 100%;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gi-ink);
    background: #FFFFFF;
    border: 1px solid var(--gi-line);
    border-radius: 12px;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
}


    .quick-link:hover {
        color: var(--gi-ink);
        transform: translateY(-3px);
        box-shadow: var(--gi-shadow);
    }


.quick-link-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--gi-teal-dark);
    background: var(--gi-teal-soft);
    border-radius: 10px;
}


.quick-link h2 {
    margin: 0 0 3px;
    color: var(--gi-navy);
    font-size: 1rem;
    font-weight: 750;
}


.quick-link p {
    margin: 0;
    color: var(--gi-muted);
    font-size: .83rem;
}


/* =========================================================
   SITEMAP
   ========================================================= */

.sitemap-intro {
    padding: 6px 0 20px;
}


    .sitemap-intro h1 {
        margin: .35rem 0;
        color: var(--gi-navy);
        font-weight: 800;
        letter-spacing: -.035em;
    }


    .sitemap-intro p {
        margin: 0;
        color: var(--gi-muted);
    }


.sitemap-card {
    display: block;
    height: 100%;
    color: var(--gi-ink);
    background: #FFFFFF;
    border: 1px solid var(--gi-line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(6, 29, 76, .04);
    transition: transform .20s, box-shadow .20s, border-color .20s;
}


    .sitemap-card:hover {
        color: var(--gi-ink);
        transform: translateY(-4px);
        box-shadow: var(--gi-shadow);
        border-color: #9EDDD4;
    }


.card-image-wrap {
    position: relative;
    overflow: hidden;
}


.card-image {
    width: 100%;
    height: 132px;
    display: block;
    object-fit: cover;
    transition: transform .30s;
}


.sitemap-card:hover .card-image {
    transform: scale(1.06);
}


.card-icon {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--gi-teal-dark);
    background: rgba(255, 255, 255, .94);
    border-radius: 50%;
}


.card-content {
    padding: 15px 16px 17px;
}


    .card-content h2 {
        margin: 0 0 5px;
        color: var(--gi-navy);
        font-size: 1rem;
        font-weight: 750;
    }


    .card-content p {
        margin: 0;
        color: var(--gi-muted);
        font-size: .83rem;
        line-height: 1.5;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.gi-footer {
    flex: 0 0 auto;
    padding: 15px 24px;
    color: var(--gi-muted);
    background: #FFFFFF;
    border-top: 1px solid var(--gi-line);
    font-size: .82rem;
}


.gi-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.gi-footer strong {
    color: var(--gi-navy);
}


.gi-footer a {
    color: var(--gi-teal-dark);
    text-decoration: none;
}


    .gi-footer a:hover {
        text-decoration: underline;
    }


.gi-footer-right {
    display: flex;
    align-items: center;
    gap: 18px;
}


/* =========================================================
   AUTHENTICATION
   ========================================================= */

.auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--gi-navy-dark), var(--gi-navy) );
}


    .auth-page::before,
    .auth-page::after {
        content: "";
        position: fixed;
        width: 38rem;
        height: 38rem;
        border-radius: 50%;
        pointer-events: none;
    }


    .auth-page::before {
        top: -20rem;
        left: -12rem;
        background: rgba(25, 183, 165, .12);
    }


    .auth-page::after {
        right: -17rem;
        bottom: -22rem;
        background: rgba(25, 183, 165, .08);
    }


.auth-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    padding: 24px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-shell {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
}


.login-aside {
    position: relative;
    padding: 48px;
    color: #FFFFFF;
    background: linear-gradient( 160deg, rgba(4, 21, 54, .97), rgba(6, 29, 76, .96) );
}


    .login-aside::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at 80% 20%, rgba(25, 183, 165, .16), transparent 40% );
    }


    .login-aside > * {
        position: relative;
        z-index: 1;
    }


.login-logo {
    width: auto;
    height: auto;
    max-width: 210px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 45px;
}


.login-eyebrow,
.page-eyebrow {
    color: var(--gi-teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.login-aside h1 {
    margin: 12px 0;
    font-size: 2.15rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.04em;
}


.login-aside p {
    max-width: 18rem;
    color: #C8D6E8;
    line-height: 1.65;
}


.login-aside-footer {
    margin-top: 90px;
    color: #AEBFD5;
    font-size: .82rem;
}


.login-panel {
    padding: 52px;
}


    .login-panel h2 {
        color: var(--gi-navy);
        font-weight: 800;
        letter-spacing: -.035em;
    }


    .login-panel .text-muted {
        color: var(--gi-muted) !important;
    }


.input-with-icon {
    position: relative;
}


    .input-with-icon i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #98A2B3;
    }


    .input-with-icon .form-control {
        padding-left: 43px;
    }


.login-help {
    color: var(--gi-teal-dark);
    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .gi-header-inner {
        padding-left: 18px;
        padding-right: 18px;
    }


    .gi-brand {
        padding-right: 20px;
        margin-right: 14px;
    }


    .gi-logo {
        width: 138px !important;
        max-width: 138px !important;
        max-height: 46px !important;
    }


    .gi-nav-link {
        padding-left: 12px;
        padding-right: 12px;
        font-size: .82rem;
        gap: 7px;
    }


    .gi-user-name {
        max-width: 105px;
    }


    .gi-content-header {
        padding-left: 22px;
        padding-right: 22px;
    }


    .gi-content {
        padding-left: 22px;
        padding-right: 22px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .gi-header-inner {
        height: 66px;
        min-height: 66px;
        padding: 0 16px;
    }


    .gi-brand {
        height: 66px;
        padding-right: 0;
        margin-right: auto;
    }

        .gi-brand::after {
            display: none;
        }


    .gi-logo {
        width: 145px !important;
        max-width: 145px !important;
        max-height: 46px !important;
    }


    .gi-navigation {
        display: none !important;
    }


    .gi-header-actions {
        height: 66px;
        margin-left: 10px;
        padding-left: 0;
    }


    .gi-notification,
    .gi-user,
    .gi-user-menu,
    .gi-logout-form {
        display: none;
    }


    .gi-mobile-toggle {
        display: inline-flex;
    }


    .gi-mobile-navigation {
        display: none;
    }


        .gi-mobile-navigation.show {
            display: flex;
        }


    .gi-content-header {
        padding: 20px 16px 8px;
    }


    .gi-content {
        padding: 10px 16px 25px;
    }


    .gi-footer {
        padding: 14px 16px;
    }


    .gi-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }


    .gi-footer-right {
        width: 100%;
        justify-content: space-between;
    }


    .login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }


    .login-aside {
        padding: 30px;
    }


    .login-logo {
        margin-bottom: 30px;
    }


    .login-aside-footer {
        margin-top: 30px;
    }


    .login-panel {
        padding: 34px 28px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .gi-header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }


    .gi-logo {
        width: 132px !important;
        max-width: 132px !important;
        max-height: 43px !important;
    }


    .gi-mobile-toggle {
        width: 39px;
        height: 39px;
    }


    .gi-page-title {
        font-size: 1.25rem;
    }


    .gi-breadcrumb {
        display: none;
    }


    .card-image {
        height: 112px;
    }


    .gi-footer-right {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }


    .login-panel {
        padding: 28px 20px;
    }
}
