﻿
/***************************** login css START *********************/
#loginpage {
    /*background: url(../img/bg.jpg) no-repeat 0 0;*/
    width: 100%;
    height: 100%;
    background-size: cover;
    font-family: 'Open Sans', sans-serif;
}

#mainbox {
    width: 1120px;
    margin: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.8);
    transition: .6s ease-in-out 1.2s, visibility 0s 1s;
}

.mainpanel {
    display: flex;
}

.leftpanel {
    width: 50%;
    padding: 50px;
}

    .leftpanel h3 span {
        display: block;
        color: #000;
        font-size: 14px;
        font-family: 'Open Sans', sans-serif;
        font-style: normal;
        font-weight: 400;
        text-transform: capitalize;
    }

    .leftpanel h3 {
        font-family: 'Oswald', sans-serif;
        font-size: 36px;
        font-style: normal;
        font-weight: 700;
        margin: 20px 0;
        text-transform: uppercase;
    }

    .leftpanel label {
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
    }

    .leftpanel input.form-control {
        padding: 10px 10px;
        margin-top: 4px;
        border-radius: 5px;
        border-color: #D4D4D4;
    }

        .leftpanel input.form-control:focus {
            color: #000;
        }

        .leftpanel input.form-control:focus {
            border-color: #2C2D86;
        }

.btn-custom {
    border-radius: 10px;
    background: rgb(132,90,223);
    border-color: rgb(132,90,223);
    display: block;
    width: 100%;
    color: #fff;
    padding: 10px 0;
    border-radius: 5px;
}

    .btn-custom:hover {
        background: rgb(132,90,223);
        border-color: rgb(132,90,223);
        color: #fff;
    }

.rightpanel {
    width: 50%;
    padding: 50px;
    background: url(../img/upper-bg.png) no-repeat 0 0;
    height: 670px;
    background-size: cover;
    outline: 2px solid rgba(255,255,255,0.2);
    outline-offset: -25px;
}

.inner {
    width: 86%;
    margin: auto;
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

    .inner p {
        position: relative;
    }

        .inner p:before {
            content: " ";
            background: url(../img/2.png) no-repeat 0 0;
            height: 29px;
            width: 34px;
            position: absolute;
            top: -10px;
            left: -20px;
        }

.leftpanel .col-form-label {
    font-weight: 400;
    text-transform: capitalize;
}

.inner p:after {
    content: " ";
    background: url(../img/1.png) no-repeat 0 0;
    height: 29px;
    width: 34px;
    position: absolute;
    bottom: -20px;
    right: -40px;
}

.rightpanel span {
    color: #EFDD39;
    font-size: 22px;
}

.leftpanel .text-right {
    text-align: right
}

    .leftpanel .text-right a {
        color: #3F4089;
    }

.rightpanel h3 {
    color: #EFDD39;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px; /* 133.333% */
    text-transform: capitalize;
}

.rightpanel p {
    color: #FFF;
    text-align: center;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 42px;
}

.rightpanel span {
    color: #EFDD39;
    text-align: center;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
}

.leftpanel .containerchk {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .leftpanel .containerchk input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .leftpanel .containerchk label {
        padding: 0;
    }

.leftpanel .checkmark {
    position: absolute;
    top: 8px;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 1px #ddd solid;
}

.leftpanel .containerchk:hover input ~ .checkmark {
    background-color: #fff;
}

.leftpanel .containerchk input:checked ~ .checkmark {
    background-color: #2C2D86;
}

.leftpanel .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.leftpanel .containerchk input:checked ~ .checkmark:after {
    display: block;
}

.leftpanel .containerchk .checkmark:after {
    left: 7px;
    top: 2px;
    width: 10px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

@media(max-width:1199px) {
    #mainbox {
        width: 970px;
    }

    .rightpanel .inner h3 {
        font-size: 32px;
    }

    .rightpanel {
        height: auto;
    }
}

@media(max-width:991px) {
    #mainbox {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: auto;
    }

    /* #loginpage {
        background-size: auto;
    }*/
    .leftpanel {
        padding: 50px 20px;
    }

    .mainpanel {
        flex-direction: column;
    }

    .leftpanel, .rightpanel, .inner {
        width: 100%;
    }

    .rightpanel {
        height: auto;
    }

        .rightpanel .inner {
            top: auto;
            transform: none;
        }

            .rightpanel .inner p {
                font-size: 22px;
                line-height: 1.4;
            }

                .rightpanel .inner p:after {
                    bottom: -10px;
                    right: 10px;
                }

                .rightpanel .inner p:before {
                    left: -10px;
                }

            .rightpanel .inner h3 {
                font-size: 30px;
            }

            .rightpanel .inner h3 {
                font-size: 30px;
                line-height: 40px;
            }
}

/* Responsive Logic */
@media (max-width: 991px) {
    .mainpanel {
        flex-direction: column;
    }

    .leftpanel {
        padding: 50px 30px;
    }

    .rightpanel {
        padding: 40px 30px;
        order: -1;
    }
}
/***************************** login css END *********************/

/***************************** auth login redesign START *********************/
body.auth-body {
    min-height: 100vh;
    background: linear-gradient(145deg, #f6f3ef 0%, #eef0f6 45%, #ebe8f2 100%);
}

.auth-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: transparent;
}

.auth-login-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    min-height: 560px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Left card — brand panel */
.auth-login-brand-card {
    flex: 0 0 48%;
    position: relative;
    background: linear-gradient(165deg, #4a1530 0%, #331428 45%, #2d1b35 100%);
    color: #fff;
}

.auth-login-brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgb(188, 151, 34) 0%, rgba(188, 151, 34, 0.4) 100%);
}

.auth-login-brand-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 2.5rem 2.25rem 2.5rem 2.5rem;
}

.auth-login-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.auth-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0.5rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.auth-login-logo img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.auth-login-tagline {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: rgb(188, 151, 34);
    margin: 0 0 1rem;
}

.auth-login-brand-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 0 1.5rem;
}

.auth-login-brand-body h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.auth-login-brand-body > p:not(.auth-login-tagline) {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 1.75rem;
}

.auth-login-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-login-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(188, 151, 34, 0.18);
    border-radius: 8px;
}

.auth-login-highlights li i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
    color: rgb(188, 151, 34);
    background: rgba(188, 151, 34, 0.12);
    border-radius: 6px;
    flex-shrink: 0;
}

.auth-login-brand-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: auto 0 0;
}

