/* ============================================================
   aventelio.com
   Fresh Portal UI
   ============================================================ */

:root {
    --portal-bg: #f7f8fc;
    --portal-surface: #ffffff;
    --portal-surface-soft: #f9fafb;

    --portal-text: #172033;
    --portal-heading: #101828;
    --portal-muted: #667085;
    --portal-light-text: #98a2b3;

    --portal-border: #e8eaf0;
    --portal-border-strong: #d9dde7;

    --portal-primary: #5267e8;
    --portal-primary-dark: #4054d6;
    --portal-primary-soft: #eef0ff;

    --portal-purple: #7a5af8;
    --portal-purple-soft: #f4f3ff;

    --portal-green: #039855;
    --portal-green-soft: #ecfdf3;

    --portal-orange: #dc6803;
    --portal-orange-soft: #fff6ed;

    --portal-red: #d92d20;
    --portal-red-soft: #fef3f2;

    --portal-blue: #1570ef;
    --portal-blue-soft: #eff8ff;

    --portal-radius: 18px;
    --portal-radius-small: 11px;

    --portal-shadow:
        0 1px 2px rgba(16, 24, 40, 0.02),
        0 8px 24px rgba(16, 24, 40, 0.045);
}


/* ============================================================
   BASE
   ============================================================ */

html {
    min-height: 100%;
    scrollbar-gutter: stable;
}

body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(82, 103, 232, 0.055),
            transparent 26rem
        ),
        var(--portal-bg);

    color: var(--portal-text);

    font-family:
        Aptos,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 15px;

    -webkit-font-smoothing: antialiased;
}


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

.portal-header {
    position: sticky;
    top: 0;

    z-index: 1020;

    height: 74px;

    background:
        rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom:
        1px solid
        rgba(228, 231, 236, 0.9);
}

.portal-header-inner {
    height: 100%;

    max-width: 1600px;

    margin: 0 auto;

    padding:
        0
        34px;

    display: flex;

    align-items: center;

    gap: 35px;
}


/* ============================================================
   BRAND
   ============================================================ */

.portal-brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    color: var(--portal-heading);

    text-decoration: none;

    flex-shrink: 0;
}

.portal-brand:hover {
    color: var(--portal-heading);
}

.portal-logo {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    display: flex;

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

    color: #fff;

    font-size: 20px;

    background:
        linear-gradient(
            135deg,
            #7585f3,
            #5267e8 55%,
            #7657e8
        );

    box-shadow:
        0 6px 18px
        rgba(82, 103, 232, .22);
}

.portal-brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1.1;
}

.portal-brand-name {
    font-size: 16px;

    font-weight: 700;

    letter-spacing: -.02em;
}

.portal-brand-subtitle {
    margin-top: 4px;

    color: var(--portal-light-text);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* ============================================================
   TOP NAVIGATION
   ============================================================ */

.portal-nav {
    display: flex;

    align-items: center;

    gap: 5px;

    flex: 1;
}

.portal-nav-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        9px
        11px;

    border-radius: 9px;

    color: #475467;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        color .15s ease,
        background .15s ease;
}

.portal-nav-link i {
    color: currentColor;

    font-size: 14px;
}

.portal-nav-link:hover {
    color: var(--portal-primary);

    background: var(--portal-primary-soft);
}

.portal-nav-link:hover i {
    color: currentColor;
}


/* ============================================================
   USER AREA
   ============================================================ */

.portal-header-actions {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 12px;
}

.portal-user {
    display: flex;

    align-items: center;

    gap: 9px;
}

.portal-user-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    display: flex;

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

    color: var(--portal-primary);

    background: var(--portal-primary-soft);

    font-size: 15px;

    overflow: hidden;

    text-decoration: none;
}

.portal-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-preview {
    width: 112px;
    height: 112px;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    object-fit: cover;
}

.portal-user-info {
    max-width: 150px;

    line-height: 1.15;
}

