/* Variables as CSS Custom Properties */
:root {
    --primary-color: #01b88c;
    --primary-light: #ebf9f6;
    --primary-dark: #0F6645;
    --primary-outline: #8cdfc34f;
    --secondary-color-dark: #24262e;
    --secondary-color: #3e4250;
    --secondary-light: #4a4f54;
    --secondary-dark: #0d0e10;
    --white: #ffffff;
    --gray-light: #dadce3;
    --gray: #c6c8d2;
    --gray-border: #d9d9d9;
    --gray-text: #808080;
    --gray-100: #fafafa;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #e9e9e9;
    --text-color: #181818;
    --text-muted: #212529bf;
    --error: #d32f2f;
    --border-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    --box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em;

    /* Bootstrap CSS variable overrides */
    --bs-primary: #01b88c;
    --bs-primary-rgb: 1, 184, 140;
    --bs-primary-text-emphasis: #0F6645;
    --bs-primary-bg-subtle: #ebf9f6;
    --bs-link-color: #01b88c;
    --bs-link-color-rgb: 1, 184, 140;
    --bs-link-hover-color: #0F6645;
    --bs-link-hover-color-rgb: 15, 102, 69;
    --bs-nav-pills-link-active-bg: #01b88c;
    --bs-pagination-active-bg: #01b88c;
    --bs-pagination-active-border-color: #01b88c;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Split Layout Wrapper */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

@media screen and (max-width: 991px) {
    .auth-wrapper {
        flex-direction: column;
    }
}

/* Left Side - Promotional Section */
.auth-promo {
    position: relative;
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(180deg, #01b88c 0%, #0F6645 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

    .auth-promo::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/image/pattern/bg-pattern.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.15;
        z-index: 1;
        pointer-events: none;
        animation: waveBackground 20s ease-in-out infinite;
    }

@keyframes waveBackground {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    25% {
        transform: translateY(-10px) scale(1.02);
        filter: brightness(1.05);
    }

    50% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    75% {
        transform: translateY(10px) scale(0.98);
        filter: brightness(0.95);
    }
}

@media screen and (max-width: 991px) {
    .auth-promo {
        display: none;
    }
}

.promo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

    .promo-background .bg-pattern {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.85;
        z-index: 1;
        pointer-events: none;
        mix-blend-mode: lighten;
        animation: waveAnimation 20s ease-in-out infinite;
    }

@keyframes waveAnimation {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    25% {
        transform: translateY(-10px) scale(1.02);
        filter: brightness(1.05);
    }

    50% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    75% {
        transform: translateY(10px) scale(0.98);
        filter: brightness(0.95);
    }
}

.promo-background .shape {
    position: absolute;
    z-index: 2;
    filter: brightness(1.1);
}

.promo-background .shape-01 {
    top: 0%;
    left: 0%;
    width: 120px;
    height: auto;
    opacity: 1;
    filter: brightness(1.2);
}

.promo-background .shape-03 {
    top: 0%;
    right: 5%;
    width: 80px;
    height: auto;
    opacity: 1;
    filter: brightness(1.2);
}

.promo-background .shape-04 {
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: auto;
    opacity: 0.8;
}

.promo-background .shape-06 {
    bottom: 0%;
    right: 0%;
    width: 150px;
    height: auto;
    opacity: 0.9;
}

.promo-background .shape-07 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: auto;
    opacity: 0.9;
}

.featured-cards {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    flex: 1;
}

.featured-cards-image {
    max-width: 70%;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 991px) {
    .featured-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 0;
    }
}

@media screen and (max-width: 575px) {
    .featured-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 280px;
}

    .featured-card:hover {
        transform: rotate(0deg) scale(1.05);
    }

    .featured-card.card-1 {
        transform: rotate(-5deg);
    }

    .featured-card.card-2 {
        transform: rotate(3deg);
    }

    .featured-card.card-3 {
        transform: rotate(-4deg);
    }

    .featured-card.card-4 {
        transform: rotate(2deg);
    }

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 4;
}

    .featured-badge i {
        font-size: 10px;
    }