/* Right card — login form */
.auth-login-form-card {
    flex: 1;
    background: #fff;
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-login-form-inner {
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.auth-login-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.auth-login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.4rem;
}

.auth-login-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.auth-login-field {
    margin-bottom: 1rem;
}

.auth-login-field .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.auth-login-field .form-control {
    height: 2.875rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    color: #111827;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-login-field .form-control:focus {
    border-color: rgb(188, 151, 34);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(188, 151, 34, 0.12);
}

.auth-login-field .form-control::placeholder {
    color: #9ca3af;
}

.auth-login-password-wrap {
    position: relative;
}

.auth-login-password-wrap .form-control {
    padding-right: 2.75rem;
}

.auth-login-toggle-pwd {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-login-toggle-pwd:hover {
    color: #374151;
    background: #f3f4f6;
}

.auth-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-login-options .form-check-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.auth-login-options .form-check-input:checked {
    background-color: rgb(188, 151, 34);
    border-color: rgb(188, 151, 34);
}

.auth-login-options .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(188, 151, 34, 0.2);
}

.auth-login-forgot-link {
    font-size: 0.875rem;
    color: rgb(188, 151, 34);
    text-decoration: none;
}

.auth-login-forgot-link:hover {
    color: #97742f;
    text-decoration: underline;
}

.auth-login-submit {
    height: 2.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background-color: rgb(188, 151, 34);
    border: 1px solid rgb(188, 151, 34);
    border-radius: 8px;
    transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

.auth-login-submit:hover,
.auth-login-submit:focus {
    color: #fff;
    background-color: #a8832f;
    border-color: #a8832f;
}

.auth-login-submit:active {
    transform: scale(0.99);
}

.auth-login-register {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 1.25rem 0 0;
}

.auth-login-register a {
    color: rgb(188, 151, 34);
    font-weight: 500;
    text-decoration: none;
}

.auth-login-register a:hover {
    color: #97742f;
    text-decoration: underline;
}

.auth-login-alert {
    font-size: 0.875rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.auth-login-tabs {
    background: #f3f4f6;
    border-radius: 6px;
    padding: 0.2rem;
}

.auth-login-tabs .nav-link {
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.auth-login-tabs .nav-link.active {
    background: #fff;
    color: rgb(188, 151, 34);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.auth-login-form .invalid-feedback {
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    .auth-login-page {
        padding: 1rem;
        align-items: flex-start;
    }

    .auth-login-shell {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }

    .auth-login-brand-card {
        flex: none;
    }

    .auth-login-brand-inner {
        padding: 1.75rem 1.5rem;
    }

    .auth-login-logo img {
        width: 140px;
        height: 140px;
    }

    .auth-login-brand-inner,
    .auth-login-form-card {
        padding: 1.75rem 1.5rem;
    }

    .auth-login-brand-body {
        padding: 1.25rem 0;
    }

    .auth-login-highlights {
        gap: 0.65rem;
    }

    .auth-login-brand-footer {
        display: none;
    }

    .auth-login-form-card {
        justify-content: center;
    }

    .auth-login-form-inner {
        max-width: none;
    }
}
/***************************** auth login redesign END *********************/

/***************************** auth wrapper (Login) modern theme START *********************/
/* Overrides the inline <style> in Views/Account/Login.cshtml. Every selector is scoped to
   body.auth-body .auth-wrapper so it wins on specificity and never leaks into other pages. */
body.auth-body {
    --auth-primary: #15803d;
    --auth-primary-hover: #166534;
    --auth-primary-active: #14532d;
    --auth-primary-text: #15803d;
    --auth-primary-soft: #f0fdf4;
    --auth-primary-soft-2: #dcfce7;
    --auth-primary-ring: rgba(21, 128, 61, 0.18);
    --auth-ink: #0f172a;
    --auth-body-text: #334155;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-border-strong: #cbd5e1;
    --auth-surface: #ffffff;
    --auth-surface-2: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body.auth-body .auth-wrapper {
    min-height: 100vh;
    padding: 2rem 1rem;
    /* clip (not hidden) so focus() can't scroll the wrapper by the orbs' overflow */
    overflow: clip;
    background-color: #f4f7f6;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(21, 128, 61, 0.10) 0, rgba(21, 128, 61, 0) 38%),
        radial-gradient(circle at 92% 96%, rgba(21, 128, 61, 0.08) 0, rgba(21, 128, 61, 0) 42%),
        radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: auto, auto, 22px 22px;
}

/* Calm the decorative orbs: softer, static */
body.auth-body .auth-wrapper .orb {
    opacity: 0.22;
    filter: blur(90px);
    animation: none;
}

body.auth-body .auth-wrapper .orb-1,
body.auth-body .auth-wrapper .orb-2,
body.auth-body .auth-wrapper .orb-3 {
    background: radial-gradient(circle, rgba(21, 128, 61, 0.55) 0%, rgba(21, 128, 61, 0) 70%);
}

body.auth-body .auth-wrapper .orb-3 {
    display: none;
}

/* Card */
body.auth-body .auth-wrapper .auth-container {
    position: relative;
    max-width: 420px;
    background: var(--auth-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -8px rgba(15, 23, 42, 0.12);
}

body.auth-body .auth-wrapper .auth-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--auth-primary);
    z-index: 2;
}

body.auth-body .auth-wrapper .auth-form-section {
    padding: 2.5rem 2.25rem 1.75rem;
    color: var(--auth-body-text);
}

/* Brand */
body.auth-body .auth-wrapper .brand-logo-wrapper {
    margin-bottom: 1.75rem;
}

body.auth-body .auth-wrapper .brand-logo-img {
    max-width: 84px;
    padding: 4px;
    border: 1px solid var(--auth-border);
    box-shadow: 0 0 0 4px var(--auth-primary-soft), 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.auth-body .auth-wrapper .brand-title-green {
    margin: 1rem 0 0.35rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--auth-ink);
}

body.auth-body .auth-wrapper #brand-subtitle {
    color: var(--auth-muted) !important;
    font-size: 0.875rem !important;
    line-height: 1.45;
}

/* Step progress */
body.auth-body .auth-wrapper .step-progress {
    gap: 0.375rem;
    margin-bottom: 1.75rem;
}

body.auth-body .auth-wrapper .step-progress .dot {
    width: 32px;
    height: 4px;
    border-radius: 999px;
    background-color: var(--auth-border);
}

body.auth-body .auth-wrapper .step-progress .dot.active {
    background-color: var(--auth-primary);
}

/* Login method options */
body.auth-body .auth-wrapper .method-option {
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

body.auth-body .auth-wrapper .method-option:hover {
    border-color: var(--auth-primary);
    background-color: #fbfefd;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.10);
    transform: none;
}

body.auth-body .auth-wrapper .method-option:focus-visible {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-primary-ring);
}

body.auth-body .auth-wrapper .method-option:active {
    background-color: var(--auth-primary-soft);
}

body.auth-body .auth-wrapper .method-icon {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.2rem;
    color: var(--auth-primary-text);
    background: var(--auth-primary-soft);
    border: 1px solid var(--auth-primary-soft-2);
    transition: background-color 0.15s ease, color 0.15s ease;
}

body.auth-body .auth-wrapper .method-option:hover .method-icon {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
    color: #fff;
}

body.auth-body .auth-wrapper .method-text .m-title {
    font-size: 0.9375rem;
    color: var(--auth-ink);
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

body.auth-body .auth-wrapper .method-text .m-sub {
    font-size: 0.8125rem;
    color: var(--auth-muted);
}

body.auth-body .auth-wrapper .method-option .ri-arrow-right-s-line {
    color: var(--auth-border-strong);
    transition: color 0.15s ease, transform 0.15s ease;
}

body.auth-body .auth-wrapper .method-option:hover .ri-arrow-right-s-line {
    color: var(--auth-primary);
    transform: translateX(2px);
}

/* Back link */
body.auth-body .auth-wrapper .step-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 6px;
    color: var(--auth-muted);
    font-size: 0.8125rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

body.auth-body .auth-wrapper .step-back:hover {
    color: var(--auth-primary-text);
    background-color: var(--auth-primary-soft);
}

body.auth-body .auth-wrapper .step-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--auth-primary-ring);
}

/* Labels & inputs */
body.auth-body .auth-wrapper .form-label {
    color: var(--auth-ink) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.4rem !important;
}

body.auth-body .auth-wrapper .input-group {
    flex-wrap: nowrap;
    border-radius: 10px;
    transition: box-shadow 0.15s ease;
}

body.auth-body .auth-wrapper .input-group-text,
body.auth-body .auth-wrapper .input-group .form-control,
body.auth-body .auth-wrapper .input-group .btn {
    min-height: 46px;
    border: 1px solid var(--auth-border-strong) !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

body.auth-body .auth-wrapper .input-group-text {
    padding: 0 0.875rem;
    background-color: var(--auth-surface-2) !important;
    color: var(--auth-muted) !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px;
    font-size: 1.05rem;
}

body.auth-body .auth-wrapper .input-group .form-control {
    padding: 0.625rem 0.875rem 0.625rem 0.25rem;
    border-left: none !important;
    background-color: var(--auth-surface-2);
    color: var(--auth-ink);
    font-size: 0.9375rem !important;
    border-radius: 0 10px 10px 0;
    box-shadow: none;
}

body.auth-body .auth-wrapper .input-group .form-control::placeholder {
    color: #94a3b8;
}

/* Password field: the eye button sits at the end */
body.auth-body .auth-wrapper .input-group .form-control:not(:last-child) {
    border-right: none !important;
    border-radius: 0;
}

body.auth-body .auth-wrapper .input-group .btn {
    padding: 0 0.875rem;
    background-color: var(--auth-surface-2);
    border-left: none !important;
    border-radius: 0 10px 10px 0;
    box-shadow: none;
}

body.auth-body .auth-wrapper .input-group .btn:hover i {
    color: var(--auth-primary-text) !important;
}

/* Whole-group focus ring */
body.auth-body .auth-wrapper .input-group:focus-within {
    box-shadow: 0 0 0 4px var(--auth-primary-ring);
}

body.auth-body .auth-wrapper .input-group:focus-within .input-group-text,
body.auth-body .auth-wrapper .input-group:focus-within .form-control,
body.auth-body .auth-wrapper .input-group:focus-within .btn {
    border-color: var(--auth-primary) !important;
    background-color: var(--auth-surface) !important;
}

body.auth-body .auth-wrapper .input-group:focus-within .input-group-text {
    color: var(--auth-primary-text) !important;
}

body.auth-body .auth-wrapper .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: none;
    outline: none;
}

/* Validation */
body.auth-body .auth-wrapper .input-group:has(.form-control.is-invalid) .input-group-text,
body.auth-body .auth-wrapper .input-group .form-control.is-invalid,
body.auth-body .auth-wrapper .input-group:has(.form-control.is-invalid) .btn {
    border-color: #ef4444 !important;
}

body.auth-body .auth-wrapper .input-group:has(.form-control.is-invalid):focus-within {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

body.auth-body .auth-wrapper .form-control.is-invalid {
    background-image: none;
}

body.auth-body .auth-wrapper .text-danger {
    color: #dc2626 !important;
    font-size: 0.8125rem;
}

body.auth-body .auth-wrapper .validation-summary-errors ul {
    margin: 0;
    padding: 0.625rem 0.875rem;
    list-style: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

/* Primary button */
body.auth-body .auth-wrapper .btn-primary-green {
    min-height: 46px;
    padding: 0.625rem 1.5rem;
    background-color: var(--auth-primary);
    border: 1px solid var(--auth-primary);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(21, 128, 61, 0.35);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.auth-body .auth-wrapper .btn-primary-green:hover {
    background-color: var(--auth-primary-hover);
    border-color: var(--auth-primary-hover);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 14px -2px rgba(21, 128, 61, 0.40);
}

body.auth-body .auth-wrapper .btn-primary-green:focus,
body.auth-body .auth-wrapper .btn-primary-green:focus-visible {
    background-color: var(--auth-primary-hover);
    border-color: var(--auth-primary-hover);
    color: #fff;
    box-shadow: 0 0 0 4px var(--auth-primary-ring);
}

body.auth-body .auth-wrapper .btn-primary-green:active {
    background-color: var(--auth-primary-active) !important;
    border-color: var(--auth-primary-active) !important;
    color: #fff !important;
}

body.auth-body .auth-wrapper .btn-outline-green {
    min-height: 46px;
    color: var(--auth-primary-text);
    border: 1px solid var(--auth-border-strong);
    border-radius: 10px;
}

body.auth-body .auth-wrapper .btn-outline-green:hover,
body.auth-body .auth-wrapper .btn-outline-green:focus {
    background-color: var(--auth-primary-soft);
    border-color: var(--auth-primary);
    color: var(--auth-primary-text);
    box-shadow: none;
}

body.auth-body .auth-wrapper .auth-divider span {
    color: var(--auth-muted);
}

body.auth-body .auth-wrapper .auth-divider::before,
body.auth-body .auth-wrapper .auth-divider::after {
    background-color: var(--auth-border);
}

/* Identity chip (step 3) */
body.auth-body .auth-wrapper .identity-chip {
    gap: 0.625rem;
    padding: 0.375rem 0.375rem 0.375rem 0.875rem;
    margin-bottom: 1.25rem;
    background: var(--auth-surface-2);
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    font-size: 0.875rem;
}

body.auth-body .auth-wrapper .identity-chip .id-icon {
    color: var(--auth-primary-text);
}

body.auth-body .auth-wrapper .identity-chip .id-value {
    color: var(--auth-ink);
}

body.auth-body .auth-wrapper .identity-chip .id-edit {
    padding: 0.3rem 0.85rem;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    color: var(--auth-primary-text);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.auth-body .auth-wrapper .identity-chip .id-edit:hover {
    background: var(--auth-primary-soft);
    border-color: var(--auth-primary-soft-2);
}

/* Remember me / forgot password */
body.auth-body .auth-wrapper .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: auto;
    padding-left: 0;
    margin: 0;
}

body.auth-body .auth-wrapper .form-check-input {
    float: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border: 1px solid var(--auth-border-strong);
    border-radius: 4px;
    cursor: pointer;
}

body.auth-body .auth-wrapper .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

body.auth-body .auth-wrapper .form-check-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-ring);
}

body.auth-body .auth-wrapper .form-check-label {
    color: var(--auth-body-text) !important;
    font-size: 0.8125rem !important;
    cursor: pointer;
}

body.auth-body .auth-wrapper .text-primary-green {
    color: var(--auth-primary-text) !important;
    font-size: 0.8125rem !important;
}

body.auth-body .auth-wrapper a.text-primary-green:hover {
    color: var(--auth-primary-active) !important;
    text-decoration: underline !important;
}

/* Footer note */
body.auth-body .auth-wrapper .auth-form-section > p:last-child {
    margin-top: 2rem !important;
    padding-top: 1.25rem;
    border-top: 1px solid var(--auth-border);
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
}

/* Responsive */
@media (max-width: 576px) {
    body.auth-body .auth-wrapper {
        align-items: flex-start;
        padding: 1.25rem 1rem;
    }

    body.auth-body .auth-wrapper .auth-container {
        margin-top: 4vh;
        border-radius: 14px;
    }

    body.auth-body .auth-wrapper .auth-form-section {
        padding: 2rem 1.25rem 1.5rem;
    }

    body.auth-body .auth-wrapper .brand-logo-img {
        max-width: 72px;
    }

    body.auth-body .auth-wrapper .brand-title-green {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-body .auth-wrapper *,
    body.auth-body .auth-wrapper *::before,
    body.auth-body .auth-wrapper *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Premium split layout (desktop) ----------
   The brand panel is the wrapper's ::before, laid out as the first grid cell,
   so no markup changes are needed. The orbs are absolutely positioned and don't take a cell. */
body.auth-body .auth-wrapper .auth-container {
    animation: authCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 992px) {
    body.auth-body .auth-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: stretch;
        justify-content: stretch;
        padding: 1rem;
        background-color: #f8faf9;
        background-image:
            radial-gradient(circle at 100% 0%, rgba(21, 128, 61, 0.07) 0, rgba(21, 128, 61, 0) 40%),
            radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
        background-size: auto, 22px 22px;
    }

    body.auth-body .auth-wrapper::before {
        content: "";
        position: relative;
        z-index: 1;
        min-height: calc(100vh - 2rem);
        border-radius: 24px;
        background-color: #065f46;
        background-image:
            url("../images/logo.png"),
            radial-gradient(circle at 50% 50%, #ffffff 0 118px, rgba(255, 255, 255, 0.14) 119px 146px, rgba(255, 255, 255, 0.06) 147px 182px, transparent 183px),
            radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
            radial-gradient(circle at 15% 10%, rgba(52, 211, 153, 0.45) 0, rgba(52, 211, 153, 0) 45%),
            radial-gradient(circle at 90% 95%, rgba(21, 128, 61, 0.55) 0, rgba(21, 128, 61, 0) 50%),
            linear-gradient(155deg, #047857 0%, #065f46 55%, #064e3b 100%);
        background-repeat: no-repeat, no-repeat, repeat, no-repeat, no-repeat, no-repeat;
        background-position: 50% 50%, 50% 50%, 0 0, 0 0, 0 0, 0 0;
        background-size: 196px 196px, auto, 24px 24px, auto, auto, auto;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 40px -20px rgba(6, 78, 59, 0.45);
    }

    body.auth-body .auth-wrapper > .auth-container {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        max-width: 440px;
        margin: 2rem;
    }

    body.auth-body .auth-wrapper .auth-form-section {
        padding: 2.75rem 2.75rem 2rem;
    }

    /* The brand panel carries the logo on desktop; keep the form header text-only */
    body.auth-body .auth-wrapper .brand-logo-img {
        display: none;
    }

    body.auth-body .auth-wrapper .brand-title-green {
        margin-top: 0;
        font-size: 1.5rem;
    }

    body.auth-body .auth-wrapper .orb {
        opacity: 0.35;
    }

    body.auth-body .auth-wrapper .orb-1 {
        top: -60px;
        left: 30%;
        z-index: 2;
        background: radial-gradient(circle, rgba(134, 239, 172, 0.6) 0%, rgba(134, 239, 172, 0) 70%);
    }

    body.auth-body .auth-wrapper .orb-2 {
        opacity: 0.18;
    }
}

@media (min-width: 1400px) {
    body.auth-body .auth-wrapper::before {
        background-size: 230px 230px, auto, 24px 24px, auto, auto, auto;
        background-image:
            url("../images/logo.png"),
            radial-gradient(circle at 50% 50%, #ffffff 0 138px, rgba(255, 255, 255, 0.14) 139px 170px, rgba(255, 255, 255, 0.06) 171px 212px, transparent 213px),
            radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
            radial-gradient(circle at 15% 10%, rgba(52, 211, 153, 0.45) 0, rgba(52, 211, 153, 0) 45%),
            radial-gradient(circle at 90% 95%, rgba(21, 128, 61, 0.55) 0, rgba(21, 128, 61, 0) 50%),
            linear-gradient(155deg, #047857 0%, #065f46 55%, #064e3b 100%);
    }
}
/***************************** auth wrapper (Login) modern theme END *********************/

/*Field Validation*/

/*.highlight {
    border: 1px solid red !important;
}*/

.error {
    position: relative;
    color: red;
}

.loaderZ {
    position: fixed;
    top: 30%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    z-index: 99;
    border: 0.4em solid;
    border-right: 0.4em solid transparent;
}


#button {
    display: block;
    margin: 20px auto;
    padding: 10px 30px;
    background-color: #eee;
    border: solid #ccc 1px;
    cursor: pointer;
}

/* ---------- Page loader (Views/Shared/_LoaderPartial.cshtml) ----------
   #overlay is shown/hidden by ShowLoader()/HideLoader() via jQuery fadeIn/fadeOut. */
:root {
    --loader-primary: #10b77f;
    --loader-primary-rgb: 16, 183, 127;
    --loader-ink: #0f172a;
    --loader-muted: #64748b;
}

#overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
}

.cv-spinner,
.app-loader {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.app-loader-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 232px;
    padding: 2rem 2.5rem 1.875rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(15, 23, 42, 0.22);
    animation: app-loader-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Indeterminate progress line along the card's bottom edge */
.app-loader-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(var(--loader-primary-rgb), 0), var(--loader-primary), rgba(var(--loader-primary-rgb), 0));
    animation: app-loader-sweep 1.4s ease-in-out infinite;
}

/* Ring: soft track + tapered conic arc, with a breathing brand dot in the centre */
.app-loader-ring {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--loader-primary-rgb), 0.12);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
}

.app-loader-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(var(--loader-primary-rgb), 0) 0deg, rgba(var(--loader-primary-rgb), 0.15) 60deg, var(--loader-primary) 300deg, var(--loader-primary) 360deg);
    animation: app-loader-spin 0.9s linear infinite;
}

/* The ring itself is masked, so the centre dot is drawn on the card instead */
.app-loader-card::before {
    content: "";
    position: absolute;
    top: calc(2rem + 28px - 6px);
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: var(--loader-primary);
    box-shadow: 0 0 0 0 rgba(var(--loader-primary-rgb), 0.45);
    animation: app-loader-breathe 1.6s ease-in-out infinite;
}

.app-loader-title {
    margin: 1.25rem 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--loader-ink);
    letter-spacing: 0.01em;
}

/* Animated ellipsis after "Loading" */
.app-loader-title::after {
    content: "";
    display: inline-block;
    width: 1.1em;
    text-align: left;
    animation: app-loader-dots 1.2s steps(4, end) infinite;
}

.app-loader-subtitle {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--loader-muted);
}

