:root {
    --primary: #0090BC;
    --secondary: #005A7F;
    --secondary-50: #005A7F50;
    --blue-border: #005A7F30;
    --complementary: #34C3EB;
    --complementary-20: #34C3EB20;
    --light-background: #F8F9FA;
    --leggibilita: #212529;
    --gray: #ADADAD;
    --gray-text: #A9AAAA;
    --gray-tab-bar: #D3D3D3;
    --gray-text-secondary: #6C757D;
    --dark-gray: #DBDCDB;
    --gray-700: #344054;
    --success: #37B14C;
    --danger: #D7263D;
    --sos: #A10000;
    --warning: #F7B801;
    --alternative-background: #A0E3F3;
    --light-blu: #C9F3FF;
    --light-blue-sky: #DFF8FF;
    --gray-box: #E3E3E5;
    --gray-word: #667085;
    --illustration: #705BA0;
    --gray-background: #D9D9D9;
    --light-blue-background: #EDF9FD;
    --gray-border: #E8EDF1;
    --qr-code-box-birthday: #ADCEF5;
    --qr-code-box-gender: #FCA5B5;
    --qr-code-box-gender-male: #7180AC;
    --qr-code-box-blood: #E7717F;
    --qr-code-box-weight: #CDE8AF;
    --qr-code-box-map: #A39B9B;
    --qr-code-box-phone: #F5BD79;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: white !important;
}

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

.card-radius-bottom {
    border-radius: 0 0 2rem 2rem !important;
}

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

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

@media (max-width: 991px) {
    .text-secondary-1000 {
        color: var(--secondary) !important;
    }
}

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

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

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

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

.table-with-row-border tr {
    border-bottom: 1rem solid var(--secondary-50);
}

/* Background colors */
.bg-primary {
    background-color: var(--primary) !important;
}

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

.bg-complementary {
    background-color: var(--complementary) !important;
}

.bg-qr-code-box-birthday {
    background-color: var(--qr-code-box-birthday) !important;
}

.bg-qr-code-box-gender {
    background-color: var(--qr-code-box-gender) !important;
}

.bg-qr-code-box-gender-male {
    background-color: var(--qr-code-box-gender-male) !important;
}

.bg-qr-code-box-blood {
    background-color: var(--qr-code-box-blood) !important;
}

.bg-qr-code-box-weight {
    background-color: var(--qr-code-box-weight) !important;
}

.bg-qr-code-box-map {
    background-color: var(--qr-code-box-map) !important;
}

.bg-qr-code-box-phone {
    background-color: var(--qr-code-box-phone) !important;
}

.bg-dark-gray {
    background-color: var(--dark-gray) !important;
}


/* Hover states */
.hover-bg-primary:hover {
    background-color: var(--primary) !important;
}

.hover-bg-secondary:hover {
    background-color: var(--secondary) !important;
}

.hover-bg-complementary:hover {
    background-color: var(--complementary) !important;
}

/* Background with opacity */
.bg-primary-20 {
    background-color: color-mix(in srgb, var(--primary) 20%, transparent) !important;
}

.bg-secondary-20 {
    background-color: color-mix(in srgb, var(--secondary) 20%, transparent) !important;
}

.bg-complementary-20 {
    background-color: color-mix(in srgb, var(--complementary-20), transparent) !important;
}

/* Border with opacity */
.border-primary-20 {
    border-color: color-mix(in srgb, var(--primary), transparent) !important;
}

.border-secondary-20 {
    border-color: color-mix(in srgb, var(--secondary), transparent) !important;
}

.border-secondary-50 {
    border-color: color-mix(in srgb, var(--secondary), transparent) !important;
    opacity: 0.5;
}

.border-complementary-20 {
    border-color: color-mix(in srgb, var(--complementary-20), transparent) !important;
}

/* Image filters for brand colors */
.img-primary {
    filter: brightness(0) saturate(100%) invert(45%) sepia(82%) saturate(1253%) hue-rotate(165deg) brightness(93%) contrast(101%);
}

