* {
    font-family: 'IBM Plex Sans', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* COLORI */
:root {
    --grey-deep: #043649;
    --grey-light: #F9FAFA;
    --grey-mid: #DBDFE1;
    --grey-dark: #6C7D83;
    --yellow: #FFCD07;
    --blue: #00AEEF;
    --red: #D71C5C;
}

/* Global Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--grey-dark) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--grey-mid);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--grey-dark);
}

html,
body {
    height: 100%;
    overflow: visible;
    /* Lock page scrolling */
}

body {
    color: var(--grey-deep);
    font-size: 16px;
}

.main {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background-color: var(--grey-light);
    z-index: 0;
}

.main::before {
    content: "";
    position: fixed;
    top: 50%;
    left: -30%;
    width: 200vmax;
    height: 200vmax;
    background-image: url('../img/bg-blur.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate(-50%, -50%);
    animation: rotate-bg 10s linear infinite;
    pointer-events: none;
    opacity: 0.8; /* Subtle transparency to blend with background-color */
}

@keyframes rotate-bg {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--grey-deep);
    transition: all 0.3s ease-in-out;
}

a:hover {
    opacity: 0.5;
    cursor: pointer;
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.rounded-5 {
    border-radius: 5px;
}

.rounded-15 {
    border-radius: 15px;
}

.rounded-30 {
    border-radius: 30px;
}

.border {
    border: 1px solid var(--grey-mid);
}

.divider-y {
    /* height: 100%; */
    min-height: 20px;
    background-color: var(--grey-mid);
    width: 1px;
}

.divider-x {
    width: 100%;
    background-color: var(--grey-mid);
    height: 1px;
}

.pointer {
    cursor: pointer;
}

/* FONT */
.main-title {
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
}

.body {
    font-size: 1rem;
    font-weight: 300;
}

.body.bold {
    font-weight: 600;
}

.small {
    font-size: 0.75rem;
    font-weight: 300;
}

.small.bold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}


.text-grey-deep {
    color: var(--grey-deep);
}

.text-grey-light {
    color: var(--grey-light);
}

.text-grey-mid {
    color: var(--grey-mid);
}

.text-grey-dark {
    color: var(--grey-dark);
}

.text-yellow {
    color: var(--yellow);
}

.text-blue {
    color: var(--blue);
}

.text-red {
    color: var(--red);
}

.bg-grey-deep {
    background-color: var(--grey-deep);
}

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

.bg-grey-mid {
    background-color: var(--grey-mid);
}

.bg-grey-dark {
    background-color: var(--grey-dark);
}

.bg-yellow {
    background-color: var(--yellow);
}

.bg-blue {
    background-color: var(--blue);
}

.bg-red {
    background-color: var(--red);
}

.bg-white {
    background-color: white;
}

.bg-blur {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}


/* SHADOW */
.shadow-1 {
    box-shadow: 0 2px 8px 0 #0435491a;
}