@keyframes app-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes app-loader-pop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes app-loader-sweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(250%);
    }
}

@keyframes app-loader-breathe {
    0%, 100% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(var(--loader-primary-rgb), 0.45);
    }

    50% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(var(--loader-primary-rgb), 0);
    }
}

@keyframes app-loader-dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75%, 100% {
        content: "...";
    }
}

/* Legacy spinner class — kept for inline usages */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(var(--loader-primary-rgb), 0.15);
    border-top-color: var(--loader-primary);
    border-right-color: var(--loader-primary);
    border-radius: 50%;
    animation: app-loader-spin 0.8s linear infinite;
}

/* Bootstrap inline spinners (btnLoaderShow etc.): slimmer, smoother */
.spinner-border {
    --bs-spinner-border-width: 0.16em;
    --bs-spinner-animation-speed: 0.7s;
}

.spinner-border-sm {
    --bs-spinner-border-width: 0.14em;
}

@media (prefers-reduced-motion: reduce) {
    .app-loader-card,
    .app-loader-card::before,
    .app-loader-title::after {
        animation: none;
    }

    .app-loader-title::after {
        content: "...";
    }

    .app-loader-card::after {
        animation-duration: 3s;
    }

    .app-loader-ring::before,
    .spinner {
        animation-duration: 2.4s;
    }

    .spinner-border {
        --bs-spinner-animation-speed: 1.8s;
    }
}

.is-hide {
    display: none;
}

/*img height*/
/*#ClientImage {
    min-height: 23rem !important;
}*/

/*fixed first column*/

.ulList {
    display: flex;
    padding-bottom: 5px;
    list-style: none;
    padding-top: 5px;
}

.list {
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 5px;
    direction: ltr;
    list-style: none;
    border-bottom: 1px solid #cacdd2;
}

/* switcher */

.switch {
    position: relative;
    display: inline-block;
    width: 33px;
    height: 18px;
    margin-left: 10px;
    margin-top: 2px
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 12px;
        left: 1px;
        bottom: 1px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }


.fs20 {
    font-size: 20px !important;
}

input[type=checkbox] {
    position: relative;
    border: 2px solid #dee2e6;
    border-radius: 2px;
    cursor: pointer;
    line-height: 0;
    margin: 0 .6em 0 0;
    outline: 0;
    padding: 0 !important;
    vertical-align: text-top;
    height: 20px;
    width: 20px;
}

/*selet2 dropdown*/
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
}