.portal-user-name {
    overflow: hidden;

    color: #344054;

    font-size: 12px;

    font-weight: 650;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.portal-user-role {
    margin-top: 3px;

    color: var(--portal-light-text);

    font-size: 10px;
}


/* ============================================================
   MAIN
   ============================================================ */

.portal-main {
    min-height:
        calc(100vh - 74px - 67px);
}

.page-shell {
    width: 100%;

    max-width: 1450px;

    margin: 0 auto;

    padding:
        42px
        32px
        60px;
}

.container.page-shell {
    max-width: 1450px;
}


/* ============================================================
   PAGE HEADINGS
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--portal-heading);

    font-weight: 650;

    letter-spacing: -.025em;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 21px;
}

.page-title {
    margin-bottom: 6px;

    color: var(--portal-heading);

    font-size: 31px;

    font-weight: 700;

    letter-spacing: -.035em;
}

.page-subtitle {
    margin-bottom: 0;

    color: var(--portal-muted);

    font-size: 15px;
}

.page-header {
    margin-bottom: 28px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}

.text-secondary,
.text-muted {
    color: var(--portal-muted) !important;
}


/* ============================================================
   CARDS
   ============================================================ */

.card,
.feature-card,
.app-card {
    overflow: hidden;

    background: var(--portal-surface);

    border:
        1px solid
        var(--portal-border);

    border-radius:
        var(--portal-radius);

    box-shadow:
        var(--portal-shadow);
}

.card-header {
    padding:
        19px
        22px;

    background: #fff;

    border-bottom:
        1px solid
        var(--portal-border);

    color: var(--portal-heading);

    font-weight: 650;
}

.card-body {
    padding: 23px;
}


/* ============================================================
   FEATURE / DASHBOARD CARDS
   ============================================================ */

.feature-card {
    position: relative;

    padding: 24px;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.feature-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 32px
        rgba(16, 24, 40, .07);
}

.stat-card {
    position: relative;

    min-height: 150px;

    padding: 23px;

    overflow: hidden;

    background: #fff;

    border:
        1px solid
        var(--portal-border);

    border-radius:
        var(--portal-radius);

    box-shadow:
        var(--portal-shadow);
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 95px;
    height: 95px;

    right: -28px;
    top: -28px;

    border-radius: 50%;

    background:
        rgba(82, 103, 232, .055);
}

.stat-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 18px;

    display: flex;

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

    border-radius: 12px;

    color: var(--portal-primary);

    background: var(--portal-primary-soft);

    font-size: 18px;
}

.stat-value {
    color: var(--portal-heading);

    font-size: 30px;

    font-weight: 700;

    letter-spacing: -.04em;
}

.stat-label {
    margin-top: 2px;

    color: var(--portal-muted);

    font-size: 13px;

    font-weight: 500;
}


/* ============================================================
   APPLICATION / QUESTIONNAIRE
   ============================================================ */

.app-card {
    margin-bottom: 22px;
}

.question-card {
    margin-bottom: 15px;

    padding: 20px;

    background: #fff;

    border:
        1px solid
        var(--portal-border);

    border-radius: 14px;

    box-shadow:
        0 2px 8px
        rgba(16, 24, 40, .025);

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.question-card:hover {
    border-color: #cfd5e5;

    box-shadow:
        0 5px 15px
        rgba(16, 24, 40, .045);
}

.question-card:focus-within {
    border-color:
        rgba(82, 103, 232, .5);

    box-shadow:
        0 0 0 3px
        rgba(82, 103, 232, .07);
}

.question-card label {
    color: #344054;

    font-weight: 600;
}

.question-help {
    margin-top: 4px;

    color: var(--portal-muted);

    font-size: 12px;
}

.required-marker {
    margin-left: 3px;

    color: var(--portal-red);
}


/* ============================================================
   PROGRESS
   ============================================================ */

.application-progress {
    margin-bottom: 28px;

    padding: 18px 22px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fafaff
        );

    border:
        1px solid
        var(--portal-border);

    border-radius:
        var(--portal-radius);

    box-shadow:
        var(--portal-shadow);
}

.progress {
    height: 7px;

    overflow: hidden;

    background: #eaecf0;

    border-radius: 999px;
}

.progress-bar {
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #5267e8,
            #795bea
        );
}


/* ============================================================
   FORMS
   ============================================================ */

.form-label {
    margin-bottom: 7px;

    color: #344054;

    font-size: 13px;

    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 44px;

    padding:
        .62rem
        .8rem;

    color: var(--portal-text);

    background: #fff;

    border:
        1px solid
        #d8dce6;

    border-radius: 10px;

    font-size: 14px;

    box-shadow:
        0 1px 2px
        rgba(16, 24, 40, .025);

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #c2c8d4;
}

.form-control:focus,
.form-select:focus {
    border-color: #8797ee;

    box-shadow:
        0 0 0 4px
        rgba(82, 103, 232, .09);
}

textarea.form-control {
    min-height: 120px;

    resize: vertical;
}

.form-check-input {
    border-color: #c7ccd6;
}

.form-check-input:checked {
    background-color:
        var(--portal-primary);

    border-color:
        var(--portal-primary);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    min-height: 39px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding:
        .52rem
        .9rem;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 650;

    box-shadow: none;

    transition:
        transform .12s ease,
        background .15s ease,
        border-color .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #5b70eb,
            #4d60dd
        );

    border-color:
        var(--portal-primary);

    box-shadow:
        0 4px 10px
        rgba(82, 103, 232, .15);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #4d62df,
            #4054d6
        );

    border-color:
        var(--portal-primary-dark);
}