.img-secondary {
    filter: brightness(0) saturate(100%) invert(31%) sepia(15%) saturate(6127%) hue-rotate(167deg) brightness(94%) contrast(101%);
}

.img-complementary {
    filter: brightness(0) saturate(100%) invert(67%) sepia(72%) saturate(454%) hue-rotate(157deg) brightness(95%) contrast(98%);
}

/* Image filters with opacity */
.fill-primary {
    fill: var(--primary);
}

.fill-secondary {
    fill: var(--secondary);
}

.img-complementary-20 {
    filter: brightness(0) saturate(100%) invert(67%) sepia(72%) saturate(454%) hue-rotate(157deg) brightness(95%) contrast(98%) opacity(20%);
    color: var(--complementary);
}

.btn {
    border-radius: .300rem;
    padding-left: calc(3px + 3.5rem) !important;
    padding-right: calc(3px + 3.5rem) !important;
    padding-top: calc(1px + 0.50rem) !important;
    padding-bottom: calc(1px + 0.50rem) !important;
}

/* Bootstrap-style rounded utilities extended to 10 */
.rounded-1 {
    border-radius: 0.2rem !important;
}

.rounded-2 {
    border-radius: 0.4rem !important;
}

.rounded-3 {
    border-radius: 0.6rem !important;
}

.rounded-4 {
    border-radius: 0.8rem !important;
}

.rounded-5 {
    border-radius: 1rem !important;
}

.rounded-6 {
    border-radius: 1.2rem !important;
}

.rounded-7 {
    border-radius: 1.4rem !important;
}

.rounded-8 {
    border-radius: 1.6rem !important;
}

.rounded-9 {
    border-radius: 1.8rem !important;
}

.rounded-10 {
    border-radius: 2rem !important;
}