.select2-container .select2-selection--single {
    height: 34px !important;
    border: 1px solid #dee2e6 !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f7f8f9 !important;
    cursor: no-drop !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

.select2-container {
    width: -webkit-fill-available !important;
}

/*card hover effect*/
.card_hover {
    cursor: pointer;
    transition: .3s transform cubic-bezier(.155,1.105,.295,1.12),.3s;
    z-index: 1;
}

    .card_hover:hover {
        text-decoration: none;
        transform: scale(1.02);
        box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
        z-index: 2;
    }

/***************************** admin dashboard START *********************/
.admin-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.admin-stat-link:hover {
    text-decoration: none;
    color: inherit;
}

.admin-stat-card {
    position: relative;
    isolation: isolate;
    border: none !important;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0 !important;
    background-color: transparent !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.admin-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
}

.admin-stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.admin-stat-link:hover .admin-stat-card {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.admin-stat-card--total::before {
    background: linear-gradient(145deg, #e4c255 0%, rgb(188, 151, 34) 42%, #a8832f 72%, #7a6118 100%);
}

.admin-stat-card--active::before {
    background: linear-gradient(145deg, #3ee0b5 0%, #26bf94 42%, #1a9f7a 72%, #127a5e 100%);
}

.admin-stat-card--closed::before {
    background: linear-gradient(145deg, #7c8cff 0%, #5b6ee1 42%, #4a56c9 72%, #3b449f 100%);
}

.admin-stat-card--expired::before {
    background: linear-gradient(145deg, #ff8a8a 0%, #ef5350 42%, #d93636 72%, #b91c1c 100%);
}

.admin-stat-card .card-body {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.35rem;
}

.admin-stat-card--total .admin-stat-value,
.admin-stat-card--active .admin-stat-value,
.admin-stat-card--closed .admin-stat-value,
.admin-stat-card--expired .admin-stat-value {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.admin-stat-card--total .admin-stat-label,
.admin-stat-card--active .admin-stat-label,
.admin-stat-card--closed .admin-stat-label,
.admin-stat-card--expired .admin-stat-label {
    color: rgba(255, 255, 255, 0.92);
}

.admin-stat-icon--light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-stat-icon,
.admin-user-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.admin-stat-icon.bg-primary-transparent,
.admin-user-stat-icon.bg-primary-transparent {
    background: rgba(188, 151, 34, 0.12);
    color: rgb(188, 151, 34);
}

.admin-stat-icon.bg-success-transparent,
.admin-user-stat-icon.bg-success-transparent {
    background: rgba(38, 191, 148, 0.12);
    color: #26bf94;
}

.admin-stat-icon.bg-warning-transparent,
.admin-user-stat-icon.bg-warning-transparent {
    background: rgba(245, 184, 73, 0.15);
    color: #d4a017;
}

.admin-stat-icon.bg-danger-transparent,
.admin-user-stat-icon.bg-danger-transparent {
    background: rgba(230, 83, 60, 0.12);
    color: #e6533c;
}

.admin-stat-icon.bg-secondary-transparent,
.admin-user-stat-icon.bg-secondary-transparent {
    background: rgba(107, 114, 128, 0.12);
    color: #6b7280;
}

.admin-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.admin-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
}

.admin-panel-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.admin-panel-card .card-header {
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.admin-panel-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.admin-user-stats .col-6:nth-child(1),
.admin-user-stats .col-6:nth-child(2) {
    border-bottom: 1px solid #f0f0f0;
}

.admin-user-stats .col-6:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}

.admin-user-stat-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem;
    height: 100%;
    min-height: 110px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

a.admin-user-stat-item:hover {
    background: #fafafa;
    color: inherit;
}

.admin-chart-area {
    min-height: 280px;
}

.admin-login-chart {
    min-height: 300px;
}

.admin-referral-footer {
    padding: 1rem 1.25rem;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.admin-metric-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.admin-metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

@media (max-width: 575px) {
    .admin-stat-value {
        font-size: 1.15rem;
    }

    .admin-stat-label {
        font-size: 0.75rem;
    }

    .admin-user-stat-item {
        padding: 1rem 0.85rem;
        min-height: 96px;
    }

    .admin-stat-icon,
    .admin-user-stat-icon {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1rem;
    }
}
/***************************** admin dashboard END *********************/

/***************************** user dashboard START *********************/
.user-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.user-stat-link:hover {
    text-decoration: none;
    color: inherit;
}

.user-stat-card {
    border: 1px solid #e9ecef !important;
    border-radius: 12px;
    margin-bottom: 0 !important;
    background: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.user-stat-link:hover .user-stat-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: rgba(188, 151, 34, 0.25) !important;
}

.user-stat-card .card-body {
    padding: 1.1rem 1.2rem;
}

.user-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.user-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.user-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.user-stat-icon--received {
    background: rgba(71, 85, 105, 0.1);
    color: #475569;
}

.user-stat-icon--sent {
    background: rgba(188, 151, 34, 0.12);
    color: rgb(188, 151, 34);
}

.user-stat-icon--likes {
    background: rgba(38, 191, 148, 0.12);
    color: #26bf94;
}

.user-stat-icon--views {
    background: rgba(91, 110, 225, 0.12);
    color: #5b6ee1;
}

.user-stat-icon--favourites {
    background: rgba(239, 83, 80, 0.12);
    color: #ef5350;
}

.user-stat-icon--matching {
    background: rgba(74, 21, 48, 0.1);
    color: #4a1530;
}

.user-mod-card {
    border: none !important;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0 !important;
    background: #fff !important;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 4px 6px rgba(15, 23, 42, 0.02),
        0 16px 40px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.user-mod-cards .user-mod-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(188, 151, 34, 0.12),
        0 8px 16px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 23, 42, 0.1);
}

/* —— Profile card —— */
.user-profile-card {
    display: flex;
    flex-direction: column;
    background: #fff !important;
}

.user-profile-body {
    padding: 1.25rem 1.35rem 1.2rem !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.1rem;
}

.user-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.user-profile-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.user-profile-complete-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.user-profile-complete-link span {
    color: rgb(188, 151, 34);
    font-weight: 700;
}

.user-profile-complete-link:hover {
    color: rgb(188, 151, 34);
    text-decoration: none;
}

.user-profile-complete-link:hover span {
    color: #a8832f;
}

.user-profile-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0.25rem 0 0.35rem;
}

.user-profile-ring-wrap {
    position: relative;
    width: 118px;
    height: 118px;
    margin-bottom: 1rem;
}

.user-profile-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.user-profile-ring-bg,
.user-profile-ring-progress {
    fill: none;
    stroke-width: 5;
}

.user-profile-ring-bg {
    stroke: #f1f5f9;
}

.user-profile-ring-progress {
    stroke: rgb(188, 151, 34);
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.6s ease;
}

.user-profile-avatar {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-profile-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    word-break: break-word;
}

.user-profile-email {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
    word-break: break-word;
}

.user-profile-status {
    display: none;
}

.user-profile-actions {
    margin-top: auto;
    padding-top: 0.15rem;
}

.user-profile-actions .btn-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
}

.user-profile-action-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.user-profile-btn--match {
    width: 100%;
    background: rgba(74, 21, 48, 0.06);
    border: 1px solid rgba(74, 21, 48, 0.14);
    color: #4a1530;
}

.user-profile-btn--match:hover {
    background: rgba(74, 21, 48, 0.1);
    border-color: rgba(74, 21, 48, 0.22);
    color: #4a1530;
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.62rem 1rem;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.user-profile-btn:hover {
    transform: translateY(-1px);
}

.user-profile-btn--ghost {
    background: rgba(188, 151, 34, 0.1);
    border: 1px solid rgba(188, 151, 34, 0.15);
    color: rgb(188, 151, 34);
}

.user-profile-btn--ghost:hover {
    background: rgba(188, 151, 34, 0.16);
    border-color: rgba(188, 151, 34, 0.28);
    color: #a8832f;
}

.user-profile-btn--solid {
    background: rgb(188, 151, 34);
    border: 1px solid rgb(188, 151, 34);
    color: #fff;
    box-shadow: 0 4px 14px rgba(188, 151, 34, 0.28);
}

.user-profile-btn--solid:hover {
    color: #fff;
    background: #a8832f;
    border-color: #a8832f;
    box-shadow: 0 6px 18px rgba(188, 151, 34, 0.35);
}

.user-profile-btn--full {
    flex: 1 1 100%;
}

.user-mod-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.user-mod-btn:hover {
    transform: translateY(-1px);
}

.user-mod-btn--ghost {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.user-mod-btn--ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.user-mod-btn--solid {
    background: linear-gradient(135deg, #4a1530 0%, #6b2848 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(74, 21, 48, 0.25);
}

.user-mod-btn--solid:hover {
    color: #fff;
    background: linear-gradient(135deg, #5a1c3c 0%, #7a3358 100%);
    box-shadow: 0 6px 18px rgba(74, 21, 48, 0.32);
}

.user-mod-btn--full {
    grid-column: 1 / -1;
}

/* —— Package card (light membership style — distinct from profile) —— */
.user-package-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fffdf8 0%, #fff 38%) !important;
    border-top: 3px solid rgb(188, 151, 34) !important;
}

.user-package-body {
    padding: 1.35rem !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-package-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.user-package-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-package-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.user-package-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(38, 191, 148, 0.1);
    color: #127a5e;
    border: 1px solid rgba(38, 191, 148, 0.22);
}

.user-package-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #26bf94;
    box-shadow: 0 0 0 3px rgba(38, 191, 148, 0.2);
    animation: user-package-pulse 2s ease-in-out infinite;
}

@keyframes user-package-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.user-package-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(188, 151, 34, 0.2);
    color: rgb(188, 151, 34);
    font-size: 1.45rem;
    box-shadow: 0 4px 14px rgba(188, 151, 34, 0.12);
    flex-shrink: 0;
}

.user-package-plan-block {
    padding: 1.1rem 1.15rem;
    margin-bottom: 1.15rem;
    background: #fff;
    border: 1px dashed rgba(188, 151, 34, 0.35);
    border-radius: 14px;
}

.user-package-plan-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 0.35rem;
}

.user-package-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.3;
    word-break: break-word;
}

.user-package-details-list {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.user-package-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
}

.user-package-detail-row:last-child {
    border-bottom: none;
}

.user-package-detail-left {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.user-package-detail-left i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
}

.user-package-detail-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    line-height: 1.3;
    word-break: break-word;
}

/* —— Review card —— */
.user-review-card {
    display: flex;
    flex-direction: column;
}

.user-review-visual {
    padding: 1.5rem 1.35rem 0.75rem;
    background: linear-gradient(180deg, #fff9ed 0%, #fff 100%);
    text-align: center;
}

.user-review-stars-preview {
    display: inline-flex;
    gap: 0.35rem;
    font-size: 1.35rem;
    color: rgb(188, 151, 34);
    opacity: 0.35;
}

.user-review-stars-preview i:nth-child(3) {
    opacity: 0.55;
    transform: scale(1.15);
}

.user-review-body {
    padding: 0.75rem 1.35rem 1.35rem !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.user-review-eyebrow {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(188, 151, 34);
    margin-bottom: 0.4rem;
}

.user-review-eyebrow--light {
    color: rgba(255, 255, 255, 0.75);
}

.user-review-heading {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.user-review-text {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 1.15rem;
}

.user-review-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4ad2e 0%, rgb(188, 151, 34) 50%, #a8832f 100%);
    box-shadow: 0 6px 20px rgba(188, 151, 34, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.user-review-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(188, 151, 34, 0.42);
}

.user-review-cta i {
    transition: transform 0.15s ease;
}

.user-review-cta:hover i {
    transform: translateX(3px);
}

.user-review-card--submitted {
    background: #fff !important;
}

.user-review-submitted-top {
    padding: 1.35rem 1.35rem 1rem;
    background: linear-gradient(145deg, #2a0f1e 0%, #4a1530 100%);
    text-align: center;
}

.user-review-body--submitted {
    padding-top: 1.15rem !important;
}

.user-review-quote {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.7;
    margin: 0;
    padding: 1.1rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-style: normal;
}

.user-review-quote::before {
    content: "\201C";
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: rgb(188, 151, 34);
    margin-bottom: 0.25rem;
    font-family: Georgia, "Times New Roman", serif;
    opacity: 0.7;
}

.user-review-stars.star-rating {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 0.35rem;
}

#review-card .star-rating span {
    color: rgba(255, 255, 255, 0.25);
}

#review-card .star-rating .selected {
    color: #e4c255;
}

@media (max-width: 575px) {
    .user-stat-value {
        font-size: 1.1rem;
    }

    .user-stat-label {
        font-size: 0.75rem;
    }

    .user-stat-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }

    .user-profile-ring-wrap {
        width: 108px;
        height: 108px;
    }

    .user-profile-actions .btn-list {
        flex-direction: column;
    }

    .user-profile-btn {
        width: 100%;
    }

    .user-package-plan-name {
        font-size: 1.1rem;
    }

    .user-package-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .user-package-detail-value {
        text-align: left;
        padding-left: 2.35rem;
    }
}
/***************************** user dashboard END *********************/

/*dynamic cards*/
.snip1527 {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    float: left;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    margin: 10px 1%;
    /*max-width: 310px;
    min-width: 250px;*/
    overflow: hidden;
    position: relative;
    text-align: left;
    width: 100%;
    height: 32rem;
}

    .snip1527 * {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-transition: all 0.25s ease;
        transition: all 0.25s ease;
    }

    .snip1527 img {
        max-width: 100%;
        vertical-align: top;
        position: relative;
        height: 340px;
    }

    .snip1527 .image {
        overflow: hidden;
    }

    .snip1527 figcaption {
        padding: 25px 2px 25px;
        position: absolute;
        bottom: 0;
        z-index: 1;
        text-align: center;
        width: 100%;
    }

        .snip1527 figcaption:before {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background: #700877;
            content: '';
            background: -moz-linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
            background: -webkit-linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
            background: linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
            opacity: 0.8;
            z-index: -1;
        }

    .snip1527 .date {
        background-color: #fff;
        border-radius: 50%;
        color: #700877;
        font-size: 18px;
        font-weight: 700;
        min-height: 48px;
        min-width: 48px;
        padding: 10px 0;
        position: absolute;
        right: 15px;
        text-align: center;
        text-transform: uppercase;
        top: -25px;
    }

        .snip1527 .date span {
            display: block;
            line-height: 14px;
        }

        .snip1527 .date .month {
            font-size: 11px;
        }

    .snip1527 h3,
    .snip1527 p {
        margin: 0;
        padding: 0;
    }

    .snip1527 h3 {
        display: inline-block;
        font-weight: 200;
        letter-spacing: -0.4px;
        margin-bottom: 5px;
        color: white;
    }

    .snip1527 p {
        font-size: 0.8em;
        line-height: 1.6em;
        margin-bottom: 0px;
    }

    .snip1527 a {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        position: absolute;
        z-index: 1;
    }

    .snip1527:hover img,
    .snip1527.hover img {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

.border-top-primary {
    border-top: 4px solid #2C2D86 !important;
}

.border-top-danger {
    border-top: 4px solid #af0c2a !important;
}

.btn-primary {
    background-color: #3e0704 !important;
    border-color: #3e0704 !important;
    border-radius: 4px !important;
}

    .btn-primary :hover {
        background: #3e0704;
        border-color: #3e0704;
        color: #fff;
    }

.layoutMain {
    background-color: #f9f9fd !important
}

.nav-item .indicator {
    background: #2C2D86 !important;
}

    .nav-item .indicator:hover {
        background: #2C2D86 !important;
    }

.sidebar-link {
    color: white !important;
}

.iconPrimary {
    color: #6263bc !important;
}

.swal2-confirm {
    background-color: #6263bc !important;
}

.form-control:disabled {
    background-color: #f7f8f9 !important;
    cursor: no-drop !important;
}

.form-control:read-only {
    background-color: #f7f8f9 !important;
    cursor: no-drop !important;
}

.descriptionBox {
    max-height: 470px !important;
    overflow-y: scroll !important;
}

#quill-editor {
    max-height: 20rem !important;
    overflow-y: scroll !important;
}


#notificationContainer {
    max-height: 300px; /* Set the maximum height for the notification container */
    overflow-y: auto; /* Add vertical scroll if the content exceeds the max height */
}

/* scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.product-sale-label {
    color: #fff;
    background: #2C2D86;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 2px 8px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.form-control {
    border-color: #c3c6ca !important;
}

.cursor {
    cursor: pointer
}

.form-control:focus {
    border-color: #3e0704 !important;
}

.img-wh {
    max-width: 300px !important;
    max-height: 300px !important;
}

.ql-container.ql-snow, .ql-toolbar.ql-snow {
    border: 1px solid #c3c6ca !important
}

.border-none {
    border: none !important;
}

.custom-scroll {
    overflow: hidden scroll !important;
    height: auto !important;
}

.page-header-breadcrumb {
    border-bottom: 2px solid #e6e8ec !important;
    padding-bottom: 7px !important;
}

.lobibox-notify-msg {
    max-height: 100% !important;
}

.highlight {
    border: 1px solid red !important;
}

.table.table-bordered.dataTable thead tr:first-child th, table.table-bordered.dataTable thead tr:first-child td {
    background-color: #f3f3f3 !important;
}

.tbody, tr, td {
    padding: .5rem .5rem !important;
}

.custom-card {
    box-shadow: none !important;
    /*border: 1px solid #c3c6ca !important;*/
    border: 1px solid #e1e9e8 !important;
    border-block-end: #dee2e6 !important;
    border-radius: 12px !important;
}

.border-gray {
    border: 1px solid rgb(195 198 202) !important;
}

label:has(+ input:required)::after {
    content: " *";
    color: red;
    font-weight: bold;
}

label:has(+ select:required)::after {
    content: " *";
    color: red;
    font-weight: bold;
}

label:has(+ password:required)::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.text-decoration {
    cursor: pointer;
    text-decoration: underline
}

.nav-tabs {
    border: 1px solid #c3c6ca !important;
}

/* Ensure the selection box has a fixed height and a vertical scrollbar */
.choices__list--multiple {
    max-height: 120px; /* Adjust height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    border: 1px solid #ccc; /* Optional: Adds a border */
    padding-right: 5px; /* Avoids content cutting off */
}

    /* Optional: Style scrollbar for better appearance */
    .choices__list--multiple::-webkit-scrollbar {
        width: 6px;
    }

    .choices__list--multiple::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

        .choices__list--multiple::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }

    .choices__list--multiple .choices__item {
        color: #495057 !important;
        border: 1px solid #bdc6d0 !important;
        background-color: white !important;
    }