/* BTN */
.btn-primary {
    background: linear-gradient(0deg, var(--grey-deep) 50%, #376f84 100%);
    color: var(--grey-light);
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px 0 #26455176;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-alert:hover {
    opacity: 0.9;
    scale: 0.98;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-alert:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.btn-secondary {
    background: var(--grey-mid);
    color: var(--grey-deep);
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.btn-alert {
    background: var(--red);
    color: var(--grey-light);
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.go-back-icon {
    transition: all 0.3s ease-in-out;
}

.go-back-icon:hover {
    scale: 0.98;
    opacity: 0.8;
    cursor: pointer;
}


/* INPUT */
input, textarea {
    border: 1px solid var(--grey-mid);
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.3s ease-in-out;
    background-color: white;
    color: var(--grey-deep);
    height: 50px;
}

input:focus {
    outline: none;
    border-color: var(--grey-deep);
}

input:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 0px;
    border-color: var(--grey-deep);
}

input::placeholder {
    color: var(--grey-mid);
}

input[type="date"] {
    position: relative;
    cursor: pointer;
}

/* Customizing the date picker icon appearance where possible */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

input[type="date"]::after {
    content: '';
    display: block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23043649' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    background-color: transparent;
    border: 1px solid var(--grey-dark);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-grid;
    place-content: center;
    padding: 0;
    aspect-ratio: 1/1;
}

input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

input[type="checkbox"]:checked {
    background-color: var(--grey-deep);
    border-color: var(--grey-deep);
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--grey-light);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    background-color: transparent;
    border: 1px solid var(--grey-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-grid;
    place-content: center;
    padding: 0;
    aspect-ratio: 1/1;
    margin-right: 8px;
}

input[type="radio"]:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

input[type="radio"]:checked {
    border-color: var(--grey-deep);
}

input[type="radio"]::before {
    content: "";
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--grey-deep);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

.input-suffix {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.input-wrapper input {
    padding-left: 40px;
}


/* HEADER */
.user-image {
    border-radius: 100px;
}

.off-canvas-toggle {
    border: none;
    background-color: transparent;
}

.sidebar {
    align-self: stretch;
    z-index: 10;
    top: 4rem;
    transition: all 0.5s ease-in-out;
}

.bottom-sidebar {
    flex: 1;
    background-color: #ffffff95;
}

.sidebar-profile {
    transition: all 0.3s ease-in-out;
}

.sidebar-profile:hover {
    scale: 0.98;
    opacity: 0.5;
    cursor: pointer;
}

.canvas {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    overflow-y: visible;
    /* Optional: custom invisible scrollbar setup for cleaner look */
    padding-right: 4px;
}

.mobile-admin-navbar ul {
    box-shadow: 0 -2px 8px 0 #0435491a;
}

.filtri-container.active {
    display: flex;
}

.filtri-container {
    display: none;
}

.filtri-wrapper {
    height: 100%;
    overflow-y: scroll;
}

.bottom-sidebar.hide {
    display: none;
}

.valori-filtro-container {
    max-height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
}


/* PASSWORD TOGGLE */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--grey-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.toggle-password:hover {
    color: var(--grey-deep);
    background-color: var(--grey-mid);
}

.toggle-password:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.toggle-password svg {
    display: block;
    width: 18px;
    height: 18px;
}


/* TOGGLE SWITCH */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.accordion .toggle-switch {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 100;
}

/* Hide native checkbox visually but keep it accessible */
.toggle-switch input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    background: transparent;
}

.toggle-track {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    background-color: var(--grey-mid);
    border-radius: 100px;
    transition: background-color 0.25s ease-in-out;
    flex-shrink: 0;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease-in-out;
}

/* Checked state */
.toggle-switch input[type="checkbox"]:checked+.toggle-track {
    background-color: var(--grey-deep);
}

.toggle-switch input[type="checkbox"]:checked+.toggle-track .toggle-thumb {
    transform: translateX(18px);
}

/* Keyboard focus ring */
.toggle-switch input[type="checkbox"]:focus-visible+.toggle-track {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}


/* NAVBAR */
.nav-item {
    transition: all 0.3s ease-in-out;
}

.nav-item:hover {
    scale: 0.98;
    opacity: 0.5;
}

.nav-item.current-page {
    font-weight: bolder;
}

.nav-item img {
    opacity: 0.5;
}

.nav-item.current-page img {
    opacity: 1;
}


/* ITEM */
.item {
    transition: all 0.3s ease-in-out;
}

.item-btn {
    background-color: var(--grey-light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.item-btn:hover {
    scale: 0.95;
    background-color: var(--grey-mid);
}

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

.item-label {
    padding: 0.2rem 1rem;
}

.item-label.success {
    background-color: #E5FEEC;
    color: #08D73F;
}

.item-label.pending {
    background-color: #FFFBEB;
    color: var(--yellow);
}

.item-label.error {
    background-color: #FDF1F5;
    color: var(--red);
}

.item-label.bought {
    background-color: #EBFAFF;
    color: var(--blue);
}


/* MEDIA QUERY */
/* MEDIA QUERY */
/* MEDIA QUERY */


/* sm — tablet and up (mirrors .sm-col-*, .sm-flex …) */
@media (min-width: 40em) {}

/* md — desktop and up (mirrors .md-col-*, .md-flex …) */
@media (min-width: 52em) {
    body {
        overflow: hidden;
    }

    .main {
        height: 100vh;
    }

    .sidebar {
        position: relative !important;
        transform: translateY(0%);
        top: 0rem;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0px;
    }

    .content {
        overflow-y: auto;
    }
}

/* lg — large desktop and up (mirrors .lg-col-*, .lg-flex …) */
@media (min-width: 64em) {}