.rounded-bottom-5 {
    border-bottom-left-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

.rounded-100 {
    border-radius: 100% !important;
}

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

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

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

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

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

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

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

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

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

.btn-success-outline {
    background-color: transparent !important;
    border: 1px solid var(--success) !important;
    color: var(--success) !important;
}

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

.btn-danger-outline {
    background-color: transparent !important;
    border: 1px solid var(--danger) !important;
    color: var(--danger) !important;
}

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

.btn-complementary-outline {
    background-color: transparent !important;
    border: 1px solid var(--complementary) !important;
    color: var(--complementary) !important;
}

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

.btn-secondary-outline {
    background-color: transparent !important;
    border: 1px solid var(--secondary) !important;
    color: var(--secondary) !important;
}

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

.btn-gray-outline {
    background-color: transparent !important;
    border: 1px solid var(--gray-text) !important;
    color: var(--gray-text) !important;
}

.btn-gray-outline:hover {
    background-color: var(--gray-text) !important;
    color: white !important;
}

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

.header-bar {
    height: 150px;
    background-color: var(--complementary);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.login-box {
    background-color: var(--light-background);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 3rem;
    /* max-width: 550px; */
}

/* ≥ 576px (SM) */
/* @media (min-width: 576px) {
    .login-box {
        padding: 2.5rem;
        max-width: 480px;
    }
} */

/* ≥ 768px (MD) */
/* @media (min-width: 768px) {
    .login-box {
        padding: 3rem;
        max-width: 500px;
    }
} */

/* ≥ 992px (LG) */
/* @media (min-width: 992px) {
    .login-box {
        padding: 4rem;
        max-width: 550px;
    }
} */

/* ≥ 1200px (XL) */
/* @media (min-width: 1200px) {
    .login-box {
        font-size: 1.05rem;
    }
} */

/* ≥ 1400px (XXL) */
/* @media (min-width: 1400px) {
    .login-box {
        max-width: 600px;
    }
} */

.illustration {
    max-width: 400px;
}

/* REGISTER */
.main-container {
    overflow: hidden;
}

.step-sidebar {
    background-color: var(--light-background);
    padding: 2rem;
    border-right: 1px solid #e0e0e0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 12px;
}

.step-item {
    opacity: 0.5;
}

.step-item.active {
    opacity: 1;
}

.step-item.active .step-circle {
    background-color: #0090BC;
    color: white;
}

.step-item .step-circle {
    background-color: #d9d9d9;
    color: #212529;
}

.form-area {
    padding: 2rem 3rem;
    background-color: var(--light-background);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.form-area .form-control {
    border-radius: 10px;
}

.btn-primary-custom {
    background-color: #34C3EB;
    border: none;
    border-radius: 10px;
}

.avatar-box {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: #0090BC;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.avatar-box::after {
    content: '✎';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    color: #34C3EB;
}

.gender-btn {
    background-color: white;
    color: #212529;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gender-btn:hover {
    border-color: #0090BC;
}

.btn-check:checked+.gender-btn {
    background-color: #0090BC;
    color: white;
    border-color: #0090BC;
    box-shadow: none;
}

/* Altezza fissa per i box, responsive */
/* .fixed-box-height {
    height: 250px;
}

@media (max-width: 1400px) {
    .fixed-box-height {
        height: 230px;
    }
}

@media (max-width: 1200px) {
    .fixed-box-height {
        height: 230px;
    }
}

@media (max-width: 992px) {
    .fixed-box-height {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .fixed-box-height {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .fixed-box-height {
        height: 220px;
    }
} */

/* Width utilities from 5% to 100% */
.w-5 {
    width: 5% !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.text-underline-custom {
    display: inline-block;
    border-bottom: 0.8px solid;
    padding-bottom: 2px;
}

.box-quadrato {
    aspect-ratio: 1/1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.box-quadrato img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    /* O "cover" se preferisci riempire */
    height: auto;
    display: block;
}

.mt-n1 {
    margin-top: -0.25rem;
}

/* -4px */
.mt-n2 {
    margin-top: -0.5rem;
}

/* -8px */
.mt-n3 {
    margin-top: -1rem;
}

/* -16px */
.mt-n4 {
    margin-top: -1.5rem;
}

/* -24px */
.mt-n5 {
    margin-top: -3rem;
}

/* -48px */
.mt-n6 {
    margin-top: -4rem;
}

/* -64px */
.mt-n7 {
    margin-top: -5rem;
}

/* -80px */
.mt-n8 {
    margin-top: -6rem;
}

/* -96px */
.mt-n9 {
    margin-top: -7rem;
}

/* -112px */
.mt-n10 {
    margin-top: -8rem;
}

/* -128px */

/* CUSTOM NAVS ITEM */
/* Stile base per tutti i nav-item */

.nav-pills-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-item-fixed-width {
    flex: 0 0 200px;
    /* Larghezza fissa di 200px, puoi modificare questo valore */
    max-width: 200px;
    /* Larghezza massima di 200px */
}

.nav-item-fixed-width .nav-link {
    height: 100%;
    min-height: 100px;
    /* Altezza minima, puoi modificare questo valore */
    text-align: center;
}

/* Per schermi più piccoli */
@media (max-width: 768px) {
    .nav-item-fixed-width {
        flex: 0 0 100%;
        /* Su mobile occupa tutta la larghezza */
        max-width: 100%;
    }
}

.nav-pills-custom .nav-item {
    margin-bottom: 1rem !important;
    margin-right: 1rem !important;
}

/* Stile base per i nav-link */
.nav-pills-custom .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    overflow: hidden !important;
    border: 1px solid var(--secondary) !important;
    /* bordo secondary */
    border-radius: 0.475rem !important;
    transition: all 0.3s ease !important;
    background-color: transparent !important;
}

/* Stile per il testo del nav-link */
.nav-pills-custom .nav-link .nav-text {
    color: var(--secondary) !important;
    /* testo secondary */
    font-weight: 500 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
}

/* Stile per lo stato attivo */
.nav-pills-custom .nav-link.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.nav-pills-custom .nav-link.active img {
    filter: brightness(0) invert(1);
}

.ic-white {
    filter: brightness(0) invert(1);
}

/* Stile per il testo quando è attivo */
.nav-pills-custom .nav-link.active .nav-text {
    color: #FFFFFF !important;
    /* testo bianco */
}

/* Stile per il bullet quando è attivo */
.nav-pills-custom .nav-link.active .bullet-custom {
    background-color: #FFFFFF !important;
    /* bullet bianco */
}

/* Stile per il bullet quando non è attivo */
.nav-pills-custom .nav-link .bullet-custom {
    background-color: var(--secondary) !important;
    /* bullet secondary */
}

/* Hover effect */
.nav-pills-custom .nav-link:hover:not(.active) {
    background-color: rgba(108, 117, 125, 0.1) !important;
    /* hover con opacità */
}

/* Stile speciale per il pulsante "aggiungi categoria" */
/* .nav-pills-custom .nav-item:last-child .nav-link {
    border-color: var(--complementary) !important;
} */

.nav-pills-custom .nav-item .nav-link:hover {
    border-color: var(--primary) !important;
}

/* .nav-pills-custom .nav-item:last-child .nav-link .nav-text {
    color: var(--complementary) !important;
} */

.nav-pills-custom .nav-item:last-child .nav-link:hover .nav-text {
    color: var(--primary) !important;
}

.nav.nav-pills.nav-pills-custom .nav-link.active .nav-text {
    color: #FFFFFF !important;
}

/* Border colors */
.border-primary {
    border-color: var(--primary) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.border-complementary {
    border-color: var(--complementary) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.border-gray {
    border-color: var(--gray) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.border-gray-word {
    border-color: var(--gray-word) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* Border widths */
.border-1 {
    border-width: 1px !important;
}

.border-2 {
    border-width: 2px !important;
}

.border-3 {
    border-width: 3px !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-5 {
    border-width: 5px !important;
}

/* Border styles */
.border-dashed {
    border-style: dashed !important;
}

.border-dotted {
    border-style: dotted !important;
}

.border-double {
    border-style: double !important;
}

/* Border radius combinations */
.border-top-left-radius-0 {
    border-top-left-radius: 0 !important;
}

.border-top-right-radius-0 {
    border-top-right-radius: 0 !important;
}

.border-bottom-left-radius-0 {
    border-bottom-left-radius: 0 !important;
}

.border-bottom-right-radius-0 {
    border-bottom-right-radius: 0 !important;
}

/* Custom checkbox */
.custom-option {
    background-color: #F8F9FA;
    padding: 1rem;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-box {
    width: 24px;
    height: 24px;
    background-color: white;
    border: 2px solid #667085;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.icon-check {
    display: none;
    width: 16px;
    height: 16px;
    color: white;
}

.custom-option.selected {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-option.selected .custom-box {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-option.selected label {
    color: white !important;
}

.custom-option:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-option label {
    font-family: 'Roboto', sans-serif;
}

.custom-option.selected .icon-check {
    display: block;
}

.px-no {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.badge-success-outline {
    background-color: transparent !important;
    border: 1px solid var(--success) !important;
    color: var(--gray-700) !important;
}

.badge-warning-outline {
    background-color: transparent !important;
    border: 1px solid var(--warning) !important;
    color: var(--gray-700) !important;
}

.badge-info-outline {
    background-color: transparent !important;
    border: 1px solid var(--primary) !important;
    color: var(--gray-700) !important;
}

.red-dot {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--danger);
    border-radius: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-label:before {
    content: "";
    position: absolute;
    left: 51px;
    width: 1px;
    top: 0;
    bottom: 0;
    background-color: var(--primary);
}

.timeline-label .timeline-badge {
    flex-shrink: 0;
    background-color: var(--primary);
    width: 0.1rem !important;
    height: 0.1rem !important;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
    margin-top: 5px !important;
    margin-left: -4px !important;
    padding: 3px !important;
    border: 3px solid var(--primary) !important;
}