.card-image {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.card-content {
    padding: 0;
}

    .card-content h3 {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 10px;
    }

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--gray-text);
    margin-bottom: 10px;
}

    .card-meta .location,
    .card-meta .rating {
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .card-meta .location i {
            font-size: 10px;
            color: var(--gray-text);
        }

        .card-meta .rating i {
            font-size: 10px;
            color: #ffc107;
        }

.card-description {
    font-size: 11px;
    color: var(--gray-text);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-300);
}

    .card-footer .delivery {
        font-size: 11px;
        color: var(--gray-text);
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .card-footer .delivery i {
            font-size: 10px;
            color: var(--gray-text);
        }

    .card-footer .price {
        font-size: 16px;
        font-weight: 600;
        color: var(--primary-color);
    }

.promo-footer {
    position: relative;
    z-index: 3;
    margin-top: auto;
}

.promo-url {
    color: var(--white);
    font-size: 14px;
    opacity: 0.9;
    text-decoration: none;
}

    .promo-url:hover {
        opacity: 1;
        text-decoration: underline;
    }

/* Authentication Styles */
.auth_content {
    display: flex;
    flex-direction: column;
    padding: 40px;
    min-height: 100vh;
    width: 50%;
    background: var(--white);
}

@media screen and (max-width: 991px) {
    .auth_content {
        width: 100%;
        padding: 30px;
    }
}

@media screen and (max-width: 575px) {
    .auth_content {
        padding: 20px;
    }
}

@media screen and (max-width: 991px) {
    .auth_content {
        padding: 30px;
    }
}

@media screen and (max-width: 575px) {
    .auth_content {
        padding: 20px;
    }
}

.auth_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

@media screen and (max-width: 575px) {
    .auth_header {
        flex-direction: column;
        gap: 15px;
    }
}

.auth_content-block {
    min-height: calc(100vh - 144px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth_content-title {
    margin-bottom: 30px;
}

    .auth_content-title span {
        font-size: 18px;
        display: block;
        margin-bottom: 10px;
    }

    .auth_content-title h2 {
        font-size: 28px;
        font-weight: 500;
        margin: 0;
        color: var(--text-color);
    }

.logo {
    display: flex;
    align-self: center;
}

    .logo img {
        align-self: center;
        object-fit: contain;
        cursor: pointer;
        height: 28px;
        width: 130px;
    }

@media screen and (max-width: 1240px) {
    .logo img {
        width: 110px;
    }
}

@media screen and (max-width: 575px) {
    .logo img {
        width: 90px;
    }
}

.max-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Field Styles (Material Design-like) */
.mat-form-field {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
}

    .mat-form-field .mat-label {
        display: block;
        font-size: 14px;
        color: var(--secondary-color-dark);
        margin-bottom: 8px;
        font-weight: 500;
    }

    .mat-form-field .mat-input {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        border: 1px solid var(--gray-border);
        border-radius: 4px;
        background-color: var(--white);
        color: var(--text-color);
        font-family: "Poppins", sans-serif;
        transition: border-color 0.3s ease;
    }

        .mat-form-field .mat-input:focus {
            outline: none;
            border-color: var(--primary-color);
            border-width: 2px;
        }

        .mat-form-field .mat-input:focus-visible {
            border-color: var(--primary-color);
            border-width: 2px;
        }

        .mat-form-field .mat-input::placeholder {
            color: var(--gray-text);
        }

    .mat-form-field .mat-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: var(--gray-text);
        font-size: 20px;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .mat-form-field .mat-icon i {
            font-size: 18px;
        }

        .mat-form-field .mat-icon.mat-suffix {
            margin-top: 6px;
        }

    .mat-form-field .mat-input-wrap {
        position: relative;
    }

        .mat-form-field .mat-input-wrap .mat-input {
            padding-right: 40px;
        }

    .mat-form-field .mat-error {
        /*display: block;*/
        font-size: 12px;
        color: var(--error);
        margin-top: 4px;
        min-height: 16px;
    }

/* Button Styles */
.btn {
    font-size: 14px;
    padding: 9px 11px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

@media (max-width: 576px) {
    .btn {
        font-size: 13px;
        padding: 5px 10px;
    }
}

.btn i {
    font-size: 16px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-outline);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

    .btn-primary:hover:not(:disabled) {
        background: #019d75 !important;
        border-color: #019d75 !important;
    }

.btn-outline-primary {
    border-color: var(--primary-color) !important;
    background: transparent !important;
    color: var(--primary-color) !important;
}

    .btn-outline-primary:hover:not(:disabled) {
        background: var(--primary-color) !important;
        color: var(--white) !important;
    }

    .btn-outline-primary:focus-visible {
        box-shadow: 0 0 0 0.2rem var(--primary-outline);
    }

/* Bootstrap Primary Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-bg-subtle {
    background-color: var(--primary-light) !important;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
}

.nav-pills .nav-link.active:hover {
    background-color: var(--primary-dark) !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.page-item .page-link:focus {
    box-shadow: 0 0 0 0.2rem var(--primary-outline);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem var(--primary-outline) !important;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

    .breadcrumb-item a:hover {
        color: var(--primary-dark);
    }

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
}

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

.dropdown-item.active {
    background-color: var(--primary-color);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .btn-sm {
        padding: 4px 8px;
        font-size: 12px;
    }
}

.w-100 {
    width: 100% !important;
}

.w-35 {
    width: 35% !important;
}

.w-60 {
    width: 60% !important;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

.text-danger {
    color: var(--error) !important;
}

.text-center {
    text-align: center !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-space-between {
    justify-content: space-between !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

@media (min-width: 768px) {
    .my-md-5 {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.small {
    font-size: 12px;
}

.fw-semibold {
    font-weight: 600;
}

.d-none {
    display: none !important;
}

@media (min-width: 576px) {
    .d-sm-block {
        display: block !important;
    }
}

/* Flex Box */
.flex-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Checkbox Styles */
.check-box {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

    .check-box input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        cursor: pointer;
        accent-color: var(--primary-color);
    }

@media (max-width: 576px) {
    .check-box {
        font-size: 13px;
    }
}

/* Bootstrap Form Check / Switch */
.form-check-input {
    accent-color: var(--primary-color);
    cursor: pointer;
}

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

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-outline);
}

.form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Links */
.links {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

    .links:hover {
        text-decoration: underline;
    }

@media (max-width: 576px) {
    .links {
        font-size: 13px;
    }
}

/* Divider */
.divider-with-text {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 1.5rem 0;
}

    .divider-with-text .divider-line {
        height: 1px;
        background: var(--gray-400);
        flex-grow: 1;
    }

    .divider-with-text .divider-text {
        padding: 0 1rem;
        color: var(--secondary-color);
        font-weight: 600;
        font-size: 14px;
    }

/* Cloudflare Verification */
.cloudflare-verify {
    background: var(--gray-100);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--gray-border);
    position: relative;
}

    .cloudflare-verify .check-box {
        margin-bottom: 8px;
    }

.cloudflare-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cloudflare-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.cloudflare-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
}

    .cloudflare-link:hover {
        text-decoration: underline;
    }

.cloudflare-separator {
    color: var(--gray-text);
}

.cloudflare-logo {
    display: flex;
    align-items: center;
}

.cloudflare-text {
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 500;
    opacity: 0.7;
}

/* Responsive Utilities */
@media screen and (max-width: 575px) {
    .d-sm-block {
        display: none !important;
    }
}

/* Password Recovery Styles */
.password-recovery-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* forgot-password icon (separate from recovery stepper) */
.recovery-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.recovery-icon {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.recovery-instructions {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 32px;
    line-height: 1.6;
}

.recovery-buttons {
    display: flex;
    gap: 12px;
    margin-top: 0;
}

.recovery-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
}

@media (max-width: 575px) {
    .recovery-icon {
        width: 100px;
    }
    .recovery-instructions {
        font-size: 13px;
    }
    .recovery-buttons {
        flex-direction: column;
    }
    .recovery-buttons .btn {
        width: 100%;
    }
}

/* ── Stepper ───────────────────────────────────── */
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    background: var(--gray-300);
    color: var(--gray-text);
    transition: background .25s, color .25s, box-shadow .25s;
}