/*placeholder loader*/

/* Container styling */
.p-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 10px;
    height: 500px !important
}

    /* Profile image */
    .p-card img {
        width: 100%;
        height: 300px !important;
        object-fit: cover;
    }

    /* Profile details */
    .p-card h4 {
        font-size: 18px;
        font-weight: bold;
        margin: 8px 0;
    }

    .p-card h6 {
        font-size: 14px;
        color: #555;
        margin: 3px 0;
    }

/* Like & View Profile */
.p-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

    .p-card-footer i {
        font-size: 16px;
    }

/* Skeleton Loader */
.loading-placeholder {
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 5px;
}

.p-card-placeholder {
    width: 100%;
    max-width: 100%;
    height: 580px;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

/* Placeholder Image */
.img-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Placeholder Text */
.text-placeholder {
    height: 14px;
    width: 60%;
    margin: 20px auto;
}

    .text-placeholder.small {
        width: 60%;
    }

/* Placeholder Footer (Like & View Profile) */
.footer-placeholder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-top: 15px;
}

.icon-placeholder {
    width: 100%;
    height: 30px;
    border-radius: 3px;
    background: #ddd;
}


/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/***********************print*******************************/

@media print {
    html, body {
        margin: 0 !important;
        /*padding: 0 !important;*/
        height: auto !important;
        overflow: hidden !important;
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    #filterCanvas {
        width: 90% !important;
    }

    #ocProfileDetail {
        width: 90% !important;
    }
}

/* ================== Badge CSS ========================*/

.badge-overlay {
    position: absolute;
    left: 0%;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    -webkit-transition: width 1s ease, height 1s ease;
    -moz-transition: width 1s ease, height 1s ease;
    -o-transition: width 1s ease, height 1s ease;
    transition: width 0.4s ease, height 0.4s ease
}

.custom-badge {
    margin: 0;
    padding: 0;
    color: white;
    padding: 4px 4px;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    line-height: normal;
    text-transform: uppercase;
    background: #dc3545db;
}

    .custom-badge::before, .custom-badge::after {
        content: '';
        position: absolute;
        top: 0;
        margin: 0 -1px;
        width: 100%;
        height: 100%;
        background: inherit;
        min-width: 55px
    }

    .custom-badge::before {
        right: 100%
    }

    .custom-badge::after {
        left: 100%
    }


.top-left {
    position: absolute;
    top: 0;
    left: 0;
    -ms-transform: translateX(-30%) translateY(0%) rotate(-45deg);
    -webkit-transform: translateX(-30%) translateY(0%) rotate(-45deg);
    transform: translateX(-30%) translateY(0%) rotate(-45deg);
    -ms-transform-origin: top right;
    -webkit-transform-origin: top right;
    transform-origin: top right;
}

@media (max-width: 768px) {
    .watermark {
        top: 1000px !important;
        left: 190% !important;
        transform: translate(-50%, -50%) !important;
        width: 500px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    #b-footer {
        height: 50px !important;
    }

    .profile-detail-img {
        height: 200px;
        width: 200px;
    }
}

canvas {
    display: none !important;
}

.force-translate {
    transform: translate(-120px, -120px) !important;
}

@media screen and (max-width: 767px) {
    .profile-card {
        height: 550px !important;
    }

        .profile-card .card-img-top {
            height: 300px !important;
        }
}

.text-transform {
    text-transform: capitalize;
}

.select2-selection__rendered {
    background-color: #97742f2b !important;
}

.select2-selection .select2-selection--multiple .select2-selection__rendered {
    background-color: transparent !important;
}

.badge {
    margin-left: auto;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
}

.p-badge {
    font-size: 8px !important;
    font-weight: 400 !important;
    padding: 4px 8px !important;
}

.modal-footer {
    padding: 16px 24px;
    background-color: #f9fafb;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Matching profile filters modal */
.match-filter-modal {
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 20px 50px rgba(15, 23, 42, 0.16);
}

.match-filter-modal-header {
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
    align-items: flex-start;
}

.match-filter-modal-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.match-filter-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: rgba(188, 151, 34, 0.12);
    color: rgb(188, 151, 34);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.match-filter-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.match-filter-modal-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.45;
}

.match-filter-modal-close {
    margin-top: 0.15rem;
}

.match-filter-modal-body {
    padding: 1.15rem 1.35rem 1.25rem;
    background: #fff;
}

.match-filter-min-match-row {
    margin-bottom: 1rem;
}

.match-filter-min-match-row .recomm-min-match-select {
    max-width: 220px;
}