.btn-outline-primary {
    color: var(--portal-primary);

    border-color: #c9d0fa;

    background: #fff;
}

.btn-outline-primary:hover {
    color: var(--portal-primary);

    border-color: #aeb9f4;

    background: var(--portal-primary-soft);
}

.btn-portal-light {
    color: #475467;

    background: #fff;

    border:
        1px solid
        var(--portal-border-strong);
}

.btn-portal-light:hover {
    color: var(--portal-primary);

    background: var(--portal-primary-soft);

    border-color: #cdd3f5;
}

.btn-sm {
    min-height: 32px;

    padding:
        .35rem
        .65rem;

    font-size: 12px;
}


/* ============================================================
   TABLES
   ============================================================ */

.table-responsive {
    overflow: hidden;

    background: #fff;

    border:
        1px solid
        var(--portal-border);

    border-radius: 14px;
}

.table {
    margin: 0;

    color: var(--portal-text);

    font-size: 13px;
}

.table > thead > tr > th {
    padding:
        12px
        15px;

    color: #667085;

    background: #f9fafb;

    border-bottom:
        1px solid
        var(--portal-border);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .055em;

    text-transform: uppercase;

    white-space: nowrap;
}

.table > tbody > tr > td {
    padding:
        15px;

    vertical-align: middle;

    border-color: #f0f1f4;
}

.table > tbody > tr {
    transition:
        background .12s ease;
}

.table > tbody > tr:hover {
    background: #fafbff;
}


/* ============================================================
   STATUS PILLS
   ============================================================ */

.status-pill,
.badge {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        .34rem
        .65rem;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 650;
}

.status-success {
    color: var(--portal-green);

    background: var(--portal-green-soft);
}

.status-warning {
    color: var(--portal-orange);

    background: var(--portal-orange-soft);
}

.status-danger {
    color: var(--portal-red);

    background: var(--portal-red-soft);
}

.status-info {
    color: var(--portal-blue);

    background: var(--portal-blue-soft);
}

.status-draft {
    color: #475467;

    background: #f2f4f7;
}


/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding:
        13px
        16px;

    border: 0;

    border-radius: 12px;

    font-size: 13px;
}

.alert-info {
    color: #175cd3;

    background: #eff8ff;
}

.alert-success {
    color: #067647;

    background: #ecfdf3;
}

.alert-warning {
    color: #b54708;

    background: #fffaeb;
}

.alert-danger {
    color: #b42318;

    background: #fef3f2;
}


/* ============================================================
   REVIEW
   ============================================================ */

.review-answer {
    padding:
        18px
        0;
}

.review-answer + .review-answer {
    border-top:
        1px solid
        var(--portal-border);
}

.answer-value {
    margin-top: 8px;

    padding:
        .85rem
        1rem;

    color: #344054;

    background: #f9fafb;

    border:
        1px solid
        var(--portal-border);

    border-radius: 10px;

    white-space: pre-wrap;
}


/* ============================================================
   PUBLIC HERO
   ============================================================ */

.hero {
    position: relative;

    overflow: hidden;

    padding:
        100px
        0
        110px;

    color: var(--portal-heading);

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(122, 90, 248, .14),
            transparent 25rem
        ),
        radial-gradient(
            circle at 15% 15%,
            rgba(82, 103, 232, .12),
            transparent 27rem
        ),
        linear-gradient(
            180deg,
            #fbfbff,
            #f5f6ff
        );
}

.hero h1 {
    max-width: 850px;

    font-size:
        clamp(
            3rem,
            6vw,
            5.4rem
        );

    font-weight: 720;

    letter-spacing: -.055em;

    line-height: .98;
}

.hero p {
    max-width: 700px;

    color: #667085;

    font-size: 18px;

    line-height: 1.65;
}

.hero h1,
.hero p.hero-description {
    color: #101828;
}


/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
    padding:
        60px
        25px;

    text-align: center;

    color: var(--portal-muted);
}

.empty-state-icon {
    width: 58px;
    height: 58px;

    margin:
        0
        auto
        17px;

    display: flex;

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

    border-radius: 16px;

    color: var(--portal-primary);

    background: var(--portal-primary-soft);

    font-size: 24px;
}


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

.portal-footer {
    min-height: 67px;

    display: flex;

    align-items: center;

    color: var(--portal-light-text);

    background:
        rgba(255, 255, 255, .55);

    border-top:
        1px solid
        var(--portal-border);

    font-size: 11px;
}