.step-dot.completed {
    background: var(--primary-color);
    color: #fff;
}

.step-dot.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 4px var(--primary-outline);
}

.step-label {
    font-size: .75rem;
    margin-top: 6px;
    color: var(--gray-text);
    white-space: nowrap;
}

.step-label.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--stepper-line-pending);
    margin-top: 17px;
    transition: background .25s;
    flex-shrink: 0;
}

.step-line.completed {
    background: var(--stepper-line-completed);
}

/* ── Recovery Card ──────────────────────────────── */
.recovery-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.recovery-card-body {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .recovery-card-body {
        padding: 2.5rem 2.5rem;
    }
}

/* ── Step Header ────────────────────────────────── */
.step-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-icon.success {
    background: #d1fae5;
    color: #059669;
}

.step-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--text-color);
}

.step-header p {
    font-size: .875rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.5;
}

/* ── Question groups ────────────────────────────── */
.question-group {
    margin-bottom: 1.25rem;
}

.question-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: .5rem;
    color: var(--text-color);
}

.question-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Recovery button ────────────────────────────── */
.btn-recovery {
    padding: .75rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 8px;
}

/* ── Step links ─────────────────────────────────── */
.step-links {
    display: flex;
    justify-content: center;
    gap: .75rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    font-size: .85rem;
}