.match-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.match-filter-toolbar-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.match-filter-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.match-filter-toolbar-divider {
    color: #e2e8f0;
    font-size: 0.75rem;
}

.match-filter-link-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(188, 151, 34);
    transition: color 0.15s ease;
}

.match-filter-link-btn:hover {
    color: #a8832f;
}

.match-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.match-filter-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.match-filter-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.match-filter-option-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fafbfc;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.match-filter-option:hover .match-filter-option-box {
    border-color: rgba(188, 151, 34, 0.28);
    background: #fff;
}

.match-filter-option-input:focus-visible + .match-filter-option-box {
    outline: 2px solid rgba(188, 151, 34, 0.35);
    outline-offset: 2px;
}

.match-filter-option-input:checked + .match-filter-option-box {
    border-color: rgba(188, 151, 34, 0.45);
    background: rgba(188, 151, 34, 0.08);
    box-shadow: 0 4px 14px rgba(188, 151, 34, 0.12);
}

.match-filter-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #eef2f6;
    color: #64748b;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.match-filter-option-input:checked + .match-filter-option-box .match-filter-option-icon {
    background: rgb(188, 151, 34);
    border-color: rgb(188, 151, 34);
    color: #fff;
}

.match-filter-option-label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.match-filter-option-input:checked + .match-filter-option-box .match-filter-option-label {
    color: #0f172a;
}

.match-filter-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    color: transparent;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.match-filter-option-input:checked + .match-filter-option-box .match-filter-option-check {
    background: rgb(188, 151, 34);
    border-color: rgb(188, 151, 34);
    color: #fff;
}

.match-filter-modal-footer {
    padding: 1rem 1.35rem 1.15rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    gap: 0.65rem;
}

.match-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.62rem 1.15rem;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.match-filter-btn:hover {
    transform: translateY(-1px);
}

.match-filter-btn--ghost {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.match-filter-btn--ghost:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.match-filter-btn--primary {
    background: rgb(188, 151, 34);
    border: 1px solid rgb(188, 151, 34);
    color: #fff;
    box-shadow: 0 4px 14px rgba(188, 151, 34, 0.28);
}

.match-filter-btn--primary:hover {
    background: #a8832f;
    border-color: #a8832f;
    color: #fff;
    box-shadow: 0 6px 18px rgba(188, 151, 34, 0.35);
}

@media (max-width: 575px) {
    .match-filter-grid {
        grid-template-columns: 1fr;
    }

    .match-filter-modal-footer {
        flex-direction: column-reverse;
    }

    .match-filter-btn {
        width: 100%;
    }
}

/* Modal backdrop blur */
.modal-backdrop {
    --bs-backdrop-bg: rgba(17, 24, 39, 0.35);
    background-color: var(--bs-backdrop-bg) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(17, 24, 39, 0.35) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.swal2-container.swal2-backdrop-show.swal2-noanimation {
    background: rgba(17, 24, 39, 0.35) !important;
}

.promoted-label {
    position: absolute;
    top: 10px;
    left: 5px;
    background-color: #fdd835;
    color: #004d40;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 20;
}

.match-percent-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    line-height: 1.2;
}

.match-percent-badge--corner {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 25;
}

.match-percent-badge--inline {
    flex-shrink: 0;
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
    box-shadow: none;
}

.match-percent-badge--tag {
    font-size: 0.6875rem;
    padding: 0.35rem 0.65rem;
    box-shadow: none;
}

.profile-id-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 4px;
}

.profile_card .tags .match-percent-badge--tag {
    font-weight: 700;
}

.match-percent-badge--high {
    background: rgba(38, 191, 148, 0.95);
    color: #fff;
}

.match-percent-badge--medium {
    background: rgba(188, 151, 34, 0.95);
    color: #fff;
}

.match-percent-badge--low {
    background: rgba(100, 116, 139, 0.92);
    color: #fff;
}

.recomm-filter-bar {
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    background: #fff !important;
}

.recomm-filter-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    flex-wrap: wrap;
}

.recomm-filter-bar-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.recomm-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.recomm-filter-bar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.recomm-min-match-select {
    width: 168px;
    min-height: 34px;
    border-radius: 8px;
    border-color: #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.recomm-min-match-select:focus {
    border-color: rgba(188, 151, 34, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(188, 151, 34, 0.12);
}

.recomm-filter-divider {
    width: 1px;
    align-self: stretch;
    min-height: 38px;
    background: #eef2f6;
    flex-shrink: 0;
}

.recomm-filter-active-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.recomm-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.recomm-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.recomm-filter-chip i {
    font-size: 0.7rem;
    color: rgb(188, 151, 34);
}

.recomm-filter-chip--score {
    background: rgba(188, 151, 34, 0.08);
    border-color: rgba(188, 151, 34, 0.2);
    color: rgb(188, 151, 34);
}

.recomm-filter-empty {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-style: italic;
}

.recomm-filter-edit-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.recomm-filter-bar-footer {
    padding: 0.55rem 1.1rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.recomm-count-info {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

@media (max-width: 767px) {
    .recomm-filter-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .recomm-filter-bar-main {
        flex-direction: column;
        align-items: stretch;
    }

    .recomm-filter-divider {
        width: 100%;
        height: 1px;
        min-height: 0;
    }

    .recomm-min-match-select {
        width: 100%;
    }

    .recomm-filter-edit-btn {
        width: 100%;
        justify-content: center;
    }

    .recomm-filter-active-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Promotion card css --- */
.promotion-card-v3 {
    display: flex;
    align-items: center;
    max-width: 950px;
    margin: 20px auto;
    padding: 25px 35px 25px 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9f9fb 0%, #ffffff 100%);
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);*/
    position: relative;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    transition: transform 0.3s ease-out;
}

    .promotion-card-v3:hover {
        transform: translateY(-2px);
    }

/* --- Left Icon/Illustration Area --- */
.card-icon-v3 {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    border-radius: 50%; /* Circular container */
    /* A bright, modern accent color */
    background: linear-gradient(45deg, #4f7df5, #2e86de);
    box-shadow: 0 4px 15px rgba(46, 134, 222, 0.4);
}

.p-icon-placeholder {
    font-size: 30px;
    color: white;
    line-height: 1;
}

/* --- Middle Text Content --- */
.card-text-v3 {
    flex-grow: 1;
    margin-right: 30px;
}

.card-label-v3 {
    /* High contrast, slightly muted label */
    font-size: 13px;
    color: #6c757d;
    letter-spacing: 1px;
    margin: 0 0 2px 0;
    font-weight: 600;
}

.card-title-v3 {
    /* Primary Headline */
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
}

/* --- Right Controls and Button --- */
.card-controls-v3 {
    flex-shrink: 0;
}

.cta-button-v3 {
    /* Primary CTA Button - Clean and defined */
    background: #14a800; /* Primary Success Green */
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(20, 168, 0, 0.3); /* Button shadow for lift */
    white-space: nowrap;
}

    .cta-button-v3:hover {
        background-color: #0d8300;
        box-shadow: 0 6px 12px rgba(20, 168, 0, 0.4);
    }

.arrow-icon-v3 {
    margin-left: 10px;
    font-size: 14px;
    font-weight: bold;
}

.close-icon-v3 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #a0aec0; /* Soft gray */
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

    .close-icon-v3:hover {
        color: #4a5568;
    }

/* --- Responsive Adjustments --- */
@media (max-width: 700px) {
    .promotion-card-v3 {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .card-icon-v3 {
        margin: 0 0 15px 0;
    }

    .card-text-v3 {
        margin: 0 0 20px 0;
    }

    .card-title-v3 {
        font-size: 18px;
    }

    .cta-button-v3 {
        width: 100%;
        justify-content: center;
    }

    .close-icon-v3 {
        top: 10px;
        right: 10px;
    }
}

.radius-20 {
    border-radius: 12px !important;
}

.select2-results__option--selectable {
    background-color: transparent !important;
}

.form-select {
    height: 2.37rem !important;
    /*border-radius: .5rem !important;*/
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Animation Trigger */
    animation: pulse-green 2s infinite;
}

    .whatsapp-float:hover {
        background-color: #128c7e;
        transform: scale(1.1);
    }

    .whatsapp-float img {
        width: 35px;
        height: 35px;
    }

/* The Animation Logic */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 767px) {
    .profile-comp-nav {
        display: flex !important;
        flex-direction: row !important; /* Forces horizontal */
        flex-nowrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
        padding: 10px 5px;
        gap: 10px;
        white-space: nowrap; /* Prevents text from wrapping to second line */
    }

        /* Hide scrollbar for Chrome, Safari and Opera */
        .profile-comp-nav::-webkit-scrollbar {
            display: none;
        }

        .profile-comp-nav .nav-item {
            flex: 0 0 auto; /* Prevents items from shrinking */
        }

        .profile-comp-nav .nav-link {
            display: flex;
            flex-direction: column; /* Icon above text */
            align-items: center;
            justify-content: center;
            min-width: 100px;
            text-align: center;
            font-size: 12px;
        }

            /* Circular Icon background */
            .profile-comp-nav .nav-link i {
                width: 45px;
                height: 45px;
                background-color: #f1f5f9;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 8px; /* Space between icon and text */
                margin-right: 0; /* Reset previous margin */
            }

}

@media (max-width: 767px) {
    .nav-scroll-container {
        position: relative;
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 10px;
        padding: 0 10px;
    }

    .scroll-snap-nav {
        scrollbar-width: none;
        scroll-behavior: smooth; /* Makes the button click look nice */
    }

    /* Scroll Button Styling */
    .scroll-btn {
        position: absolute;
        z-index: 10;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

        .scroll-btn.left {
            left: -5px;
        }

        .scroll-btn.right {
            right: -5px;
        }

    /* Circular Icons and Labels from previous step */
    .scroll-snap-nav .nav-item {
        flex: 0 0 45% !important;
    }
}

/* Hide buttons on desktop */
@media (min-width: 768px) {
    .scroll-btn {
        display: none;
    }
}


/* PROFILE CARD UI */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--default-body-bg-color, #f0f1f7);
}

.profile_card {
    background: #ffffff;
    border-radius: 20px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    padding: 20px 20px 16px;
    /*width: 340px;*/
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin-block-end: 1rem;
    /*margin-left: 1rem;*/
    position: relative;
}

/* Header */
.profile-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.profile_avatar {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #e8e6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .profile_avatar svg {
        width: 40px;
        height: 40px;
    }

.profile-card-info {
    flex: 1;
    min-width: 0;
}

.badge-id {
    display: inline-block;
    background: #F9F0D6;
    color: #854F0B;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 20px;
    border: 0.5px solid #FAC775;
    margin-bottom: 4px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.name {
    font-weight: 500;
    font-size: 15px;
    color: #1a1a1a;
}

.verified-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

    .meta-row span {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .meta-row i {
        font-size: 12px;
    }

/* Tags */
.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    color: #666;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 0.5px solid rgba(0,0,0,0.08);
}

    .tag i {
        font-size: 11px;
    }

/* Action buttons row */
.action-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 0;
    border-radius: 10px;
    background: #ffffff;
    border: 0.5px solid rgba(0,0,0,0.15);
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

    .action-btn i {
        font-size: 16px;
    }

.count-badge {
    font-size: 12px;
    background: #f0f0f0;
    color: #555;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

/* Like active state */
.action-btn.liked {
    background: #FAEEDA;
    border-color: #FAC775;
    color: #854F0B;
}

    .action-btn.liked i {
        color: #EF9F27;
    }

    .action-btn.liked .count-badge {
        background: #FAC775;
        color: #633806;
    }

/* View active state */
.action-btn.viewed {
    background: #E1F5EE;
    border-color: #5DCAA5;
    color: #0F6E56;
}

    .action-btn.viewed .count-badge {
        background: #9FE1CB;
        color: #085041;
    }

/* Vlaye button */
.vlaye-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border-radius: 10px;
    background: #8A6E1E;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    background: #FAEEDA !important;
    border: 1px solid #FAC775 !important;
    color: #854F0B !important;
}

    .vlaye-btn:hover {
        background: #7a6019;
    }

    .vlaye-btn svg {
        font-size: 14px;
    }

/* ── Three-dot menu ── */
.menu-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
}

.dots-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

    .dots-btn:hover {
        background: #f0f0f0;
        color: #555;
    }

    .dots-btn i {
        font-size: 18px;
    }

.profile-dropdown {
    display: none;
    position: absolute;
    top: 34px;
    right: 0;
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    min-width: 168px;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

    .profile-dropdown.open {
        display: block;
    }

.profile-dropdown-divider {
    height: 0.5px;
    background: rgba(0,0,0,0.07);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.12s;
}

    .profile-dropdown-item:hover {
        background: #f5f5f5;
    }

    .profile-dropdown-item i {
        font-size: 15px;
        color: #888;
    }

    .profile-dropdown-item.danger {
        color: #c0392b;
    }

        .profile-dropdown-item.danger i {
            color: #c0392b;
        }

.placeholder-card {
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    min-height: 250px;
}

.loading-placeholder {
    position: relative;
    overflow: hidden;
    background: #e9e9e9;
    border-radius: 12px;
}

    .loading-placeholder::after {
        content: "";
        position: absolute;
        top: 0;
        left: -150px;
        width: 150px;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,0.7), transparent );
        animation: shimmer 1.2s infinite;
    }

/*@keyframes shimmer {
    100% {
        left: 100%;
    }
}*/

/* image */
.profile-img-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

/* badge */
.badge-placeholder {
    width: 85px;
    height: 28px;
    border-radius: 30px;
}

/* name */
.name-placeholder {
    width: 140px;
    height: 22px;
    border-radius: 8px;
}

/* small text */
.small-line-placeholder {
    width: 70px;
    height: 14px;
    border-radius: 8px;
}

/* dots */
.dots-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* tags */
.tag-placeholder {
    width: 90px;
    height: 34px;
    border-radius: 30px;
}

/* action buttons */
.action-btn-placeholder {
    flex: 1;
    height: 48px;
    border-radius: 14px;
}


/*Proile Detail CSS*/
.profile-detail-wrapper {
    background: #f6f8fc;
    min-height: 100%;
    color: #1f2937;
}

.profile-detail-modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    padding: 22px 28px;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .profile-detail-modal-header h4 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
    }

.profile-detail-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 22px;
}

.profile-detail-content {
    padding: 24px 28px 36px;
}

.profile-detail-hero,
.profile-detail-section {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.profile-detail-hero {
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-detail-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f1f5f9;
}

.profile-ref-badge {
    display: inline-block;
    background: #fff4df;
    color: #d18400;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .profile-name-row h3 {
        margin: 0;
        font-size: 30px;
        font-weight: 800;
    }

.profile-status-badge {
    background: #d9f8ea;
    color: #0f9f6e;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 999px;
    text-transform: uppercase;
}

.profile-meta-row {
    display: flex;
    gap: 24px;
    margin: 12px 0 18px;
    color: #5f6b7a;
}

    .profile-meta-row span,
    .profile-chip-row span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

.profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .profile-chip-row span {
        border: 1px solid #e5eaf1;
        background: #fff;
        border-radius: 999px;
        padding: 10px 18px;
        font-size: 14px;
        color: #374151;
    }

.profile-stats-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.profile-stat-card {
    height: 76px;
    border-radius: 16px;
    border: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

    .profile-stat-card.like {
        background: #fff8f8;
        color: #ef4444;
    }

    .profile-stat-card.view {
        background: #f8fbff;
        color: #3b82f6;
    }

    .profile-stat-card i {
        font-size: 34px;
    }

    .profile-stat-card span {
        display: block;
        font-size: 13px;
        color: #6b7280;
    }

    .profile-stat-card strong {
        font-size: 24px;
        color: #111827;
    }

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.profile-detail-section {
    padding: 18px;
}

.profile-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .profile-section-heading h5 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
    }

.profile-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .profile-section-icon.purple {
        background: #8b5cf6;
    }

    .profile-section-icon.blue {
        background: #3b82f6;
    }

    .profile-section-icon.orange {
        background: #fb923c;
    }

    .profile-section-icon.green {
        background: #22c55e;
    }

    .profile-section-icon.pink {
        background: #ec4899;
    }

.profile-detail-list {
    border: 1px solid #edf0f4;
    border-radius: 14px;
    overflow: hidden;
}

.profile-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f4;
    align-items: center;
}

    .profile-detail-item:last-child {
        border-bottom: 0;
    }

.profile-detail-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    color: #111827;
    font-size: 14px;
}

    .profile-detail-label i {
        color: #7b8797;
    }