.portal-footer-inner {
    max-width: 1600px;

    margin: 0 auto;

    padding:
        0
        34px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ============================================================
   MOBILE
   ============================================================ */

.portal-mobile-button {
    width: 40px;
    height: 40px;

    display: flex;

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

    padding: 0;

    color: #344054;

    background: #fff;

    border:
        1px solid
        var(--portal-border);

    border-radius: 10px;

    font-size: 21px;
}

.portal-mobile-nav {
    width: 320px !important;

    background: #fff;
}

.portal-mobile-nav .offcanvas-header {
    padding: 20px;

    border-bottom:
        1px solid
        var(--portal-border);
}

.mobile-nav-links {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.mobile-nav-link {
    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        11px
        12px;

    color: #475467;

    border-radius: 9px;

    text-decoration: none;

    font-weight: 600;
}

.mobile-nav-link i {
    width: 20px;

    color: currentColor;
}

.mobile-nav-link:hover {
    color: var(--portal-primary);

    background: var(--portal-primary-soft);
}

.mobile-nav-heading {
    margin:
        22px
        12px
        5px;

    color: #98a2b3;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


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

@media (max-width: 1199.98px) {

    .portal-header-inner {
        padding:
            0
            22px;

        gap: 18px;
    }

    .portal-nav-link {
        padding:
            9px
            8px;

        font-size: 12px;
    }

}


@media (max-width: 991.98px) {

    .portal-header {
        height: 66px;
    }

    .portal-header-inner {
        padding:
            0
            18px;
    }

    .portal-main {
        min-height:
            calc(100vh - 66px);
    }

    .page-shell {
        padding:
            28px
            18px
            45px;
    }

    .hero {
        padding:
            70px
            20px
            80px;
    }

}


@media (max-width: 575.98px) {

    body {
        font-size: 14px;
    }

    .portal-brand-subtitle {
        display: none;
    }

    .page-shell {
        padding:
            23px
            14px
            40px;
    }

    .page-header {
        flex-direction: column;
    }

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

    .card-body {
        padding: 18px;
    }

    .question-card {
        padding: 17px;
    }

    .portal-footer-inner {
        padding:
            0
            18px;
    }

    .portal-footer-right {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

}

/* Public website navigation */
.public-nav {
    align-items: center;
    gap: 4px;
}

.public-menu-toggle {
    border: 0;
    background: transparent;
}

.public-nav > .portal-nav-link,
.public-nav .public-menu-toggle {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.public-mobile-menu summary {
    cursor: pointer;
    list-style: revert;
    display: list-item;
    margin-left: 18px;
}

.public-content-section {
    scroll-margin-top: 100px;
}

/* Wide dropdown panels for the public website */
.portal-header-inner {
    position: relative;
}

.public-nav .dropdown {
    position: static;
}

.public-nav .public-mega-menu {
    inset: 100% 24px auto;
    margin: 0;
    padding: 0;
    border: 1px solid var(--portal-border);
    border-radius: 0 0 20px 20px;
    background: white;
    box-shadow: 0 24px 48px rgba(16, 24, 40, .14);
    overflow: hidden;
}

.public-mega-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 2.5fr;
}

.public-mega-intro {
    padding: 36px;
    background: var(--portal-primary-soft);
}

.public-mega-icon {
    display: block;
    color: var(--portal-primary);
    font-size: 32px;
    margin-bottom: 20px;
}

.public-mega-intro p {
    color: var(--portal-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.public-mega-overview {
    color: var(--portal-primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.public-mega-overview:hover {
    text-decoration: underline;
}

.public-mega-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    align-content: start;
    list-style: none;
    padding: 24px;
    margin: 0;
}

.public-mega-link {
    padding: 18px;
    border-radius: 12px;
    white-space: normal;
    height: 100%;
    transition: background-color .15s ease;
}

.public-mega-link-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    color: var(--portal-heading);
    margin-bottom: 7px;
}

.public-mega-link-title i {
    color: var(--portal-primary);
}

.public-mega-link-description {
    display: block;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.6;
}

.public-nav .public-mega-link:hover,
.public-nav .public-mega-link:focus,
.public-nav .public-mega-link:active {
    background: var(--portal-primary-soft);
    color: var(--portal-heading);
}

.public-menu-toggle[aria-expanded="true"] {
    background: var(--portal-primary-soft);
    color: var(--portal-primary-dark);
}

/* Decorative AI illustrations on the public website */
.public-ai-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
    border-radius: 20px;
}

.public-ai-banner {
    max-width: 900px;
    margin-inline: auto;
}

.public-ai-banner .public-ai-image {
    height: 260px;
    object-position: center;
}

.public-ai-login .public-ai-image {
    height: 170px;
}

@media (max-width: 575.98px) {
    .public-ai-banner .public-ai-image {
        height: 180px;
    }
}