.step-links a {
    color: var(--gray-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.step-links a:hover {
    color: var(--primary-color);
}

/* ── Password requirements checklist ────────────── */
.pwd-requirements {
    background: var(--gray-100);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.pwd-requirements-title {
    font-weight: 600;
    font-size: .8rem;
    margin-bottom: .5rem;
    color: var(--text-color);
}

.pwd-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.req-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--gray-text);
    padding: 2px 0;
    transition: color .2s;
}

.req-item i {
    font-size: .75rem;
    color: var(--gray);
    transition: color .2s;
}

.req-item.met {
    color: #059669;
}

.req-item.met i {
    color: #059669;
}

/* ── Success screen ─────────────────────────────── */
.success-screen {
    text-align: center;
    padding: .5rem 0;
}

.success-icon {
    font-size: 3.5rem;
    color: #059669;
    margin-bottom: 1rem;
}

.success-screen h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: var(--text-color);
}

.success-screen p {
    font-size: .875rem;
    color: var(--gray-text);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.success-note {
    font-size: .8rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0 !important;
    color: var(--gray-text);
}

.success-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* ── Bottom session note ────────────────────────── */
.recovery-session-note {
    text-align: center;
    font-size: .8rem;
    color: var(--gray-text);
    margin-top: 1.25rem;
}

/* ── Dark mode overrides ────────────────────────── */
[data-theme="dark"] .recovery-card {
    border-color: var(--gray-border);
}

[data-theme="dark"] .step-icon {
    background: rgba(1, 184, 140, 0.15);
}

[data-theme="dark"] .step-icon.success {
    background: rgba(5, 150, 101, 0.2);
    color: #34d399;
}

[data-theme="dark"] .pwd-requirements {
    background: var(--gray-100);
    border-color: var(--gray-border);
}

[data-theme="dark"] .req-item.met {
    color: #34d399;
}

[data-theme="dark"] .req-item.met i {
    color: #34d399;
}

[data-theme="dark"] .success-icon {
    color: #34d399;
}

.header-logo {
    display: flex;
    align-self: center;

    img {
        align-self: center;
        object-fit: contain;
        cursor: pointer;
        height: 27px;
        width: 130px;

        @media screen and (max-width:1240px) {
            width: 110px;
        }

        @media screen and (max-width:575px) {
            width: 90px;
        }
    }
}

.l-float{
    float: left;
    clear:right;
}

.mr-30 {
    margin-right: 30px;
}

/* ===== Admin Sidebar Layout ===== */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #F8FAFC;
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.3s ease, transform 0.3s ease;
}