.profile-detail-value {
    color: #64748b;
    font-size: 14px;
    word-break: break-word;
}

.profile-remarks-box {
    min-height: 160px;
    border-radius: 18px;
    background: linear-gradient(135deg, #faf5ff, #f8fafc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7c8a9a;
    text-align: center;
    padding: 24px;
}

    .profile-remarks-box i {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #f1e8ff;
        color: #8b5cf6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    .profile-remarks-box p {
        margin: 12px 0 0;
    }

@media (max-width: 992px) {
    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-detail-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-detail-avatar {
        margin: auto;
    }

    .profile-name-row,
    .profile-meta-row,
    .profile-chip-row {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .profile-detail-content {
        padding: 16px;
    }

    .profile-detail-hero {
        padding: 20px;
    }

    .profile-detail-avatar img {
        width: 110px;
        height: 110px;
    }

    .profile-stats-row {
        grid-template-columns: 1fr;
    }

    .profile-detail-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.profile-action-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 6px;
}

.profile-action-btn {
    height: 82px;
    border-radius: 18px;
    border: 1px solid #e9edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    background: #fff;
}

    .profile-action-btn i {
        font-size: 34px;
    }

    .profile-action-btn span {
        display: block;
        font-size: 13px;
        color: #6b7280;
    }

    .profile-action-btn strong {
        display: block;
        font-size: 18px;
        color: #111827;
        margin-top: 2px;
    }

    .profile-action-btn.request {
        background: linear-gradient(135deg, #fff7f7, #fff);
        border-color: #ffd9d9;
        color: #ef4444;
    }

    .profile-action-btn.chat {
        background: linear-gradient(135deg, #f4f9ff, #fff);
        border-color: #dbeafe;
        color: #3b82f6;
    }

    .profile-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }

@media (max-width: 576px) {
    .profile-action-row {
        grid-template-columns: 1fr;
    }
}

.profile_card.selected {
    border: 0.5px solid #FAC775;
}

/***************************** admin layout modern theme START *********************/
/* custom.css loads before styles.min.css, so every rule here is prefixed with
   html[data-nav-layout] (or html[data-*-styles]) to win on specificity over the template. */

/* Theme tokens: primary #10b77f + neutral slate palette.
   Note: the template's original --primary-rgb carried a stray ", 1" which made every
   rgba(var(--primary-rgb), x) tint invalid; this value restores those tints. */
html[data-nav-layout] {
    --primary-rgb: 16, 183, 127;
    --body-bg-rgb: 245, 247, 250;
    --default-text-color: #1e293b;
    --default-border: #e5e7eb;
    --bootstrap-card-border: #e5e7eb;
    --list-hover-focus-bg: #f1f5f9;
    --text-muted: #64748b;
    --input-border: #d1d5db;
    --layout-primary-text: #0a7d57;
    --layout-primary-soft: rgba(16, 183, 127, 0.1);
    --layout-ink: #0f172a;
    --layout-muted: #64748b;
    --layout-subtle: #94a3b8;
    --layout-hover-bg: #f1f5f9;
    --layout-border: #e5e7eb;
}

html[data-menu-styles=light] {
    --menu-bg: #ffffff;
    --menu-prime-color: #475569;
    --menu-border-color: #e5e7eb;
}

html[data-header-styles=light] {
    --header-bg: #ffffff;
    --header-prime-color: #475569;
    --header-border-color: #e5e7eb;
}

html[data-nav-layout] body {
    background-color: rgb(var(--body-bg-rgb));
    color: var(--default-text-color);
}

/* ---------- Sidebar ---------- */
html[data-nav-layout] .app-sidebar {
    font-family: var(--default-font-family);
    background: var(--menu-bg);
    border-inline-end: 1px solid var(--menu-border-color);
    box-shadow: none;
}

html[data-nav-layout] .app-sidebar .main-sidebar-header {
    background: var(--menu-bg);
    border-block-end: 1px solid var(--menu-border-color);
}

html[data-nav-layout] .app-sidebar .main-sidebar {
    padding-block-start: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

html[data-nav-layout] .app-sidebar .main-sidebar::-webkit-scrollbar {
    width: 6px;
}

html[data-nav-layout] .app-sidebar .main-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

html[data-nav-layout] .app-sidebar .slide__category {
    padding: 1.1rem 1.5rem 0.4rem;
    color: var(--layout-subtle);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    opacity: 1;
}

html[data-nav-layout] .app-sidebar .slide {
    padding: 0 0.75rem;
}

html[data-nav-layout] .app-sidebar .side-menu__item {
    margin-block: 2px;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: var(--menu-prime-color);
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

html[data-nav-layout] .app-sidebar .side-menu__label {
    font-size: 0.875rem;
    color: inherit;
    line-height: 1.25;
}

html[data-nav-layout] .app-sidebar .side-menu__icon {
    margin-inline-end: 0.75rem;
    color: #64748b;
    fill: #64748b;
    transition: color 0.15s ease;
}

html[data-nav-layout] .app-sidebar .side-menu__angle {
    color: var(--layout-subtle);
    transition: transform 0.2s ease, color 0.15s ease;
}

/* Hover */
html[data-nav-layout] .app-sidebar .side-menu__item:hover {
    background-color: var(--layout-hover-bg);
    color: var(--layout-ink);
}

html[data-nav-layout] .app-sidebar .side-menu__item:hover .side-menu__label,
html[data-nav-layout] .app-sidebar .side-menu__item:hover .side-menu__angle {
    color: var(--layout-ink);
}

html[data-nav-layout] .app-sidebar .side-menu__item:hover .side-menu__icon {
    color: var(--primary-color);
    fill: var(--primary-color);
}

/* Keyboard focus */
html[data-nav-layout] .app-sidebar .side-menu__item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 183, 127, 0.25);
}

/* Active top-level item */
html[data-nav-layout] .app-sidebar .side-menu__item.active {
    background-color: var(--layout-primary-soft);
    color: var(--layout-primary-text);
    font-weight: 600;
}

html[data-nav-layout] .app-sidebar .side-menu__item.active .side-menu__label,
html[data-nav-layout] .app-sidebar .side-menu__item.active .side-menu__angle,
html[data-nav-layout] .app-sidebar .side-menu__item.active .side-menu__icon {
    color: var(--layout-primary-text);
    fill: var(--layout-primary-text);
}

/* Open parent of an active sub-item: keep it calm, only tint the text */
html[data-nav-layout] .app-sidebar .slide.has-sub.open > .side-menu__item:not(.active) .side-menu__label,
html[data-nav-layout] .app-sidebar .slide.has-sub.open > .side-menu__item:not(.active) .side-menu__icon {
    color: var(--layout-ink);
}

/* Sub-menu items */
html[data-nav-layout] .app-sidebar .slide-menu.child1,
html[data-nav-layout] .app-sidebar .slide-menu.child2 {
    margin-block: 2px 4px;
}

html[data-nav-layout] .app-sidebar .slide-menu.child1 li,
html[data-nav-layout] .app-sidebar .slide-menu.child2 li,
html[data-nav-layout] .app-sidebar .slide-menu.child3 li {
    padding-inline-start: 1.25rem;
}

html[data-nav-layout] .app-sidebar .slide-menu.child1 .side-menu__item,
html[data-nav-layout] .app-sidebar .slide-menu.child2 .side-menu__item,
html[data-nav-layout] .app-sidebar .slide-menu.child3 .side-menu__item {
    margin-block: 1px;
    padding: 0.5rem 0.75rem 0.5rem 1.6rem;
    color: var(--layout-muted);
    font-weight: 500;
}

html[data-nav-layout] .app-sidebar .slide-menu.child1 .side-menu__item:before,
html[data-nav-layout] .app-sidebar .slide-menu.child2 .side-menu__item:before,
html[data-nav-layout] .app-sidebar .slide-menu.child3 .side-menu__item:before {
    inset-inline-start: 0.7rem;
    width: 0.375rem;
    height: 0.375rem;
    border: 0;
    background-color: #cbd5e1;
    opacity: 1;
}

html[data-nav-layout] .app-sidebar .slide-menu.child1 .side-menu__item:hover,
html[data-nav-layout] .app-sidebar .slide-menu.child2 .side-menu__item:hover,
html[data-nav-layout] .app-sidebar .slide-menu.child3 .side-menu__item:hover {
    background-color: var(--layout-hover-bg);
    color: var(--layout-ink);
}

html[data-nav-layout] .app-sidebar .slide-menu.child1 .side-menu__item:hover:before,
html[data-nav-layout] .app-sidebar .slide-menu.child2 .side-menu__item:hover:before,
html[data-nav-layout] .app-sidebar .slide-menu.child3 .side-menu__item:hover:before {
    border: 0;
    background-color: var(--layout-subtle);
}

html[data-nav-layout] .app-sidebar .slide-menu.child1 .side-menu__item.active,
html[data-nav-layout] .app-sidebar .slide-menu.child2 .side-menu__item.active,
html[data-nav-layout] .app-sidebar .slide-menu.child3 .side-menu__item.active {
    background-color: transparent;
    color: var(--layout-primary-text);
    font-weight: 600;
}

html[data-nav-layout] .app-sidebar .slide-menu.child1 .side-menu__item.active:before,
html[data-nav-layout] .app-sidebar .slide-menu.child2 .side-menu__item.active:before,
html[data-nav-layout] .app-sidebar .slide-menu.child3 .side-menu__item.active:before {
    border: 0;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 183, 127, 0.18);
}

html[data-nav-layout] .app-sidebar .slide-menu .side-menu__label {
    font-size: 0.8125rem;
}

/* ---------- Header ---------- */
html[data-nav-layout] .app-header {
    background: var(--header-bg);
    border-block-end: 1px solid var(--header-border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-nav-layout] .main-header-container {
    padding-inline: 1rem;
}

html[data-nav-layout] .main-header-container .header-content-right {
    gap: 0.25rem;
}

html[data-nav-layout] .main-header-container .header-link {
    padding: 0.75rem 0.5rem;
}

html[data-nav-layout] .main-header-container .header-link-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 1.25rem;
    color: var(--header-prime-color);
    transition: background-color 0.15s ease, color 0.15s ease;
}

html[data-nav-layout] .main-header-container .header-link-icon:hover,
html[data-nav-layout] .main-header-container .header-link:hover .header-link-icon,
html[data-nav-layout] .main-header-container .header-link.show .header-link-icon {
    background-color: var(--layout-primary-soft);
    color: var(--layout-primary-text);
    fill: var(--layout-primary-text);
}

html[data-nav-layout] .main-header-container .header-icon-badge {
    inset-block-start: 0.6rem;
    inset-inline-end: 0.3rem;
    min-width: 1.1rem;
    border: 2px solid #fff;
    font-weight: 600;
}

/* Hamburger toggle */
html[data-nav-layout] .app-header .animated-arrow span,
html[data-nav-layout] .app-header .animated-arrow span:before,
html[data-nav-layout] .app-header .animated-arrow span:after {
    border-radius: 2px;
    background: var(--header-prime-color);
}

html[data-nav-layout] .app-header .animated-arrow:hover span,
html[data-nav-layout] .app-header .animated-arrow:hover span:before,
html[data-nav-layout] .app-header .animated-arrow:hover span:after {
    background: var(--primary-color);
}

/* Profile trigger */
html[data-nav-layout] .app-header #mainHeaderProfile {
    margin-inline-start: 0.25rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    align-self: center;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

html[data-nav-layout] .app-header #mainHeaderProfile:hover,
html[data-nav-layout] .app-header #mainHeaderProfile.show {
    background-color: var(--layout-hover-bg);
    border-color: var(--layout-border);
}

html[data-nav-layout] .app-header #header-user-img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(16, 183, 127, 0.45);
}