.admin-sidebar-logo {
    padding: 16px 20px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.admin-sidebar-logo-img {
    height: 22px;
    width: auto;
    flex-shrink: 0;
}

.admin-sidebar-logo .logo-text {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

/* Nav */
.admin-sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.sidebar-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-item .nav-label {
    transition: opacity 0.2s ease;
}

.sidebar-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-nav-item.active {
    background: var(--primary-color);
    color: #FFFFFF;
}

/* User footer */
.admin-sidebar-footer {
    padding: 12px;
    border-top: 1px solid #F1F5F9;
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #01b88c, #0F6645);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    transition: opacity 0.2s ease;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
}

.sidebar-user-email {
    font-size: 11px;
    color: #94A3B8;
}

.sidebar-user-settings {
    color: #94A3B8;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.sidebar-user-settings:hover {
    color: var(--primary-color);
}

/* Top Header */
.admin-header {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 56px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 99;
    transition: left 0.3s ease;
}

.admin-header-breadcrumb {
    flex: 1;
    font-size: 13px;
    color: #64748B;
}

.admin-header-breadcrumb .current {
    color: #0F172A;
    font-weight: 500;
}

.admin-header-theme-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.admin-header-theme-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .admin-header-theme-btn {
    border-color: #334155;
    color: #94A3B8;
}

[data-theme="dark"] .admin-header-theme-btn:hover {
    background: rgba(1, 184, 140, 0.15);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.admin-header-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #01b88c, #0F6645);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    border: none;
    padding: 0;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.admin-header-avatar::after {
    display: none !important;
}

.admin-header-avatar:hover {
    filter: brightness(1.1);
}

/* Hamburger */
.hamburger-btn {
    display: none;
    width: 20px;
    height: 14px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    background: #0F172A;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

/* Main Content */
.admin-content {
    margin-top: 56px;
    padding: 24px;
    padding-left: 264px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    min-height: calc(100vh - 56px);
    transition: margin-left 0.3s ease;
}

/* Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
}

/* ===== Tablet: Icons-Only ===== */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 60px;
    }

    .admin-sidebar-logo {
        padding: 16px 12px;
        justify-content: center;
    }

    .admin-sidebar-logo-img,
    .admin-sidebar-logo .logo-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .sidebar-nav-item {
        justify-content: center;
        padding: 10px;
    }

    .sidebar-nav-item .nav-label {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .sidebar-nav-item:hover .nav-label {
        opacity: 1;
        width: auto;
        position: absolute;
        left: calc(100% + 8px);
        top: 50%;
        transform: translateY(-50%);
        background: #0F172A;
        color: #FFFFFF;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 200;
    }

    .sidebar-user-info,
    .sidebar-user-settings {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .sidebar-user {
        justify-content: center;
    }

    .admin-header {
        left: 60px;
    }

    .admin-content {
        padding-left: 84px;
    }
}

/* ===== Mobile: Overlay Drawer ===== */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .admin-header {
        z-index: 98;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        width: 240px;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop.open {
        display: block;
    }

    .admin-sidebar-logo {
        padding: 16px 20px;
        justify-content: flex-start;
    }

    .admin-sidebar-logo-img,
    .admin-sidebar-logo .logo-text {
        opacity: 1;
        width: auto;
    }

    .sidebar-nav-item {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .sidebar-nav-item .nav-label {
        opacity: 1;
        width: auto;
    }

    .sidebar-nav-item:hover .nav-label {
        position: static;
        background: none;
        color: inherit;
        padding: 0;
    }

    .sidebar-user-info,
    .sidebar-user-settings {
        opacity: 1;
        width: auto;
    }

    .sidebar-user {
        justify-content: flex-start;
    }

    .admin-header {
        left: 0;
    }

    .admin-content {
        padding-left: 24px;
    }
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
    --primary-light: rgba(1, 184, 140, 0.15);
    --secondary-color-dark: #e2e8f0;
    --secondary-color: #cbd5e1;
    --white: #0F172A;
    --gray-light: #1e293b;
    --gray-border: #334155;
    --gray-text: #94A3B8;
    --gray-100: #1e293b;
    --gray-300: #334155;
    --gray-400: #475569;
    --gray-500: #1e293b;
    --text-color: #F1F5F9;
    --text-muted: #cbd5e1bf;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);

    --bs-primary-bg-subtle: rgba(1, 184, 140, 0.15);
}

[data-theme="dark"] body {
    background-color: #0F172A;
    color: #F1F5F9;
}

[data-theme="dark"] .admin-layout {
    background: #0F172A;
}

[data-theme="dark"] .admin-sidebar {
    background: #1E293B;
    border-right-color: #334155;
}

[data-theme="dark"] .admin-sidebar-logo {
    border-bottom-color: #334155;
}

[data-theme="dark"] .admin-sidebar-logo .logo-text {
    color: #F1F5F9;
}

[data-theme="dark"] .sidebar-nav-item {
    color: #CBD5E1;
}

[data-theme="dark"] .sidebar-nav-item i,
[data-theme="dark"] .sidebar-nav-item .nav-label {
    color: inherit;
}

[data-theme="dark"] .sidebar-nav-item:hover {
    background: rgba(1, 184, 140, 0.18);
    color: #5EEAD4;
}

[data-theme="dark"] .sidebar-nav-item.active {
    background: var(--primary-color);
    color: #FFFFFF;
}

[data-theme="dark"] .sidebar-nav-item.active i,
[data-theme="dark"] .sidebar-nav-item.active .nav-label {
    color: #FFFFFF;
}

[data-theme="dark"] .admin-sidebar-footer {
    border-top-color: #334155;
}

[data-theme="dark"] .sidebar-user-name {
    color: #F1F5F9;
}

[data-theme="dark"] .sidebar-user-email {
    color: #94A3B8;
}

[data-theme="dark"] .sidebar-user-settings {
    color: #94A3B8;
}

[data-theme="dark"] .sidebar-user-settings:hover {
    color: #5EEAD4;
}

[data-theme="dark"] .sidebar-user-avatar {
    color: #FFFFFF;
}

[data-theme="dark"] .admin-header {
    background: #1E293B;
    border-bottom-color: #334155;
}

[data-theme="dark"] .admin-header-breadcrumb {
    color: #94A3B8;
}

[data-theme="dark"] .admin-header-breadcrumb .current {
    color: #F1F5F9;
}

[data-theme="dark"] .admin-header-breadcrumb a {
    color: var(--primary-color);
}

[data-theme="dark"] .card {
    background-color: #1E293B;
    border-color: #334155 !important;
    color: #F1F5F9;
}

[data-theme="dark"] .card-body {
    color: #F1F5F9;
}

[data-theme="dark"] .card-header {
    background-color: #1E293B;
    border-bottom-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .form-label,
[data-theme="dark"] label {
    color: #F1F5F9;
}

[data-theme="dark"] h3,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #F1F5F9;
}

[data-theme="dark"] .card li {
    color: #F1F5F9;
}

[data-theme="dark"] .card.border {
    border-color: #334155 !important;
}

[data-theme="dark"] .list-group-item {
    background-color: transparent;
    border-color: #334155;
}

[data-theme="dark"] .table {
    color: #F1F5F9;
    --bs-table-bg: transparent;
    --bs-table-color: #F1F5F9;
    --bs-table-border-color: #334155;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-table-hover-color: #F1F5F9;
}

[data-theme="dark"] .table thead th {
    border-bottom-color: #334155;
}

[data-theme="dark"] .table td {
    border-color: #334155;
}

[data-theme="dark"] .table-responsive {
    background-color: transparent;
    scrollbar-color: #334155 transparent;
}

[data-theme="dark"] .text-muted {
    color: #94A3B8 !important;
}

[data-theme="dark"] .text-dark {
    color: #F1F5F9 !important;
}

[data-theme="dark"] .bg-white {
    background-color: #1E293B !important;
}

[data-theme="dark"] .bg-light {
    background-color: #1E293B !important;
}

[data-theme="dark"] .border-bottom {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .border-top {
    border-top-color: #334155 !important;
}

[data-theme="dark"] .border-primary {
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .border-warning {
    border-color: #fbbf24 !important;
}

[data-theme="dark"] .border-success {
    border-color: #22c55e !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .dropdown-item {
    color: #CBD5E1;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(1, 184, 140, 0.15);
    color: var(--primary-color);
}

[data-theme="dark"] .dropdown-divider {
    border-color: #334155;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #86efac;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    color: #fde68a;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

[data-theme="dark"] .progress {
    background-color: #334155;
}

[data-theme="dark"] .modal-content {
    background-color: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #334155;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #94A3B8;
    border-color: #475569;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #0F172A;
    border-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #0F172A;
    color: #F1F5F9;
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748B;
}

[data-theme="dark"] .form-text {
    color: #94A3B8;
}

[data-theme="dark"] .input-group-text {
    background-color: #334155;
    border-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: #94A3B8;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: #334155;
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: #1E293B;
    border-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .page-link {
    background-color: #1E293B;
    border-color: #334155;
    color: #CBD5E1;
}

[data-theme="dark"] .page-link:hover {
    background-color: #334155;
    color: #F1F5F9;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: #1E293B;
    border-color: #334155;
    color: #475569;
}

[data-theme="dark"] code {
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="dark"] .badge.bg-success {
    background-color: #22c55e !important;
    color: #052e16;
}

[data-theme="dark"] .badge.bg-danger {
    background-color: #ef4444 !important;
    color: #450a0a;
}

[data-theme="dark"] .badge.bg-warning {
    color: #422006;
}

[data-theme="dark"] footer.bg-light {
    background-color: #1E293B !important;
}

[data-theme="dark"] footer .text-muted {
    color: #94A3B8 !important;
}

[data-theme="dark"] .table-responsive {
    scrollbar-color: #334155 transparent;
}

/* ===== Dark Mode: Missing Bootstrap overrides ===== */

/* ── Alerts ────────────────────────────────────────── */
[data-theme="dark"] .alert-info {
    background-color: rgba(6, 182, 212, 0.15);
    border-color: #22d3ee;
    color: #67e8f9;
}

[data-theme="dark"] .alert-light {
    background-color: #1E293B;
    border-color: #334155 !important;
    color: #CBD5E1;
}

[data-theme="dark"] .alert-secondary {
    background-color: rgba(148, 163, 184, 0.15);
    border-color: #475569;
    color: #CBD5E1;
}

/* ── Navbar ────────────────────────────────────────── */
[data-theme="dark"] .navbar-light,
[data-theme="dark"] .navbar {
    background-color: #1E293B !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .navbar-light .navbar-brand,
[data-theme="dark"] .navbar-light .nav-link {
    color: #CBD5E1;
}

[data-theme="dark"] .navbar-light .navbar-brand:hover,
[data-theme="dark"] .navbar-light .nav-link:hover {
    color: #F1F5F9;
}

[data-theme="dark"] .navbar-light .navbar-toggler {
    border-color: #475569;
    color: #CBD5E1;
}

[data-theme="dark"] .navbar-light .navbar-toggler-icon {
    filter: invert(0.8);
}

/* ── Background utilities ──────────────────────────── */
[data-theme="dark"] .bg-secondary {
    background-color: #475569 !important;
}

[data-theme="dark"] .bg-info {
    background-color: #0891b2 !important;
}

[data-theme="dark"] .bg-opacity-10 {
    opacity: 0.15;
}

[data-theme="dark"] .bg-opacity-25 {
    opacity: 0.25;
}

/* ── Buttons ───────────────────────────────────────── */
[data-theme="dark"] .btn-warning {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #1E293B !important;
}

[data-theme="dark"] .btn-warning:hover:not(:disabled) {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
}

[data-theme="dark"] .btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

[data-theme="dark"] .btn-danger:hover:not(:disabled) {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
}

[data-theme="dark"] .btn-info {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .btn-info:hover:not(:disabled) {
    background-color: #0e7490 !important;
    border-color: #0e7490 !important;
}

[data-theme="dark"] .btn-success {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
}

[data-theme="dark"] .btn-success:hover:not(:disabled) {
    background-color: #15803d !important;
    border-color: #15803d !important;
}

/* ── Border utilities ──────────────────────────────── */
[data-theme="dark"] .border-info {
    border-color: #22d3ee !important;
}

[data-theme="dark"] .border-danger {
    border-color: #ef4444 !important;
}

/* ── Horizontal rule ───────────────────────────────── */
[data-theme="dark"] hr {
    border-color: #334155;
    opacity: 1;
}

/* ── Toast notifications ───────────────────────────── */
[data-theme="dark"] .toast {
    background-color: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .toast-header {
    background-color: #0F172A;
    border-bottom-color: #334155;
    color: #CBD5E1;
}

[data-theme="dark"] .toast-body {
    color: #F1F5F9;
}

/* ── Floating theme toggle ─────────────────────────── */
.theme-toggle-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 18px;
    transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle-floating:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle-floating {
    background: #1E293B;
    border-color: #334155;
    color: #94A3B8;
}

[data-theme="dark"] .theme-toggle-floating:hover {
    background: rgba(1, 184, 140, 0.15);
    color: var(--primary-color);
}

/* ── Badge bg-info ─────────────────────────────────── */
[data-theme="dark"] .badge.bg-info {
    background-color: #0891b2 !important;
    color: #FFFFFF;
}

/* ── Stepper lines (RecoveryWithQuestions) ─────────── */
:root {
    --stepper-line-completed: #198754;
    --stepper-line-pending: #dee2e6;
}

[data-theme="dark"] {
    --stepper-line-completed: #22c55e;
    --stepper-line-pending: #475569;
}