html[data-nav-layout] .app-header #LoggedInName {
    color: var(--layout-ink);
    font-size: 0.8125rem;
    line-height: 1.2 !important;
}

html[data-nav-layout] .app-header #Role {
    margin-top: 2px;
    color: var(--layout-muted);
    opacity: 1;
}

/* Header dropdowns */
html[data-nav-layout] .app-header .main-header-dropdown {
    margin-top: 0.25rem !important;
    padding-block: 0.375rem;
    border: 1px solid var(--layout-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
}

html[data-nav-layout] .app-header .header-profile-dropdown {
    min-width: 13rem;
    padding-top: 0.375rem !important;
}

html[data-nav-layout] .app-header .main-header-dropdown .dropdown-item {
    margin: 0 0.375rem;
    width: auto;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 500;
    align-items: center;
}

html[data-nav-layout] .app-header .main-header-dropdown .dropdown-item:hover,
html[data-nav-layout] .app-header .main-header-dropdown .dropdown-item:focus {
    background-color: var(--layout-primary-soft);
    color: var(--layout-primary-text);
}

html[data-nav-layout] .app-header .header-profile-dropdown form .dropdown-item {
    width: calc(100% - 0.75rem);
}

/* ---------- Content area & page header ---------- */
html[data-nav-layout] .main-content {
    padding-inline: 0.75rem;
}

@media (min-width: 992px) {
    html[data-nav-layout] .main-content {
        padding-inline: 1.5rem;
        padding-block-end: 1.5rem;
    }
}

html[data-nav-layout] .page-header-breadcrumb {
    margin-block: 1.5rem 1.25rem !important;
    gap: 0.5rem;
}

html[data-nav-layout] .page-header-breadcrumb .page-title {
    color: var(--layout-ink);
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

html[data-nav-layout] .page-header-breadcrumb .breadcrumb {
    font-size: 0.8125rem;
}

html[data-nav-layout] .page-header-breadcrumb .breadcrumb .breadcrumb-item,
html[data-nav-layout] .page-header-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--layout-muted);
    text-decoration: none;
}

html[data-nav-layout] .page-header-breadcrumb .breadcrumb .breadcrumb-item a[href]:hover {
    color: var(--layout-primary-text);
}

html[data-nav-layout] .page-header-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: var(--layout-primary-text);
    font-weight: 600;
}

html[data-nav-layout] .page-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}

/* ---------- Footer ---------- */
html[data-nav-layout] .footer {
    background-color: #ffffff !important;
    border-top: 1px solid var(--layout-border);
    box-shadow: none;
    font-size: 0.8125rem;
}

html[data-nav-layout] .footer .text-muted {
    color: var(--layout-muted) !important;
}

html[data-nav-layout] .footer .text-dark {
    color: var(--layout-ink) !important;
}

html[data-nav-layout] .footer .text-primary {
    color: var(--layout-primary-text) !important;
}

/* ---------- Scroll to top ---------- */
html[data-nav-layout] .scrollToTop {
    border-radius: 10px;
    background-color: var(--primary-color);
    box-shadow: 0 6px 16px -4px rgba(16, 183, 127, 0.5);
}

html[data-nav-layout] .scrollToTop .arrow {
    color: #fff;
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 991.98px) {
    html[data-nav-layout] .main-header-container {
        padding-inline: 0.5rem;
    }

    html[data-nav-layout] .app-sidebar {
        box-shadow: 0 0 40px rgba(15, 23, 42, 0.18);
    }

    html[data-nav-layout] .app-header #mainHeaderProfile {
        padding: 0.25rem;
    }

    html[data-nav-layout] .page-header-breadcrumb {
        margin-block: 1rem !important;
    }

    html[data-nav-layout] .page-header-breadcrumb .page-title {
        margin-bottom: 0.25rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-nav-layout] .app-sidebar *,
    html[data-nav-layout] .app-header * {
        transition: none !important;
    }
}
/***************************** admin layout modern theme END *********************/
