/* ==========================================================
   Strike Theme - Design System Riutilizzabile
   Palette: #012F46 · #7EC5E1 · #AB1F78 · #FBB32A · #DBEFF8
   Font: Inter (Google Fonts)
   Framework: Bootstrap 5.3+
   
   Come usare questo tema:
   1. Includere Bootstrap 5.3 CSS
   2. Includere Bootstrap Icons
   3. Includere Google Fonts Inter
   4. Includere questo file CSS
   ========================================================== */

/* ================================================================
   SEZIONE 1: DESIGN TOKENS (Variabili CSS)
   Modifica queste variabili per personalizzare l'intero tema.
   ================================================================ */
:root {
    /* — Layout — */
    --sidebar-width: 260px;

    /* — Sidebar — */
    --sidebar-bg: #012F46;
    --sidebar-bg-gradient: linear-gradient(180deg, #013d5b 0%, #012F46 100%);
    --sidebar-color: #ffffff;
    --sidebar-hover: rgba(126, 197, 225, 0.10);
    --sidebar-active: rgba(126, 197, 225, 0.18);
    --sidebar-border: rgba(126, 197, 225, 0.12);
    --sidebar-group-color: rgba(126, 197, 225, 0.55);

    /* — Superfici — */
    --content-bg: #f4f7f9;
    --card-bg: #ffffff;
    --card-radius: 14px;
    --card-shadow: 0 1px 3px rgba(1, 47, 70, 0.04), 0 4px 16px rgba(1, 47, 70, 0.06);
    --card-shadow-hover: 0 4px 24px rgba(1, 47, 70, 0.10);

    /* — Bordi — */
    --border-color: #e2eaf0;
    --border-input: #c2d9e4;

    /* — Testo — */
    --text-primary: #012F46;
    --text-secondary: #5a7a8a;
    --text-muted: #8fa8b7;

    /* — Colori principali — */
    --accent: #012F46;
    --accent-hover: #01405f;
    --accent-light: #DBEFF8;
    --highlight: #7EC5E1;
    --highlight-light: #DBEFF8;
    --magenta: #AB1F78;
    --magenta-light: #f8e4f1;
    --gold: #FBB32A;
    --gold-light: #fff6e0;

    /* — Colori semantici — */
    --success: #22c55e;
    --success-light: #f0fdf4;
    --warning: #FBB32A;
    --warning-light: #fff6e0;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #7EC5E1;
    --info-light: #DBEFF8;

    /* — Altro — */
    --transition: 0.2s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* — Primary Background Subtle (per @mention e simili) — */
    --primary-bg-subtle: #DBEFF8;
}


/* ================================================================
   SEZIONE 2: RESET & TIPOGRAFIA
   ================================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--content-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.table a {
    color: var(--accent);
    font-weight: 500;
}

.table a:hover {
    color: var(--magenta);
}


/* ================================================================
   SEZIONE 3: SIDEBAR
   ================================================================ */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg-gradient);
    color: var(--sidebar-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed {
    transform: translateX(-100%);
}

/* Header */
.sidebar-header {
    flex-shrink: 0;
    padding: 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    color: var(--sidebar-color);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
}

.sidebar-brand:hover {
    color: var(--sidebar-color);
    text-decoration: none;
}

.sidebar-brand i {
    color: var(--highlight);
    font-size: 1.4rem;
}

/* Menu */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-menu::-webkit-scrollbar {
    display: none;
}

.sidebar-menu-item {
    margin: 2px 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0 8px 8px 0;
    margin-right: 8px;
}

.sidebar-menu-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-color);
    border-left-color: var(--highlight);
    text-decoration: none;
}

.sidebar-menu-link.active {
    background-color: var(--sidebar-active);
    color: var(--sidebar-color);
    border-left-color: var(--highlight);
    font-weight: 500;
}

.sidebar-menu-link i {
    width: 22px;
    margin-right: 0.7rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0.85;
}

.sidebar-menu-link.active i {
    opacity: 1;
    color: var(--highlight);
}

/* Divider */
.sidebar-divider {
    height: 1px;
    background-color: rgba(126, 197, 225, 0.10);
    margin: 0.5rem 0;
}

/* Groups */
.sidebar-group {
    margin-bottom: 0.25rem;
}

.sidebar-group-header {
    padding: 0.6rem 1.25rem 0.3rem;
    color: var(--sidebar-group-color);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.sidebar-group-item {
    margin: 1px 0;
    padding-left: 0;
}

/* Footer */
.sidebar-footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(126, 197, 225, 0.10);
    background: rgba(0, 0, 0, 0.15);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color var(--transition);
}

.user-menu:hover {
    background-color: var(--sidebar-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--highlight), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: rgba(126, 197, 225, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ================================================================
   SEZIONE 4: AREA CONTENUTO PRINCIPALE
   ================================================================ */
#main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--content-bg);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-content.expanded {
    margin-left: 0;
}

/* Topbar */
.topbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(1, 47, 70, 0.03);
    min-height: 60px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-left h4 {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar Toggle */
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sidebar-toggle:hover {
    background-color: var(--accent-light);
    color: var(--text-primary);
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.notification-icon {
    font-size: 1.15rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
}

.notification-icon:hover {
    background-color: var(--accent-light);
    color: var(--text-primary);
}

/* Content Wrapper */
.content-wrapper {
    padding: 1.5rem;
    max-width: 1600px;
}


/* ================================================================
   SEZIONE 5: CARDS
   ================================================================ */

/* --- Base card --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header h5 {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
}

/* --- Card header colored variants --- */
.card-header.bg-primary {
    background: var(--accent) !important;
    color: white !important;
    border-bottom: none;
}

.card-header.bg-primary h5 {
    color: white;
}

/* --- Card title & description --- */
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.card-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- Hover lift --- */
.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* --- Clickable card --- */
.card-clickable {
    cursor: pointer;
}

.card-clickable:active {
    transform: scale(0.99);
}

/* --- Card with left color accent border --- */
.card-accent-left {
    border-left: 3px solid var(--accent);
}

.card-accent-left.accent-success { border-left-color: var(--success); }
.card-accent-left.accent-danger  { border-left-color: var(--danger); }
.card-accent-left.accent-warning { border-left-color: var(--gold); }
.card-accent-left.accent-info    { border-left-color: var(--highlight); }
.card-accent-left.accent-magenta { border-left-color: var(--magenta); }

/* --- Card with top color accent border --- */
.card-accent-top {
    border-top: 3px solid var(--accent);
}

.card-accent-top.accent-success { border-top-color: var(--success); }
.card-accent-top.accent-danger  { border-top-color: var(--danger); }
.card-accent-top.accent-magenta { border-top-color: var(--magenta); }
.card-accent-top.accent-info    { border-top-color: var(--highlight); }

/* --- Ghost card (no border/shadow) --- */
.card-ghost {
    border: none;
    box-shadow: none;
    background: transparent;
}

.card-ghost:hover {
    background: var(--content-bg);
    box-shadow: none;
}

/* --- Outline card (no shadow) --- */
.card-outline {
    box-shadow: none;
}

.card-outline:hover {
    box-shadow: none;
    border-color: var(--accent);
}

/* --- Card image top/bottom --- */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--content-bg);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-hover-lift:hover .card-img-wrapper img,
.card-clickable:hover .card-img-wrapper img {
    transform: scale(1.04);
}

.card-img-overlay-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.card-img-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
}

/* --- Card with avatar / user --- */
.card-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--highlight), var(--magenta));
    flex-shrink: 0;
}

.card-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.card-user-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-user-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Card actions row --- */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.card-actions .btn {
    font-size: 0.78rem;
}

.card-actions-no-border {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* --- Card stats row (social-like) --- */
.card-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-stats .card-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: color var(--transition);
}

.card-stats .card-stat:hover {
    color: var(--accent);
}

/* --- Card with tabs --- */
.card-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.25rem;
    gap: 0;
}

.card-tabs .card-tab {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.card-tabs .card-tab:hover {
    color: var(--text-primary);
}

.card-tabs .card-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* --- Gradient card --- */
.card-gradient-primary {
    background: linear-gradient(135deg, var(--accent), #0a5a7a);
    border: none;
    color: #fff;
}

.card-gradient-primary .card-title,
.card-gradient-primary .card-description,
.card-gradient-primary .text-muted {
    color: rgba(255,255,255,0.85) !important;
}

.card-gradient-magenta {
    background: linear-gradient(135deg, var(--magenta), #d4368f);
    border: none;
    color: #fff;
}

.card-gradient-magenta .card-title,
.card-gradient-magenta .card-description {
    color: rgba(255,255,255,0.9) !important;
}

/* --- Card OTP / Code display --- */
.card-code-display {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.card-code-char {
    width: 42px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-input);
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
    background: var(--content-bg);
}

/* --- Product card --- */
.card-product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-product-price .price-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
}

.card-product-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.card-product-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--content-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* --- Testimonial card --- */
.card-testimonial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-style: italic;
}

/* --- Card invite / member list --- */
.card-member-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.card-member-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0;
}

.card-member-info {
    flex: 1;
    min-width: 0;
}

.card-member-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.card-member-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- Card with gradient banner --- */
.card-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--highlight), var(--magenta));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    position: relative;
}

.card-banner-sm {
    height: 80px;
}

.card-banner-label {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Glow hover card --- */
.card-glow:hover {
    box-shadow: 0 0 20px rgba(126, 197, 225, 0.25), var(--card-shadow-hover);
}

/* --- Card separator / divider --- */
.card-separator {
    height: 1px;
    background: var(--border-color);
    margin: 0 1.25rem;
}

/* --- Card link / CTA at bottom --- */
.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    border-top: 1px solid var(--border-color);
    text-decoration: none;
    transition: all var(--transition);
}

.card-cta:hover {
    background: var(--accent-light);
    color: var(--accent);
    text-decoration: none;
}

.card-cta i {
    transition: transform var(--transition);
}

.card-cta:hover i {
    transform: translateX(3px);
}


/* ================================================================
   SEZIONE 6: KPI CARDS (Dashboard)
   ================================================================ */
.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    transition: all var(--transition);
    height: 100%;
}

.kpi-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.kpi-icon.accent   { background: var(--accent-light);    color: var(--accent); }
.kpi-icon.success  { background: var(--success-light);   color: var(--success); }
.kpi-icon.warning  { background: var(--gold-light);      color: #d49a00; }
.kpi-icon.info     { background: var(--highlight-light);  color: #2a8fb0; }
.kpi-icon.danger   { background: var(--danger-light);    color: var(--danger); }
.kpi-icon.magenta  { background: var(--magenta-light);   color: var(--magenta); }

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kpi-sub .trend-up   { color: var(--success); font-weight: 600; }
.kpi-sub .trend-down { color: var(--danger);  font-weight: 600; }


/* ================================================================
   SEZIONE 7: QUICK ACTIONS
   ================================================================ */
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    height: 100%;
    gap: 0.6rem;
}

.quick-action-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
    border-color: var(--highlight);
    color: var(--accent);
    text-decoration: none;
}

.quick-action-card i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.quick-action-card span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}


/* ================================================================
   SEZIONE 8: PAGE HEADERS
   ================================================================ */
.content-wrapper > .row:first-child h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-wrapper > .row:first-child h1 i {
    font-size: 1.2rem;
    color: var(--highlight);
}

.content-wrapper > .row:first-child hr {
    border-color: var(--border-color);
    opacity: 0.5;
    margin-top: 0.75rem;
    margin-bottom: 0;
}


/* ================================================================
   SEZIONE 9: TABELLE
   ================================================================ */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table > thead > tr > th {
    background-color: #f7fafb;
    border-bottom: 2px solid var(--border-color);
    border-top: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table > tbody > tr > td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #eef3f6;
    color: var(--text-primary);
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

.table-hover > tbody > tr:hover > td {
    background-color: #f5fafb;
}

/* Table Sort */
th.sortable {
    cursor: pointer;
    position: relative;
    transition: background-color 0.15s ease;
    user-select: none;
}

th.sortable:hover {
    background-color: #edf4f7 !important;
}

th.sort-asc,
th.sort-desc {
    background-color: var(--accent-light) !important;
    color: var(--accent) !important;
}

th.sortable .sort-icon {
    transition: opacity 0.15s ease;
}

th.sortable:hover .sort-icon {
    opacity: 0.7 !important;
}

/* Row Click */
tr.row-clickable {
    cursor: pointer;
}

tr.row-clickable:hover td {
    background-color: var(--accent-light) !important;
    transition: background-color 0.15s ease;
}

/* Empty state */
.table tbody tr td.text-center.text-muted {
    padding: 2.5rem 1rem;
    font-size: 0.9rem;
}


/* ================================================================
   SEZIONE 9B: DATA TABLE
   ================================================================ */

/* --- Data Table wrapper --- */
.dt-strike {
    position: relative;
    width: 100%;
}

/* --- Toolbar --- */
.dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
}

.dt-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.dt-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Search input */
.dt-search {
    position: relative;
    max-width: 240px;
}

.dt-search input {
    width: 100%;
    padding: 0.38rem 0.65rem 0.38rem 2rem;
    font-size: 0.82rem;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease;
}

.dt-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.15);
}

.dt-search .dt-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* Filter select */
.dt-filter-select {
    padding: 0.38rem 2rem 0.38rem 0.65rem;
    font-size: 0.82rem;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    appearance: auto;
    min-width: 120px;
}

.dt-filter-select:focus {
    border-color: var(--accent);
}

/* Toolbar button */
.dt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dt-btn:hover {
    border-color: var(--accent);
    background: rgba(126, 197, 225, 0.06);
}

.dt-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(126, 197, 225, 0.1);
}

.dt-btn i {
    font-size: 0.85rem;
}

/* --- Table container (overflow) --- */
.dt-table-wrap {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* --- Data table itself --- */
.dt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.dt-table thead th {
    padding: 0.7rem 1rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1.5px solid var(--border-color);
    background: var(--card-bg);
    white-space: nowrap;
    user-select: none;
    position: relative;
    text-align: left;
}

.dt-table tbody td {
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    transition: background 0.1s ease;
}

.dt-table tbody tr:last-child td {
    border-bottom: none;
}

.dt-table tbody tr:hover td {
    background: rgba(126, 197, 225, 0.04);
}

/* --- Density variants --- */
.dt-table.dt-compact thead th {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
}
.dt-table.dt-compact tbody td {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.dt-table.dt-spacious thead th {
    padding: 1rem 1.25rem;
}
.dt-table.dt-spacious tbody td {
    padding: 0.95rem 1.25rem;
}

/* --- Sortable header --- */
.dt-table th.dt-sortable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.dt-table th.dt-sortable:hover {
    background: rgba(126, 197, 225, 0.08);
}

.dt-table th.dt-sortable .dt-sort-icon {
    display: inline-flex;
    margin-left: 0.3rem;
    font-size: 0.7rem;
    opacity: 0.35;
    transition: opacity 0.15s ease;
    vertical-align: middle;
}

.dt-table th.dt-sortable:hover .dt-sort-icon {
    opacity: 0.6;
}

.dt-table th.dt-sort-asc,
.dt-table th.dt-sort-desc {
    color: var(--accent);
}

.dt-table th.dt-sort-asc .dt-sort-icon,
.dt-table th.dt-sort-desc .dt-sort-icon {
    opacity: 1;
    color: var(--accent);
}

/* --- Row selection checkbox --- */
.dt-table .dt-check {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    vertical-align: middle;
}

/* Selected row */
.dt-table tbody tr.dt-row-selected td {
    background: rgba(126, 197, 225, 0.08);
}

/* --- Status badges --- */
.dt-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 99px;
    white-space: nowrap;
}

.dt-status-success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.dt-status-processing {
    background: rgba(251, 179, 42, 0.12);
    color: #d97706;
}
.dt-status-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.dt-status-pending {
    background: rgba(126, 197, 225, 0.12);
    color: var(--accent);
}

.dt-status .dt-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dt-status-success .dt-status-dot { background: #16a34a; }
.dt-status-processing .dt-status-dot { background: #d97706; }
.dt-status-failed .dt-status-dot { background: #dc2626; }
.dt-status-pending .dt-status-dot { background: var(--accent); }

/* --- Amount/money --- */
.dt-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* --- Column resizer handle --- */
.dt-table th .dt-resizer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    z-index: 2;
    background: transparent;
    transition: background 0.15s ease;
}

.dt-table th .dt-resizer:hover,
.dt-table th .dt-resizer.resizing {
    background: var(--accent);
}

/* --- Expandable row --- */
.dt-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    font-size: 0.75rem;
}

.dt-expand-btn:hover {
    background: rgba(126, 197, 225, 0.1);
    color: var(--accent);
}

.dt-expand-btn i {
    transition: transform 0.2s ease;
}

.dt-expand-btn.expanded i {
    transform: rotate(90deg);
}

.dt-table tr.dt-sub-row td {
    background: rgba(126, 197, 225, 0.03);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.dt-sub-content {
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dt-sub-content .dt-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem 1.5rem;
}

.dt-sub-content .dt-sub-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.dt-sub-content .dt-sub-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Pagination --- */
.dt-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.dt-pagination-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dt-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dt-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.dt-page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--accent);
    background: rgba(126, 197, 225, 0.06);
}

.dt-page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.dt-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dt-page-btn i {
    font-size: 0.75rem;
}

/* Rows per page select */
.dt-per-page {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dt-per-page select {
    padding: 0.25rem 0.4rem;
    font-size: 0.78rem;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

/* --- Column visibility dropdown --- */
.dt-col-toggle {
    position: relative;
}

.dt-col-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1050;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    min-width: 180px;
    display: none;
}

.dt-col-menu.show {
    display: block;
}

.dt-col-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.1s ease;
    user-select: none;
}

.dt-col-menu-item:hover {
    background: var(--hover-bg);
}

.dt-col-menu-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
}

/* --- Density toggle --- */
.dt-density-group {
    display: inline-flex;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    overflow: hidden;
}

.dt-density-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border-right: 1px solid var(--border-color);
}

.dt-density-btn:last-child {
    border-right: none;
}

.dt-density-btn:hover {
    background: rgba(126, 197, 225, 0.06);
}

.dt-density-btn.active {
    background: var(--accent);
    color: #fff;
}

/* --- Export dropdown --- */
.dt-export-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1050;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.35rem;
    min-width: 140px;
    display: none;
}

.dt-export-menu.show {
    display: block;
}

.dt-export-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.1s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

.dt-export-item:hover {
    background: var(--hover-bg);
}

.dt-export-item i {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Editable cell --- */
.dt-table td.dt-editable {
    cursor: pointer;
    position: relative;
}

.dt-table td.dt-editable:hover {
    background: rgba(126, 197, 225, 0.06);
    outline: 1.5px dashed var(--accent);
    outline-offset: -2px;
    border-radius: 4px;
}

.dt-table td.dt-editable input,
.dt-table td.dt-editable select {
    width: 100%;
    padding: 0.3rem 0.5rem;
    font-size: 0.83rem;
    border: 1.5px solid var(--accent);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.15);
}

/* --- Pinned columns --- */
.dt-table th.dt-pin-left,
.dt-table td.dt-pin-left {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--card-bg);
    box-shadow: 2px 0 4px rgba(0,0,0,0.04);
}

.dt-table th.dt-pin-right,
.dt-table td.dt-pin-right {
    position: sticky;
    right: 0;
    z-index: 3;
    background: var(--card-bg);
    box-shadow: -2px 0 4px rgba(0,0,0,0.04);
}

/* --- Empty state --- */
.dt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    text-align: center;
}

.dt-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.dt-empty-text {
    font-size: 0.88rem;
    font-weight: 500;
}

.dt-empty-sub {
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

/* --- Product avatar (for product table) --- */
.dt-product {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dt-product-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    flex-shrink: 0;
}

.dt-product-name {
    font-weight: 600;
    font-size: 0.83rem;
}

/* --- Rating stars --- */
.dt-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.75rem;
    color: #fbbf24;
}

.dt-rating-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 0.3rem;
}

/* --- Availability badge --- */
.dt-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 99px;
}

.dt-avail-instock {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
.dt-avail-limited {
    background: rgba(251, 179, 42, 0.1);
    color: #d97706;
}
.dt-avail-out {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* --- Drag handle --- */
.dt-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 0.25rem;
    opacity: 0.4;
    transition: opacity 0.15s ease;
}

.dt-drag-handle:hover {
    opacity: 1;
    color: var(--accent);
}

/* --- Progress bar in cell --- */
.dt-progress {
    width: 60px;
    height: 6px;
    background: var(--border-color);
    border-radius: 99px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.dt-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* --- Responsive stacked (mobile) --- */
@media (max-width: 640px) {
    .dt-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .dt-toolbar-left,
    .dt-toolbar-right {
        width: 100%;
    }
    .dt-search {
        max-width: 100%;
    }
    .dt-pagination {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}


/* ================================================================
   SEZIONE 10: BADGES
   ================================================================ */

/* --- Base --- */
.badge {
    font-weight: 500;
    font-size: 0.72rem;
    padding: 0.35em 0.7em;
    border-radius: 6px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    vertical-align: middle;
    transition: all var(--transition);
    line-height: 1.4;
}

/* --- Soft / Default color variants --- */
.badge.bg-success   { background-color: var(--success-light) !important;   color: var(--success) !important; }
.badge.bg-warning   { background-color: var(--gold-light) !important;      color: #9a7000 !important; }
.badge.bg-danger    { background-color: var(--danger-light) !important;    color: var(--danger) !important; }
.badge.bg-info      { background-color: var(--highlight-light) !important; color: #2a8fb0 !important; }
.badge.bg-primary   { background-color: var(--accent-light) !important;    color: var(--accent) !important; }
.badge.bg-secondary { background-color: #eef3f6 !important;               color: var(--text-secondary) !important; }

/* --- Solid variants (filled background) --- */
.badge-solid.bg-primary   { background: var(--accent) !important;  color: #fff !important; }
.badge-solid.bg-success   { background: var(--success) !important; color: #fff !important; }
.badge-solid.bg-danger    { background: var(--danger) !important;  color: #fff !important; }
.badge-solid.bg-warning   { background: var(--gold) !important;    color: #fff !important; }
.badge-solid.bg-info      { background: var(--highlight) !important; color: var(--accent) !important; }
.badge-solid.bg-secondary { background: var(--text-secondary) !important; color: #fff !important; }
.badge-solid.bg-magenta   { background: var(--magenta) !important; color: #fff !important; }

/* --- Outline variants --- */
.badge-outline {
    background: transparent !important;
    border: 1px solid currentColor;
}

.badge-outline.bg-primary   { color: var(--accent) !important; border-color: var(--accent) !important; background: transparent !important; }
.badge-outline.bg-success   { color: var(--success) !important; border-color: var(--success) !important; background: transparent !important; }
.badge-outline.bg-danger    { color: var(--danger) !important; border-color: var(--danger) !important; background: transparent !important; }
.badge-outline.bg-warning   { color: #9a7000 !important; border-color: #d49a00 !important; background: transparent !important; }
.badge-outline.bg-info      { color: #2a8fb0 !important; border-color: var(--highlight) !important; background: transparent !important; }
.badge-outline.bg-secondary { color: var(--text-secondary) !important; border-color: var(--border-input) !important; background: transparent !important; }

/* --- Rounded / Pill --- */
.badge-pill {
    border-radius: 50px;
    padding: 0.35em 0.85em;
}

/* --- Sizes --- */
.badge-sm {
    font-size: 0.62rem;
    padding: 0.25em 0.55em;
}

.badge-lg {
    font-size: 0.82rem;
    padding: 0.45em 0.9em;
}

/* --- Badge with count (circular) --- */
.badge-count {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.badge-count.badge-lg {
    min-width: 28px;
    height: 28px;
    font-size: 0.78rem;
}

/* --- Badge with icon --- */
.badge i,
.badge .bi {
    font-size: 0.85em;
    line-height: 1;
}

/* --- Badge as link --- */
a.badge {
    text-decoration: none;
    cursor: pointer;
}

a.badge:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* --- Closable badge --- */
.badge-closable {
    padding-right: 0.35em;
}

.badge-close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 0.7em;
    cursor: pointer;
    padding: 0.15em 0.2em;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity var(--transition), background var(--transition);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.badge-solid .badge-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Selectable badge (toggle) --- */
.badge-selectable {
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--border-input);
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
}

.badge-selectable:hover {
    border-color: var(--highlight);
    background: var(--accent-light) !important;
    color: var(--accent) !important;
}

.badge-selectable.active {
    border-color: var(--accent);
    background: var(--accent) !important;
    color: #fff !important;
}

/* --- Gradient badge --- */
.badge-gradient {
    border: none;
    color: #fff !important;
}

.badge-gradient-primary {
    background: linear-gradient(135deg, var(--accent), #0a5a7a) !important;
}

.badge-gradient-magenta {
    background: linear-gradient(135deg, var(--magenta), #d4368f) !important;
}

.badge-gradient-success {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
}

.badge-gradient-gold {
    background: linear-gradient(135deg, #d49a00, var(--gold)) !important;
    color: #fff !important;
}

.badge-gradient-highlight {
    background: linear-gradient(135deg, var(--highlight), #a7d8eb) !important;
    color: var(--accent) !important;
}

/* --- Gradient Outline --- */
.badge-gradient-outline {
    background: transparent !important;
    border: 2px solid transparent;
    background-clip: padding-box !important;
    position: relative;
}

.badge-gradient-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--accent), var(--magenta));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.badge-gradient-outline.gradient-primary::before {
    background: linear-gradient(135deg, var(--accent), #0a5a7a);
}

.badge-gradient-outline.gradient-magenta::before {
    background: linear-gradient(135deg, var(--magenta), var(--highlight));
}

.badge-gradient-outline.gradient-success::before {
    background: linear-gradient(135deg, #16a34a, var(--highlight));
}

/* --- Dot badge (status indicator) --- */
.badge-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.badge-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-dot.dot-success::before  { background: var(--success); }
.badge-dot.dot-danger::before   { background: var(--danger); }
.badge-dot.dot-warning::before  { background: #d49a00; }
.badge-dot.dot-info::before     { background: var(--highlight); }
.badge-dot.dot-primary::before  { background: var(--accent); }
.badge-dot.dot-magenta::before  { background: var(--magenta); }
.badge-dot.dot-muted::before    { background: var(--text-muted); }

/* Animated pulsing dot */
.badge-dot.dot-pulse::before {
    animation: badge-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- Status badges (with icons) --- */
.badge-status {
    font-weight: 600;
    padding: 0.4em 0.75em;
    gap: 0.35em;
}

.badge-status i {
    font-size: 0.78em;
}

/* --- Avatar badge wrapper --- */
.badge-avatar-wrapper {
    position: relative;
    display: inline-flex;
}

.badge-avatar-wrapper .badge-avatar-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.badge-avatar-indicator.online  { background: var(--success); }
.badge-avatar-indicator.offline { background: var(--text-muted); }
.badge-avatar-indicator.busy    { background: var(--danger); }
.badge-avatar-indicator.away    { background: var(--gold); }

.badge-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.78rem;
    color: #fff;
    background: linear-gradient(135deg, var(--highlight), var(--magenta));
}

.badge-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Avatar + name + badge combo */
.badge-user-combo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

.badge-user-combo .badge-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
}

/* --- Notification badge (on icon) --- */
.badge-notification-wrapper {
    position: relative;
    display: inline-flex;
}

.badge-notification-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    background: var(--danger);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--card-bg);
    line-height: 1;
}


/* ================================================================
   SEZIONE 10B: BREADCRUMB
   ================================================================ */

/* --- Base Breadcrumb --- */
.breadcrumb-strike {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-strike li {
    display: flex;
    align-items: center;
}

.breadcrumb-strike li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
}

.breadcrumb-strike li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb-strike li.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Separators --- */
.breadcrumb-strike .bc-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    user-select: none;
}

.breadcrumb-strike .bc-separator.slash::before {
    content: '/';
    font-size: 0.85rem;
}

.breadcrumb-strike .bc-separator.chevron::before {
    content: '\203A'; /* › */
    font-size: 1.1rem;
    line-height: 1;
}

.breadcrumb-strike .bc-separator.arrow::before {
    content: '\2192'; /* → */
    font-size: 0.8rem;
}

.breadcrumb-strike .bc-separator.dot::before {
    content: '\00B7'; /* · */
    font-size: 1.4rem;
    font-weight: 700;
}

.breadcrumb-strike .bc-separator.pipe::before {
    content: '|';
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Ellipsis (collapsed) --- */
.breadcrumb-strike .bc-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 2px;
    line-height: 1;
}

.breadcrumb-strike .bc-ellipsis:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

/* --- With Icons --- */
.breadcrumb-strike li a i,
.breadcrumb-strike li i {
    font-size: 0.9em;
    margin-right: 0.3em;
    opacity: 0.8;
}

.breadcrumb-strike li a:hover i {
    opacity: 1;
}

/* --- Breadcrumb Variants --- */

/* Variant: Contained (card-like wrapper) */
.breadcrumb-contained {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 0.6rem 1.1rem;
    box-shadow: var(--card-shadow);
}

/* Variant: Soft background */
.breadcrumb-soft {
    background: var(--content-bg);
    border-radius: 10px;
    padding: 0.55rem 1rem;
}

/* Variant: Underline links */
.breadcrumb-underline li a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-input);
}

.breadcrumb-underline li a:hover {
    text-decoration-color: var(--accent);
}

/* Variant: Pill-shaped items */
.breadcrumb-pills li a,
.breadcrumb-pills li.active span {
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    transition: all var(--transition);
}

.breadcrumb-pills li a {
    background: var(--content-bg);
    color: var(--text-secondary);
}

.breadcrumb-pills li a:hover {
    background: var(--accent-light);
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb-pills li.active span {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* Variant: Highlighted current page */
.breadcrumb-highlight li.active {
    background: var(--accent-light);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    color: var(--accent);
    font-weight: 600;
}

/* Variant: Large breadcrumb */
.breadcrumb-lg {
    font-size: 1rem;
}

.breadcrumb-lg .bc-separator {
    margin: 0 0.65rem;
}

/* Variant: Small breadcrumb */
.breadcrumb-sm {
    font-size: 0.75rem;
}

.breadcrumb-sm .bc-separator {
    margin: 0 0.35rem;
    font-size: 0.65rem;
}

/* --- Dropdown breadcrumb item --- */
.bc-dropdown {
    position: relative;
    display: inline-flex;
}

.bc-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color var(--transition);
    font-family: var(--font-family);
}

.bc-dropdown-toggle:hover {
    color: var(--accent);
}

.bc-dropdown-toggle i {
    font-size: 0.75em;
    transition: transform var(--transition);
}

.bc-dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.bc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
    min-width: 160px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--card-shadow-hover);
    padding: 0.35rem;
    z-index: 100;
    display: none;
    animation: bc-dropdown-in 0.15s ease;
}

.bc-dropdown-menu.show {
    display: block;
}

@keyframes bc-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bc-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
}

.bc-dropdown-menu a:hover {
    background: var(--accent-light);
    color: var(--accent);
    text-decoration: none;
}

.bc-dropdown-menu a i {
    font-size: 0.9em;
    width: 18px;
    text-align: center;
}


/* ================================================================
   SEZIONE 11: BOTTONI
   ================================================================ */

/* --- Base --- */
.btn {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    transition: all var(--transition);
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    position: relative;
    overflow: hidden;
}

/* --- Sizes --- */
.btn-xs {
    font-size: 0.7rem;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    gap: 0.3em;
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: 7px;
}

.btn-lg {
    font-size: 0.95rem;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
}

/* --- Primary --- */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 1px 3px rgba(1, 47, 70, 0.15);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 2px 8px rgba(1, 47, 70, 0.25);
}

/* --- Success --- */
.btn-success {
    background: var(--success);
    border-color: var(--success);
}

/* --- Info --- */
.btn-info {
    background: var(--highlight);
    border-color: var(--highlight);
    color: var(--accent);
}

.btn-info:hover {
    color: white;
    background: #5db8d6;
    border-color: #5db8d6;
}

/* --- Destructive (Danger) --- */
.btn-destructive,
.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-destructive:hover,
.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* --- Ghost --- */
.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--content-bg);
    color: var(--text-primary);
}

/* --- Link style button --- */
.btn-link-style {
    background: transparent;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0.45rem 0.5rem;
    box-shadow: none;
}

.btn-link-style:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
    background: transparent;
}

/* --- Outline variants --- */
.btn-outline-primary {
    color: var(--accent);
    border-color: var(--border-input);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-input);
}

.btn-outline-secondary:hover {
    background: var(--accent-light);
    border-color: var(--border-input);
    color: var(--text-primary);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: #fecaca;
}

.btn-outline-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-outline-success {
    color: var(--success);
    border-color: #bbf7d0;
}

.btn-outline-success:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* --- Soft variants (light background) --- */
.btn-soft-primary {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--accent);
}

.btn-soft-primary:hover {
    background: #c5e4f2;
    color: var(--accent);
}

.btn-soft-danger {
    background: var(--danger-light);
    border-color: var(--danger-light);
    color: var(--danger);
}

.btn-soft-danger:hover {
    background: #fde8e8;
    color: var(--danger);
}

.btn-soft-success {
    background: var(--success-light);
    border-color: var(--success-light);
    color: var(--success);
}

.btn-soft-success:hover {
    background: #dcfce7;
    color: var(--success);
}

.btn-soft-warning {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #9a7000;
}

.btn-soft-warning:hover {
    background: #ffedd5;
    color: #9a7000;
}

/* --- Icon-only button --- */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    gap: 0;
}

.btn-icon.btn-sm {
    width: 30px;
    height: 30px;
}

.btn-icon.btn-lg {
    width: 44px;
    height: 44px;
}

.btn-icon.btn-xs {
    width: 26px;
    height: 26px;
}

/* --- Icon-only rounded (circle) --- */
.btn-icon-circle {
    border-radius: 50%;
}

/* --- Button with badge/count --- */
.btn .btn-badge {
    font-size: 0.6em;
    padding: 0.15em 0.45em;
    border-radius: 50px;
    background: rgba(255,255,255,0.25);
    font-weight: 700;
    min-width: 1.4em;
    text-align: center;
    line-height: 1.4;
}

.btn-outline-primary .btn-badge,
.btn-outline-secondary .btn-badge,
.btn-ghost .btn-badge {
    background: var(--accent);
    color: #fff;
}

/* --- Gradient button --- */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--accent), #0a5a7a);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(1, 47, 70, 0.2);
}

.btn-gradient-primary:hover {
    box-shadow: 0 4px 16px rgba(1, 47, 70, 0.3);
    color: #fff;
    filter: brightness(1.1);
}

.btn-gradient-magenta {
    background: linear-gradient(135deg, var(--magenta), #d4368f);
    border: none;
    color: #fff;
}

.btn-gradient-magenta:hover {
    filter: brightness(1.1);
    color: #fff;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    color: #fff;
}

.btn-gradient-success:hover {
    filter: brightness(1.1);
    color: #fff;
}

/* --- Loading / Spinner button --- */
.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading .btn-spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* --- Disabled --- */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Button with left/right icon spacing --- */
.btn i,
.btn .bi {
    font-size: 1em;
    line-height: 1;
}

/* --- Copy button (with feedback) --- */
.btn-copy {
    position: relative;
}

.btn-copy .copy-feedback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.btn-copy.copied .copy-feedback {
    opacity: 1;
}

/* --- Social buttons --- */
.btn-social {
    font-weight: 500;
    gap: 0.5em;
}

.btn-social-google {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-social-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
    color: var(--text-primary);
}

.btn-social-github {
    background: #24292e;
    border-color: #24292e;
    color: #fff;
}

.btn-social-github:hover {
    background: #1b1f23;
    color: #fff;
}

.btn-social-x {
    background: #000;
    border-color: #000;
    color: #fff;
}

.btn-social-x:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-social-facebook {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.btn-social-facebook:hover {
    background: #1565c0;
    color: #fff;
}

/* --- Button with avatar/user --- */
.btn-user {
    gap: 0.5rem;
    padding-left: 0.35rem;
}

.btn-user .btn-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight), var(--magenta));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Shimmer / Shine effect --- */
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: none;
    animation: btn-shimmer 2.5s ease-in-out infinite;
}

@keyframes btn-shimmer {
    0%   { left: -100%; }
    50%  { left: 150%; }
    100% { left: 150%; }
}

/* --- Ring hover effect --- */
.btn-ring:hover {
    box-shadow: 0 0 0 3px var(--accent-light), 0 0 0 5px var(--accent);
}

.btn-ring.btn-danger:hover,
.btn-ring.btn-destructive:hover {
    box-shadow: 0 0 0 3px var(--danger-light), 0 0 0 5px var(--danger);
}

.btn-ring.btn-success:hover {
    box-shadow: 0 0 0 3px var(--success-light), 0 0 0 5px var(--success);
}

/* --- Ripple effect --- */
.btn-ripple {
    overflow: hidden;
}

.btn-ripple .ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: btn-ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes btn-ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Bounce on click --- */
.btn-bounce:active {
    animation: btn-bounce-anim 0.35s ease;
}

@keyframes btn-bounce-anim {
    0%   { transform: scale(1); }
    30%  { transform: scale(0.92); }
    60%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Pulse / heartbeat --- */
.btn-pulse {
    animation: btn-pulse-anim 2s ease-in-out infinite;
}

@keyframes btn-pulse-anim {
    0%, 100% { box-shadow: 0 0 0 0 rgba(1, 47, 70, 0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(1, 47, 70, 0); }
}

.btn-pulse.btn-danger {
    animation-name: btn-pulse-danger;
}

@keyframes btn-pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* --- Approve / Reject pair --- */
.btn-pair {
    display: inline-flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.btn-pair .btn {
    border-radius: 0;
    border: none;
}

.btn-pair .btn:first-child {
    border-radius: 8px 0 0 8px;
}

.btn-pair .btn:last-child {
    border-radius: 0 8px 8px 0;
}

/* --- Undo/Redo pair --- */
.btn-group-segmented {
    display: inline-flex;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.btn-group-segmented .btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
}

.btn-group-segmented .btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

.btn-group-segmented .btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

/* --- Cancel / Save pair --- */
.btn-action-pair {
    display: inline-flex;
    gap: 0.5rem;
}

/* --- Button group standard --- */
.btn-group .btn {
    border-radius: 7px;
    margin-left: 3px;
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group {
    gap: 0;
}

/* --- Toggle / Bookmark button --- */
.btn-toggle {
    transition: all var(--transition);
}

.btn-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-toggle.active:hover {
    background: var(--accent-hover);
}

/* --- Full-width / Block button --- */
.btn-block {
    width: 100%;
}

/* --- Input URL with copy --- */
.btn-input-group {
    display: flex;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}

.btn-input-group input {
    flex: 1;
    border: none;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: transparent;
    outline: none;
    font-family: var(--font-family);
    min-width: 0;
}

.btn-input-group .btn {
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border-input);
    flex-shrink: 0;
}

/* --- Notification button --- */
.btn-notification {
    position: relative;
}

.btn-notification .btn-notif-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    background: var(--danger);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--card-bg);
    line-height: 1;
}

/* --- "Go to" button with arrow --- */
.btn-goto i.bi-arrow-right {
    transition: transform var(--transition);
}

.btn-goto:hover i.bi-arrow-right {
    transform: translateX(3px);
}


/* ================================================================
   SEZIONE 11B: BUTTON GROUP
   ================================================================ */

/* --- Strike Button Group (connected) --- */
.btngroup-strike {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.btngroup-strike .btn {
    border: none;
    border-radius: 0;
    margin: 0;
    position: relative;
    font-weight: 500;
}

.btngroup-strike .btn + .btn {
    border-left: 1px solid var(--border-color);
}

.btngroup-strike .btn:hover {
    z-index: 1;
}

/* --- Variant: Outline --- */
.btngroup-outline {
    background: transparent;
}

.btngroup-outline .btn {
    background: transparent;
    color: var(--text-secondary);
}

.btngroup-outline .btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.btngroup-outline .btn.active {
    background: var(--accent);
    color: #fff;
}

/* --- Variant: Ghost (no outer border) --- */
.btngroup-ghost {
    border: none;
    background: transparent;
    gap: 2px;
}

.btngroup-ghost .btn {
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
}

.btngroup-ghost .btn + .btn {
    border-left: none;
}

.btngroup-ghost .btn:hover {
    background: var(--content-bg);
    color: var(--text-primary);
}

.btngroup-ghost .btn.active {
    background: var(--accent-light);
    color: var(--accent);
}

/* --- Variant: Pill group --- */
.btngroup-pill {
    border-radius: 50px;
}

/* --- Variant: Filled / Solid --- */
.btngroup-filled {
    border: none;
    background: var(--content-bg);
    padding: 3px;
    gap: 2px;
    border-radius: 10px;
}

.btngroup-filled .btn {
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
}

.btngroup-filled .btn + .btn {
    border-left: none;
}

.btngroup-filled .btn:hover {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

.btngroup-filled .btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    font-weight: 600;
}

/* --- Variant: Colored active --- */
.btngroup-colored .btn.active {
    background: var(--accent);
    color: #fff;
}

/* --- With counter/badge --- */
.btngroup-strike .btn .btngroup-badge {
    font-size: 0.6em;
    padding: 0.1em 0.4em;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    min-width: 1.3em;
    text-align: center;
    line-height: 1.4;
    margin-left: 0.3em;
}

.btngroup-strike .btn.active .btngroup-badge {
    background: rgba(255,255,255,0.25);
}

/* --- With separators (dots) --- */
.btngroup-dotted .btn + .btn::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.btngroup-dotted .btn + .btn {
    border-left: none;
    padding-left: 0.85rem;
}

/* --- Vertical --- */
.btngroup-vertical {
    flex-direction: column;
    border-radius: 10px;
}

.btngroup-vertical .btn + .btn {
    border-left: none;
    border-top: 1px solid var(--border-color);
}

/* --- Icon-only group --- */
.btngroup-icons .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btngroup-icons.btngroup-sm .btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

/* --- Size variants --- */
.btngroup-sm .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
}

.btngroup-lg .btn {
    font-size: 0.95rem;
    padding: 0.55rem 1.2rem;
}

/* --- Split button (main + dropdown) --- */
.btngroup-split {
    border: none;
    background: transparent;
}

.btngroup-split .btn-main {
    border-radius: 8px 0 0 8px;
    border: none;
}

.btngroup-split .btn-split-toggle {
    border-radius: 0 8px 8px 0;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding: 0.45rem 0.5rem;
}

.btngroup-split .btn-split-toggle i {
    font-size: 0.75em;
    transition: transform var(--transition);
}

.btngroup-split .btn-split-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* --- Number stepper --- */
.btngroup-stepper {
    border-radius: 8px;
    align-items: center;
}

.btngroup-stepper .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btngroup-stepper .btn:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.btngroup-stepper .stepper-value {
    min-width: 50px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 0.35rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.btngroup-stepper .stepper-value .stepper-unit {
    font-weight: 400;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- Zoom controls --- */
.btngroup-zoom .stepper-value {
    min-width: 42px;
}

/* --- Pagination-like group --- */
.btngroup-pagination .btn {
    min-width: 36px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.btngroup-pagination .btn.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.btngroup-pagination .btn:hover:not(.active) {
    background: var(--accent-light);
    color: var(--accent);
}

/* --- Social group --- */
.btngroup-social {
    gap: 0;
}

.btngroup-social .btn {
    font-size: 1rem;
}

/* --- Toggle group with animated slide --- */
.btngroup-toggle {
    position: relative;
    border: none;
    background: var(--content-bg);
    padding: 3px;
    gap: 0;
    border-radius: 10px;
}

.btngroup-toggle .btn {
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    z-index: 1;
    transition: color var(--transition);
}

.btngroup-toggle .btn + .btn {
    border-left: none;
}

.btngroup-toggle .btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.btngroup-toggle .toggle-indicator {
    position: absolute;
    top: 3px;
    height: calc(100% - 6px);
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: left 0.25s ease, width 0.25s ease;
    z-index: 0;
}

/* --- Like / Dislike pair --- */
.btngroup-reaction {
    border-radius: 50px;
}

.btngroup-reaction .btn {
    gap: 0.35em;
    font-size: 0.82rem;
}

.btngroup-reaction .btn.active.btn-like {
    background: var(--success-light);
    color: var(--success);
}

.btngroup-reaction .btn.active.btn-dislike {
    background: var(--danger-light);
    color: var(--danger);
}

/* --- Prev / Next pair --- */
.btngroup-nav .btn {
    gap: 0.4em;
}

.btngroup-nav .btn i {
    transition: transform var(--transition);
}

.btngroup-nav .btn:first-child:hover i {
    transform: translateX(-2px);
}

.btngroup-nav .btn:last-child:hover i {
    transform: translateX(2px);
}

/* --- Upload / Download / Share trio --- */
.btngroup-actions .btn {
    gap: 0.4em;
    font-weight: 500;
}


/* ================================================================
   SEZIONE 12: FORMS
   ================================================================ */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--border-input);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.2);
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

/* Filter Card */
.card .card-body form.row {
    align-items: flex-end;
}


/* ================================================================
   SEZIONE 12B: CHECKBOX
   ================================================================ */

/* --- Base Checkbox --- */
.check-strike {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.check-strike input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-strike .check-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--border-input);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: var(--card-bg);
    margin-top: 1px;
    position: relative;
    flex-shrink: 0;
}

.check-strike .check-box i {
    font-size: 0.65rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.check-strike input:checked + .check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.check-strike input:checked + .check-box i {
    opacity: 1;
    transform: scale(1);
}

.check-strike input:focus-visible + .check-box {
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.3);
}

.check-strike:hover .check-box {
    border-color: var(--accent);
}

.check-strike .check-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.check-strike .check-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.4;
}

/* --- Disabled --- */
.check-strike.check-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Rounded (circle) --- */
.check-strike .check-box.check-round {
    border-radius: 50%;
}

/* --- Sizes --- */
.check-strike.check-sm .check-box {
    width: 15px;
    height: 15px;
    min-width: 15px;
}

.check-strike.check-sm .check-box i {
    font-size: 0.55rem;
}

.check-strike.check-sm .check-label {
    font-size: 0.78rem;
}

.check-strike.check-lg .check-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 5px;
}

.check-strike.check-lg .check-box i {
    font-size: 0.78rem;
}

.check-strike.check-lg .check-label {
    font-size: 0.92rem;
}

/* --- Color variants --- */
.check-strike.check-success input:checked + .check-box {
    background: var(--success);
    border-color: var(--success);
}

.check-strike.check-danger input:checked + .check-box {
    background: var(--danger);
    border-color: var(--danger);
}

.check-strike.check-magenta input:checked + .check-box {
    background: var(--magenta);
    border-color: var(--magenta);
}

.check-strike.check-warning input:checked + .check-box {
    background: var(--gold);
    border-color: var(--gold);
}

.check-strike.check-info input:checked + .check-box {
    background: var(--highlight);
    border-color: var(--highlight);
}

.check-strike.check-info input:checked + .check-box i {
    color: var(--accent);
}

/* --- Indeterminate --- */
.check-strike .check-box.indeterminate {
    background: var(--accent);
    border-color: var(--accent);
}

.check-strike .check-box.indeterminate::after {
    content: '';
    width: 8px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    position: absolute;
}

/* --- Strikethrough when checked --- */
.check-strike.check-strikethrough input:checked ~ .check-content .check-label {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* --- Card / Bordered checkbox --- */
.check-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    transition: all var(--transition);
}

.check-card:hover {
    border-color: var(--highlight);
    background: var(--accent-light);
}

.check-card input:checked ~ .check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.check-card.check-card-active {
    border-color: var(--accent);
    background: var(--accent-light);
}

/* --- Inline group --- */
.check-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Stacked group --- */
.check-group-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* --- Card group (grid) --- */
.check-group-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.check-group-cards .check-card {
    flex: 1;
    min-width: 120px;
}

/* --- Chip / Pill checkbox --- */
.check-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    user-select: none;
    position: relative;
}

.check-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-chip:hover {
    border-color: var(--highlight);
    background: var(--accent-light);
}

.check-chip.active,
.check-chip:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.check-chip .check-chip-icon {
    font-size: 0.75em;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.15s ease;
}

.check-chip.active .check-chip-icon,
.check-chip:has(input:checked) .check-chip-icon {
    opacity: 1;
    width: auto;
    margin-right: 0.15em;
}

/* --- Toggle switch style checkbox --- */
.check-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.check-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-switch .switch-track {
    width: 38px;
    height: 22px;
    border-radius: 50px;
    background: var(--border-input);
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.check-switch .switch-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.check-switch input:checked + .switch-track {
    background: var(--accent);
}

.check-switch input:checked + .switch-track .switch-thumb {
    transform: translateX(16px);
}

.check-switch input:focus-visible + .switch-track {
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.3);
}

.check-switch .check-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.check-switch .check-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* --- Parent/Child (tree) --- */
.check-tree {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-tree-children {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-left: 2px solid var(--border-color);
    margin-left: 0.5rem;
    margin-top: 0.25rem;
}

/* --- Animated checkmark (SVG draw) --- */
.check-strike .check-box .check-svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.check-strike input:checked + .check-box .check-svg {
    opacity: 1;
    transform: scale(1);
}

.check-strike .check-box .check-svg path {
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    transition: stroke-dashoffset 0.25s ease 0.05s;
}

.check-strike input:checked + .check-box .check-svg path {
    stroke-dashoffset: 0;
}

/* --- List / Todo style --- */
.check-todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.check-todo-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.check-todo-item:last-child {
    border-bottom: none;
}

/* --- Form validation states --- */
.check-strike.check-error .check-box {
    border-color: var(--danger);
}

.check-strike.check-error .check-label {
    color: var(--danger);
}

.check-error-msg {
    font-size: 0.72rem;
    color: var(--danger);
    margin-top: 0.25rem;
    padding-left: 1.65rem;
}


/* ================================================================
   SEZIONE 12C: COMBOBOX
   ================================================================ */

/* --- Combobox Container --- */
.combobox-strike {
    position: relative;
    width: 100%;
}

/* --- Trigger Button --- */
.combobox-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 0.5rem;
    text-align: left;
    outline: none;
    user-select: none;
}

.combobox-trigger:hover {
    border-color: var(--accent);
}

.combobox-trigger:focus,
.combobox-trigger.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.2);
}

.combobox-trigger .combobox-placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.combobox-trigger .combobox-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.combobox-trigger.active .combobox-chevron {
    transform: rotate(180deg);
}

.combobox-trigger .combobox-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combobox-trigger .combobox-value img,
.combobox-trigger .combobox-value .combobox-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.combobox-trigger .combobox-value .combobox-flag {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.combobox-trigger .combobox-value i {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* --- Clear button on trigger --- */
.combobox-trigger .combobox-clear {
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.15s ease;
    flex-shrink: 0;
    display: none;
}

.combobox-trigger.has-value .combobox-clear {
    display: inline-flex;
}

.combobox-trigger .combobox-clear:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* --- Dropdown Panel --- */
.combobox-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    overflow: hidden;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

.combobox-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animation: slide-in from bottom */
.combobox-dropdown.anim-slide {
    transform: translateY(12px);
}
.combobox-dropdown.anim-slide.open {
    transform: translateY(0);
}

/* Animation: zoom-in */
.combobox-dropdown.anim-zoom {
    transform: scale(0.92);
    transform-origin: top center;
}
.combobox-dropdown.anim-zoom.open {
    transform: scale(1);
}

/* --- Search Input inside dropdown --- */
.combobox-search-wrap {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 2;
}

.combobox-search-wrap .combobox-search {
    width: 100%;
    padding: 0.4rem 0.65rem 0.4rem 2rem;
    font-size: 0.82rem;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--body-bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease;
}

.combobox-search-wrap .combobox-search:focus {
    border-color: var(--accent);
}

.combobox-search-wrap .combobox-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: var(--text-muted);
    pointer-events: none;
}

.combobox-search-wrap {
    position: relative;
}

/* --- Options List --- */
.combobox-options {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* --- Option Group --- */
.combobox-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.5rem 0.65rem 0.25rem;
    user-select: none;
}

.combobox-group-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0.5rem;
}

/* --- Option Item --- */
.combobox-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.83rem;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    position: relative;
}

.combobox-option:hover,
.combobox-option.highlighted {
    background: var(--hover-bg);
}

.combobox-option.selected {
    background: rgba(126, 197, 225, 0.1);
    font-weight: 600;
}

.combobox-option.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.combobox-option .combobox-opt-check {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.combobox-option.selected .combobox-opt-check {
    opacity: 1;
}

/* Custom check icon variant */
.combobox-option .combobox-opt-check.check-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #fff;
    background: transparent;
    transition: all 0.15s ease;
}

.combobox-option.selected .combobox-opt-check.check-circle {
    background: var(--accent);
    border-color: var(--accent);
    opacity: 1;
}

.combobox-option .combobox-opt-icon {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.combobox-option .combobox-opt-flag {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.combobox-option .combobox-opt-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.combobox-option .combobox-opt-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.combobox-option .combobox-opt-info .combobox-opt-label {
    font-size: 0.83rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combobox-option .combobox-opt-info .combobox-opt-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Checkbox variant in option --- */
.combobox-option .combobox-opt-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.combobox-option .combobox-opt-checkbox i {
    font-size: 0.6rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.combobox-option.selected .combobox-opt-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.combobox-option.selected .combobox-opt-checkbox i {
    opacity: 1;
    transform: scale(1);
}

/* --- Multi-select Tags in Trigger --- */
.combobox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.combobox-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(126, 197, 225, 0.15);
    color: var(--accent);
    border-radius: 5px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combobox-tag .combobox-tag-remove {
    font-size: 0.6rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.combobox-tag .combobox-tag-remove:hover {
    opacity: 1;
    color: var(--danger);
}

/* Tags: expandable variant — collapsed shows first N + count */
.combobox-tags-collapsed .combobox-tag-more {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--border-color);
    color: var(--text-secondary);
    border-radius: 5px;
    white-space: nowrap;
}

/* Outline tag variant */
.combobox-tag-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.combobox-tag-outline .combobox-tag-remove {
    font-size: 0.65rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.15s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.combobox-tag-outline .combobox-tag-remove:hover {
    opacity: 1;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Count badge variant */
.combobox-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    min-width: 22px;
    flex-shrink: 0;
}

/* --- Empty state --- */
.combobox-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Add button footer --- */
.combobox-footer {
    padding: 0.4rem 0.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.combobox-footer .combobox-add-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.4rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.combobox-footer .combobox-add-btn:hover {
    background: rgba(126, 197, 225, 0.1);
}

.combobox-footer .combobox-add-btn i {
    font-size: 0.85rem;
}

/* --- Timezone variant extras --- */
.combobox-option .combobox-opt-tz {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Highlight matched text --- */
.combobox-highlight {
    background: rgba(126, 197, 225, 0.25);
    border-radius: 2px;
    padding: 0 1px;
}

/* --- Disabled trigger --- */
.combobox-trigger:disabled,
.combobox-trigger.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}


/* ================================================================
   SEZIONE 12D: PAGINATION
   ================================================================ */

/* --- Base wrapper --- */
.pag-strike {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    user-select: none;
}

/* --- Page item (button / link) --- */
.pag-strike .pag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    gap: 0.3rem;
    white-space: nowrap;
    outline: none;
}

.pag-strike .pag-item:hover:not(.active):not(.disabled):not(.pag-ellipsis) {
    border-color: var(--accent);
    background: rgba(126, 197, 225, 0.06);
}

.pag-strike .pag-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.2);
}

.pag-strike .pag-item.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pag-strike .pag-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pag-strike .pag-item i {
    font-size: 0.75rem;
}

/* Ellipsis */
.pag-strike .pag-ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 28px;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* --- Variant: Ghost (no borders) --- */
.pag-ghost .pag-item {
    border-color: transparent;
    background: transparent;
}

.pag-ghost .pag-item:hover:not(.active):not(.disabled):not(.pag-ellipsis) {
    background: var(--hover-bg);
    border-color: transparent;
}

.pag-ghost .pag-item.active {
    background: var(--accent);
    color: #fff;
}

/* --- Variant: Outline (current page outline) --- */
.pag-outline .pag-item.active {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Variant: Soft (rounded, colored bg) --- */
.pag-soft .pag-item {
    border: none;
    background: transparent;
    border-radius: 8px;
}

.pag-soft .pag-item:hover:not(.active):not(.disabled):not(.pag-ellipsis) {
    background: var(--hover-bg);
}

.pag-soft .pag-item.active {
    background: rgba(126, 197, 225, 0.15);
    color: var(--accent);
}

/* --- Variant: Pill --- */
.pag-pill .pag-item {
    border-radius: 99px;
}

/* --- Variant: Rounded (circle) --- */
.pag-rounded .pag-item {
    border-radius: 50%;
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
}

/* --- Variant: Attached (connected) --- */
.pag-attached {
    gap: 0;
}

.pag-attached .pag-item {
    border-radius: 0;
    border-right: none;
}

.pag-attached .pag-item:first-child {
    border-radius: 7px 0 0 7px;
}

.pag-attached .pag-item:last-child {
    border-radius: 0 7px 7px 0;
    border-right: 1.5px solid var(--border-color);
}

.pag-attached .pag-item.active {
    border-color: var(--accent);
    z-index: 1;
    position: relative;
}

/* --- Variant: Minimal (prev/next only) --- */
.pag-minimal {
    gap: 0.75rem;
}

.pag-minimal .pag-item {
    border: none;
    background: transparent;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: auto;
    padding: 0.35rem 0.6rem;
}

.pag-minimal .pag-item:hover:not(.disabled) {
    color: var(--accent);
    background: transparent;
    border-color: transparent;
}

/* --- Variant: with text (Previous / Next words) --- */
.pag-text .pag-prev,
.pag-text .pag-next {
    gap: 0.4rem;
    padding: 0 0.75rem;
}

/* --- Page info text --- */
.pag-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pag-info strong {
    color: var(--text-primary);
}

/* --- Go-to input --- */
.pag-goto {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pag-goto input {
    width: 48px;
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    text-align: center;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease;
}

.pag-goto input:focus {
    border-color: var(--accent);
}

/* --- Rows per page select --- */
.pag-rows-per-page {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pag-rows-per-page select {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

/* --- Composite layout (info left, pagination right) --- */
.pag-composite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pag-composite-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pag-composite-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Sizes --- */
.pag-sm .pag-item {
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
    padding: 0 0.35rem;
}

.pag-lg .pag-item {
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem;
    padding: 0 0.65rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .pag-strike {
        gap: 0.15rem;
    }
    .pag-strike .pag-item {
        min-width: 30px;
        height: 30px;
        font-size: 0.75rem;
        padding: 0 0.35rem;
    }
    .pag-composite {
        flex-direction: column;
        align-items: center;
    }
}


/* ================================================================
   SEZIONE 12E: RADIO GROUP
   ================================================================ */

/* --- Base Radio --- */
.radio-strike {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.radio-strike input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-strike .radio-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border-input, var(--border-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: var(--card-bg);
    margin-top: 1px;
    flex-shrink: 0;
}

.radio-strike .radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.15s ease;
}

.radio-strike input:checked + .radio-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.radio-strike input:checked + .radio-dot::after {
    opacity: 1;
    transform: scale(1);
}

.radio-strike input:focus-visible + .radio-dot {
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.3);
}

.radio-strike:hover .radio-dot {
    border-color: var(--accent);
}

.radio-strike .radio-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.radio-strike .radio-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.4;
}

.radio-strike .radio-content {
    display: flex;
    flex-direction: column;
}

/* --- Disabled --- */
.radio-strike.radio-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* --- Group --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.radio-group-horizontal {
    flex-direction: row;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* --- Color variants --- */
.radio-strike.radio-success input:checked + .radio-dot {
    background: var(--success);
    border-color: var(--success);
}
.radio-strike.radio-danger input:checked + .radio-dot {
    background: var(--danger);
    border-color: var(--danger);
}
.radio-strike.radio-warning input:checked + .radio-dot {
    background: var(--warning);
    border-color: var(--warning);
}
.radio-strike.radio-info input:checked + .radio-dot {
    background: var(--info, var(--accent));
    border-color: var(--info, var(--accent));
}

/* --- Size variants --- */
.radio-strike.radio-md .radio-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
}
.radio-strike.radio-md .radio-dot::after {
    width: 10px;
    height: 10px;
}
.radio-strike.radio-md .radio-label {
    font-size: 0.9rem;
}

.radio-strike.radio-lg .radio-dot {
    width: 24px;
    height: 24px;
    min-width: 24px;
}
.radio-strike.radio-lg .radio-dot::after {
    width: 12px;
    height: 12px;
}
.radio-strike.radio-lg .radio-label {
    font-size: 0.95rem;
}

/* --- Card variant (bordered card on select) --- */
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--card-bg);
    user-select: none;
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card .radio-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    background: var(--card-bg);
    margin-top: 2px;
    flex-shrink: 0;
}

.radio-card .radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.15s ease;
}

.radio-card:hover {
    border-color: var(--accent);
}

.radio-card.radio-card-active {
    border-color: var(--accent);
    background: rgba(126, 197, 225, 0.04);
    box-shadow: 0 0 0 1px var(--accent);
}

.radio-card.radio-card-active .radio-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.radio-card.radio-card-active .radio-dot::after {
    opacity: 1;
    transform: scale(1);
}

.radio-card .radio-card-content {
    flex: 1;
    min-width: 0;
}

.radio-card .radio-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.radio-card .radio-card-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.4;
}

.radio-card .radio-card-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-card.radio-card-active .radio-card-icon {
    color: var(--accent);
}

/* --- Chip / Pill variant --- */
.radio-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--card-bg);
    color: var(--text-primary);
    user-select: none;
    position: relative;
}

.radio-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-chip:hover {
    border-color: var(--accent);
}

.radio-chip.radio-chip-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --- Pricing card variant --- */
.radio-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--card-bg);
    user-select: none;
    text-align: center;
    position: relative;
    min-width: 120px;
}

.radio-pricing input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-pricing:hover {
    border-color: var(--accent);
}

.radio-pricing.radio-pricing-active {
    border-color: var(--accent);
    background: rgba(126, 197, 225, 0.04);
    box-shadow: 0 0 0 1px var(--accent);
}

.radio-pricing .radio-pricing-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.radio-pricing .radio-pricing-price {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.radio-pricing .radio-pricing-badge {
    position: absolute;
    top: -9px;
    right: 12px;
    padding: 0.1rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.radio-pricing .radio-pricing-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    transition: all 0.15s ease;
}

.radio-pricing .radio-pricing-check i {
    font-size: 0.6rem;
    color: #fff;
    opacity: 0;
    transition: all 0.15s ease;
}

.radio-pricing.radio-pricing-active .radio-pricing-check {
    background: var(--accent);
    border-color: var(--accent);
}

.radio-pricing.radio-pricing-active .radio-pricing-check i {
    opacity: 1;
}

/* --- Plan card (horizontal with price + description) --- */
.radio-plan {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--card-bg);
    user-select: none;
    position: relative;
}

.radio-plan input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-plan:hover {
    border-color: var(--accent);
}

.radio-plan.radio-plan-active {
    border-color: var(--accent);
    background: rgba(126, 197, 225, 0.04);
    box-shadow: 0 0 0 1px var(--accent);
}

.radio-plan .radio-plan-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-plan .radio-plan-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.15s ease;
}

.radio-plan.radio-plan-active .radio-plan-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.radio-plan.radio-plan-active .radio-plan-dot::after {
    opacity: 1;
    transform: scale(1);
}

.radio-plan .radio-plan-content {
    flex: 1;
    min-width: 0;
}

.radio-plan .radio-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.radio-plan .radio-plan-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.radio-plan .radio-plan-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.radio-plan .radio-plan-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.4;
}

/* --- Notification / stacked variant --- */
.radio-stack {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.radio-stack .radio-stack-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.1s ease;
    user-select: none;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.radio-stack .radio-stack-item:last-child {
    border-bottom: none;
}

.radio-stack .radio-stack-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-stack .radio-stack-item:hover {
    background: rgba(126, 197, 225, 0.03);
}

.radio-stack .radio-stack-item.radio-stack-active {
    background: rgba(126, 197, 225, 0.05);
}

.radio-stack .radio-stack-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.radio-stack .radio-stack-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.15s ease;
}

.radio-stack .radio-stack-item.radio-stack-active .radio-stack-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.radio-stack .radio-stack-item.radio-stack-active .radio-stack-dot::after {
    opacity: 1;
    transform: scale(1);
}

.radio-stack .radio-stack-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-primary);
}

.radio-stack .radio-stack-icon {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.radio-stack .radio-stack-item.radio-stack-active .radio-stack-icon {
    color: var(--accent);
}

/* --- Animated slide indicator (for horizontal groups) --- */
.radio-slide-group {
    display: inline-flex;
    position: relative;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    background: var(--card-bg);
    gap: 0;
}

.radio-slide-group .radio-slide-item {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease;
    z-index: 1;
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.radio-slide-group .radio-slide-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-slide-group .radio-slide-item.radio-slide-active {
    color: #fff;
}

.radio-slide-group .radio-slide-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    border-radius: 6px;
    background: var(--accent);
    transition: left 0.25s ease, width 0.25s ease;
    z-index: 0;
}


/* ================================================================
   SEZIONE 12F: SWITCH
   ================================================================ */

/* --- Base Switch --- */
.switch-strike {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.switch-strike input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-strike .switch-track {
    position: relative;
    width: 42px;
    height: 24px;
    background: var(--border-color);
    border-radius: 99px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.switch-strike .switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch-strike input:checked + .switch-track {
    background: var(--accent);
}

.switch-strike input:checked + .switch-track .switch-thumb {
    transform: translateX(18px);
}

.switch-strike input:focus-visible + .switch-track {
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.3);
}

.switch-strike:hover .switch-track {
    opacity: 0.9;
}

.switch-strike .switch-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.switch-strike .switch-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.4;
}

.switch-strike .switch-content {
    display: flex;
    flex-direction: column;
}

/* --- Disabled --- */
.switch-strike.switch-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* --- Sizes --- */
.switch-strike.switch-sm .switch-track {
    width: 34px;
    height: 20px;
}
.switch-strike.switch-sm .switch-thumb {
    width: 16px;
    height: 16px;
}
.switch-strike.switch-sm input:checked + .switch-track .switch-thumb {
    transform: translateX(14px);
}
.switch-strike.switch-sm .switch-label {
    font-size: 0.8rem;
}

.switch-strike.switch-lg .switch-track {
    width: 52px;
    height: 28px;
}
.switch-strike.switch-lg .switch-thumb {
    width: 24px;
    height: 24px;
}
.switch-strike.switch-lg input:checked + .switch-track .switch-thumb {
    transform: translateX(24px);
}
.switch-strike.switch-lg .switch-label {
    font-size: 0.95rem;
}

/* --- On/Off labels inside track --- */
.switch-strike .switch-track .switch-on,
.switch-strike .switch-track .switch-off {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.switch-strike .switch-track .switch-on {
    left: 6px;
    color: #fff;
    opacity: 0;
}
.switch-strike .switch-track .switch-off {
    right: 6px;
    color: var(--text-muted);
    opacity: 1;
}

.switch-strike input:checked + .switch-track .switch-on {
    opacity: 1;
}
.switch-strike input:checked + .switch-track .switch-off {
    opacity: 0;
}

/* --- Icon inside thumb --- */
.switch-strike .switch-thumb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: color 0.2s ease, opacity 0.2s ease;
    line-height: 1;
}

.switch-strike .switch-thumb .switch-icon-on {
    opacity: 0;
}
.switch-strike .switch-thumb .switch-icon-off {
    opacity: 1;
}

.switch-strike input:checked + .switch-track .switch-thumb .switch-icon-on {
    opacity: 1;
    color: var(--accent);
}
.switch-strike input:checked + .switch-track .switch-thumb .switch-icon-off {
    opacity: 0;
}

/* --- Color variants --- */
.switch-strike.switch-success input:checked + .switch-track {
    background: var(--success);
}
.switch-strike.switch-danger input:checked + .switch-track {
    background: var(--danger);
}
.switch-strike.switch-warning input:checked + .switch-track {
    background: var(--warning);
}

/* --- Squared track variant --- */
.switch-strike.switch-squared .switch-track {
    border-radius: 6px;
}
.switch-strike.switch-squared .switch-thumb {
    border-radius: 4px;
}

/* --- Switch with right label --- */
.switch-strike.switch-right {
    flex-direction: row-reverse;
}

/* --- Card variant (switch inside a card-like container) --- */
.switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    transition: border-color 0.15s ease;
}

.switch-card:hover {
    border-color: color-mix(in srgb, var(--border-color) 70%, var(--accent));
}

.switch-card .switch-card-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.switch-card .switch-card-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.switch-card .switch-card-info {
    display: flex;
    flex-direction: column;
}

.switch-card .switch-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.switch-card .switch-card-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    line-height: 1.4;
}

.switch-card .switch-card-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* --- Stacked switch group (bordered) --- */
.switch-stack {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.switch-stack .switch-stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.switch-stack .switch-stack-item:last-child {
    border-bottom: none;
}

.switch-stack .switch-stack-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-primary);
}

.switch-stack .switch-stack-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.switch-stack .switch-stack-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* --- Field variant (switch aligned with form label) --- */
.switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.switch-field .switch-field-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.switch-field .switch-field-helper {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.switch-field .switch-field-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* --- Loading indicator on track --- */
.switch-strike.switch-loading .switch-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: switch-spin 0.6s linear infinite;
    pointer-events: none;
}

@keyframes switch-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Animated expand thumb on toggle --- */
.switch-strike.switch-expand .switch-thumb {
    transition: transform 0.2s ease, width 0.15s ease;
}
.switch-strike.switch-expand:active .switch-thumb {
    width: 24px;
}
.switch-strike.switch-expand.switch-lg:active .switch-thumb {
    width: 28px;
}


/* ================================================================
   SEZIONE 13: ALERTS
   ================================================================ */

/* --- Base --- */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    position: relative;
}

.alert-success { background: var(--success-light);   color: #166534; }
.alert-danger  { background: var(--danger-light);    color: #991b1b; }
.alert-warning { background: var(--gold-light);      color: #92400e; }
.alert-info    { background: var(--highlight-light);  color: #0e5a73; }

/* --- Alert with Title + Description --- */
.alert-title {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.alert-description {
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.55;
}

/* --- Alert Dismissible --- */
.alert-dismissible {
    padding-right: 2.5rem;
}

.alert-dismiss-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition);
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    line-height: 1;
    color: inherit;
}

.alert-dismiss-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

/* --- Alert with Icon (structured layout) --- */
.alert-icon-layout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.alert-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.alert-success .alert-icon-circle { background: rgba(22, 163, 74, 0.15); color: #166534; }
.alert-danger .alert-icon-circle  { background: rgba(239, 68, 68, 0.15); color: #991b1b; }
.alert-warning .alert-icon-circle { background: rgba(251, 179, 42, 0.2);  color: #92400e; }
.alert-info .alert-icon-circle    { background: rgba(126, 197, 225, 0.25); color: #0e5a73; }

.alert-icon-content {
    flex: 1;
    min-width: 0;
}

/* --- Alert with Left Border --- */
.alert-border-left {
    border-left: 4px solid currentColor;
    border-radius: 0 10px 10px 0;
}

.alert-border-left.alert-success { border-left-color: var(--success); }
.alert-border-left.alert-danger  { border-left-color: var(--danger); }
.alert-border-left.alert-warning { border-left-color: var(--gold); }
.alert-border-left.alert-info    { border-left-color: var(--highlight); }

/* --- Alert Solid (filled background) --- */
.alert-solid {
    color: #fff;
    border: none;
}

.alert-solid.alert-success { background: var(--success); }
.alert-solid.alert-danger  { background: var(--danger); }
.alert-solid.alert-warning { background: #d49a00; color: #fff; }
.alert-solid.alert-info    { background: var(--accent); }

.alert-solid .alert-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.alert-solid .alert-dismiss-btn {
    color: #fff;
}

.alert-solid .alert-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.alert-solid .alert-description {
    opacity: 0.9;
}

/* --- Alert Outlined --- */
.alert-outline {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.alert-outline.alert-success { border-color: #bbf7d0; color: #166534; }
.alert-outline.alert-danger  { border-color: #fecaca; color: #991b1b; }
.alert-outline.alert-warning { border-color: #fde68a; color: #92400e; }
.alert-outline.alert-info    { border-color: #b4dde9; color: #0e5a73; }

/* --- Alert with Actions --- */
.alert-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.alert-actions .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
}

.alert-solid .alert-actions .btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.alert-solid .alert-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.alert-solid .alert-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.alert-solid .alert-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* --- Alert with Avatar --- */
.alert-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--highlight), var(--magenta));
}

.alert-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Alert with Progress --- */
.alert-progress {
    margin-top: 0.6rem;
}

.alert-progress .progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.08);
}

.alert-solid .alert-progress .progress {
    background: rgba(255, 255, 255, 0.2);
}

.alert-solid .alert-progress .progress-bar {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* --- Alert Banner (full width, minimal radius) --- */
.alert-banner {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alert-banner .alert-actions {
    margin-top: 0;
}

/* --- Alert Inline (compact, same line) --- */
.alert-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
}

.alert-inline .alert-dismiss-btn {
    position: static;
    margin-left: auto;
    flex-shrink: 0;
}

/* --- Alert Notification Card Style --- */
.alert-notification {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-primary);
}

.alert-notification .alert-title {
    color: var(--text-primary);
}

.alert-notification .alert-description {
    color: var(--text-secondary);
}

.alert-notification .alert-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.alert-notification .alert-dismiss-btn {
    color: var(--text-muted);
}

.alert-notification .alert-dismiss-btn:hover {
    color: var(--text-primary);
    background: var(--accent-light);
}

/* --- Alert Dot indicator --- */
.alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.alert-dot.dot-success { background: var(--success); }
.alert-dot.dot-danger  { background: var(--danger); }
.alert-dot.dot-warning { background: var(--gold); }
.alert-dot.dot-info    { background: var(--highlight); }
.alert-dot.dot-magenta { background: var(--magenta); }

/* --- Alert Fade-out animation --- */
.alert-fade-out {
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.alert-fade-out.hiding {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

/* --- Alert with file info --- */
.alert-file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.alert-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.06);
}

.alert-solid .alert-file-icon {
    background: rgba(255, 255, 255, 0.2);
}

.alert-file-name {
    font-weight: 600;
    font-size: 0.82rem;
}

.alert-file-size {
    font-size: 0.72rem;
    opacity: 0.7;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .alert-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .alert-actions .btn {
        min-height: 34px;
    }
}


/* ================================================================
   SEZIONE 14: DROPDOWN
   ================================================================ */
.dropdown-menu {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(1, 47, 70, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.dropdown-item:hover {
    background-color: var(--accent-light);
}


/* ================================================================
   SEZIONE 15: PROGRESS BAR
   ================================================================ */
.progress {
    background-color: var(--accent-light);
}

.progress-bar {
    background-color: var(--highlight) !important;
}


/* ================================================================
   SEZIONE 16: LOGIN PAGE
   ================================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--content-bg);
}

.login-left {
    flex: 1;
    background: var(--sidebar-bg-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(126, 197, 225, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(171, 31, 120, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(251, 179, 42, 0.06) 0%, transparent 40%);
    animation: login-float 20s ease-in-out infinite;
}

@keyframes login-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

.login-left .app-icon {
    position: relative;
    z-index: 1;
    font-size: 5rem;
    color: var(--highlight);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 16px rgba(126, 197, 225, 0.4));
}

.login-left h2 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.login-left p {
    position: relative;
    z-index: 1;
    color: rgba(126, 197, 225, 0.7);
    font-size: 0.95rem;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--accent);
}

.login-form-container .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-form-container .form-control {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
}

.login-form-container .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    margin-top: 0.5rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}


/* ================================================================
   SEZIONE 17: PWA INSTALL BANNER
   ================================================================ */
.pwa-install-banner {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px rgba(1, 47, 70, 0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 2rem);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.pwa-install-banner.show {
    bottom: 1rem;
}

.pwa-install-banner .btn-install {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.85rem;
}

.pwa-install-banner .btn-install:hover {
    background: var(--accent-hover);
}

.pwa-install-banner .btn-close-pwa {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
}

.pwa-install-banner .btn-close-pwa:hover {
    color: var(--text-primary);
}


/* ================================================================
   SEZIONE 18: ACCORDION
   ================================================================ */
.accordion-strike {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-strike .accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.accordion-strike .accordion-item:hover {
    box-shadow: var(--card-shadow-hover);
}

.accordion-strike .accordion-item:first-of-type,
.accordion-strike .accordion-item:last-of-type {
    border-radius: var(--card-radius) !important;
}

.accordion-strike .accordion-button {
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border: none;
    box-shadow: none !important;
    border-radius: var(--card-radius) !important;
    transition: color var(--transition), background var(--transition);
}

.accordion-strike .accordion-button:not(.collapsed) {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: none;
}

.accordion-strike .accordion-button:hover {
    color: var(--accent);
}

.accordion-strike .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-strike .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235a7a8a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition);
}

.accordion-strike .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23012F46'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-strike .accordion-body {
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.accordion-strike .accordion-collapse {
    border-top: none;
}


/* ================================================================
   SEZIONE 19: CALENDAR
   ================================================================ */

/* Calendar Card Container */
.cal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: inline-block;
    min-width: 280px;
    width: 100%;
    max-width: 340px;
}

.cal-card:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Calendar Header / Navigation */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem 0.5rem;
}

.cal-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    font-size: 0.85rem;
}

.cal-nav-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--highlight);
}

.cal-nav-group {
    display: flex;
    gap: 0.35rem;
}

/* Day-of-week headers */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 0.5rem;
    margin-bottom: 0.15rem;
}

.cal-weekdays.has-week-num {
    grid-template-columns: 28px repeat(7, 1fr);
}

.cal-weekday {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0;
}

.cal-weekday.week-num-header {
    font-size: 0.62rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Days grid */
.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 0.5rem 0.65rem;
    gap: 2px;
}

.cal-days.has-week-num {
    grid-template-columns: 28px repeat(7, 1fr);
}

/* Week number cell */
.cal-week-num {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Individual day cell */
.cal-day {
    position: relative;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-primary);
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cal-day:hover:not(.outside):not(.disabled):not(.selected):not(.range-start):not(.range-end) {
    background: var(--accent-light);
    color: var(--accent);
}

/* Today */
.cal-day.today {
    font-weight: 700;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.cal-day.today.selected {
    border-color: var(--accent);
}

/* Selected */
.cal-day.selected {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.cal-day.selected:hover {
    background: var(--accent-hover);
}

/* Range selection */
.cal-day.range-start {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px 0 0 8px;
}

.cal-day.range-end {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
}

.cal-day.range-start.range-end {
    border-radius: 8px;
}

.cal-day.in-range {
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 0;
    font-weight: 500;
}

.cal-day.in-range:hover {
    background: #c8e6f2;
}

/* Outside month */
.cal-day.outside {
    color: var(--text-muted);
    opacity: 0.4;
}

.cal-day.outside:hover {
    opacity: 0.6;
}

/* Disabled */
.cal-day.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: not-allowed;
}

/* Event dot */
.cal-day .cal-event-dot {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--magenta);
}

.cal-day.selected .cal-event-dot {
    background: rgba(255, 255, 255, 0.8);
}

/* Price label under day */
.cal-day-price {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.52rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.cal-day.selected .cal-day-price {
    color: rgba(255, 255, 255, 0.8);
}

/* Calendar Footer */
.cal-footer {
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Calendar with events list */
.cal-events-list {
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    max-height: 160px;
    overflow-y: auto;
}

.cal-event-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f3f5;
}

.cal-event-item:last-child {
    border-bottom: none;
}

.cal-event-dot-lg {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.cal-event-info {
    flex: 1;
    min-width: 0;
}

.cal-event-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cal-event-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Calendar with input */
.cal-input-wrapper {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cal-input-wrapper label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.cal-input-wrapper input {
    width: 100%;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cal-input-wrapper input:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(126, 197, 225, 0.2);
}

/* Calendar with title header */
.cal-card-header {
    padding: 1rem 1rem 0.25rem;
    border-bottom: none;
}

.cal-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.15rem;
}

.cal-card-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* Calendar with time slots */
.cal-with-time {
    display: flex;
    max-width: 560px;
}

.cal-with-time .cal-card {
    border-radius: var(--card-radius) 0 0 var(--card-radius);
    border-right: none;
    max-width: none;
    flex: 1;
}

.cal-time-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    box-shadow: var(--card-shadow);
    width: 120px;
    display: flex;
    flex-direction: column;
}

.cal-time-panel-header {
    padding: 0.85rem 0.75rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
}

.cal-time-slots {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem;
}

.cal-time-slot {
    display: block;
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: none;
    background: none;
    font-size: 0.78rem;
    font-family: var(--font-family);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    transition: all 0.15s ease;
    margin-bottom: 1px;
}

.cal-time-slot:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.cal-time-slot.selected {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* Calendar with presets sidebar */
.cal-with-presets {
    display: flex;
    max-width: 520px;
}

.cal-with-presets .cal-card {
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    border-left: none;
    max-width: none;
    flex: 1;
}

.cal-presets-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) 0 0 var(--card-radius);
    box-shadow: var(--card-shadow);
    width: 150px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 2px;
}

.cal-preset-btn {
    display: block;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: none;
    background: none;
    font-size: 0.78rem;
    font-family: var(--font-family);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 7px;
    text-align: left;
    transition: all 0.15s ease;
    font-weight: 500;
}

.cal-preset-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.cal-preset-btn.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* Calendar with month/year dropdowns */
.cal-header-selects {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.cal-header-selects select {
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--card-bg);
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235a7a8a'%3e%3cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.35rem center;
    background-size: 0.6rem;
    padding-right: 1.2rem;
}

.cal-header-selects select:focus {
    outline: none;
    border-color: var(--highlight);
}

/* Appointment / booking confirmation */
.cal-booking-msg {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cal-booking-msg strong {
    color: var(--text-primary);
}

/* Today button */
.cal-today-btn {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-family);
}

.cal-today-btn:hover {
    background: var(--accent-light);
    border-color: var(--highlight);
}

/* Calendar description label */
.cal-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .cal-card {
        max-width: 100%;
        min-width: 0;
    }

    .cal-with-time {
        flex-direction: column;
        max-width: 100%;
    }

    .cal-with-time .cal-card {
        border-radius: var(--card-radius) var(--card-radius) 0 0;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    .cal-time-panel {
        border-radius: 0 0 var(--card-radius) var(--card-radius);
        width: 100%;
        max-height: 150px;
    }

    .cal-time-slots {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .cal-time-slot {
        flex: 0 0 auto;
        width: auto;
        padding: 0.4rem 0.75rem;
    }

    .cal-with-presets {
        flex-direction: column;
        max-width: 100%;
    }

    .cal-with-presets .cal-card {
        border-radius: 0 0 var(--card-radius) var(--card-radius);
        border-left: 1px solid var(--border-color);
        border-top: none;
    }

    .cal-presets-panel {
        border-radius: var(--card-radius) var(--card-radius) 0 0;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cal-preset-btn {
        flex: 0 0 auto;
        width: auto;
    }

    .cal-day {
        font-size: 0.76rem;
    }
}


/* ================================================================
   SEZIONE 20: UTILITY CLASSES
   ================================================================ */
.text-accent    { color: var(--accent) !important; }
.text-highlight { color: var(--highlight) !important; }
.text-magenta   { color: var(--magenta) !important; }
.text-gold      { color: var(--gold) !important; }

.bg-accent-light { background-color: var(--accent-light) !important; }

/* Mention Tag (per commenti con @mention) */
.mention-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2em 0.5em;
    border-radius: 0.375rem;
    background-color: var(--primary-bg-subtle);
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.mention-tag i {
    font-size: 0.8em;
}

/* Autocomplete Suggestions (per @mention e ricerca) */
.autocomplete-suggestions {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    overflow: auto;
    max-height: 150px;
    z-index: 1000;
    position: absolute;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.autocomplete-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background: var(--primary-bg-subtle);
    color: var(--accent);
}


/* ================================================================
   SEZIONE 19: SCROLLBAR PERSONALIZZATA
   ================================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c2d9e4;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ================================================================
   SEZIONE 20: RESPONSIVE — Tablet (≤ 992px)
   ================================================================ */
@media (max-width: 992px) {
    .content-wrapper {
        padding: 1.25rem;
    }
}


/* ================================================================
   SEZIONE 21: RESPONSIVE — Mobile (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
    /* Sidebar */
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.show {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(1, 47, 70, 0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.show {
        display: block;
    }

    /* Topbar */
    .topbar {
        padding: 0.5rem 0.75rem;
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
        min-height: 52px;
    }

    .topbar-left h4 {
        font-size: 0.92rem;
        max-width: 160px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Content */
    .content-wrapper {
        padding: 0.75rem;
    }

    .content-wrapper > .row:first-child h1 {
        font-size: 1.15rem;
    }

    /* Cards */
    .card { border-radius: 12px; }
    .card-header { padding: 0.75rem 1rem; }
    .card-body { padding: 0.85rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* KPI */
    .kpi-card { padding: 1rem; margin-bottom: 0; }
    .kpi-icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 0.75rem; border-radius: 10px; }
    .kpi-value { font-size: 1.4rem; }
    .kpi-label { font-size: 0.75rem; }

    /* Quick Actions */
    .quick-action-card { padding: 1rem 0.5rem; border-radius: 12px; gap: 0.4rem; }
    .quick-action-card i { font-size: 1.3rem; }
    .quick-action-card span { font-size: 0.72rem; }

    /* Tables */
    .table { font-size: 0.8rem; }
    .table > thead > tr > th { font-size: 0.7rem; padding: 0.6rem 0.5rem; letter-spacing: 0.02em; }
    .table > tbody > tr > td { padding: 0.6rem 0.5rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table th, .table td { white-space: nowrap; }
    .table td:has(> .text-muted), .table td .truncate-mobile { white-space: normal; min-width: 100px; }

    /* Buttons */
    .btn { min-height: 38px; padding: 0.5rem 0.85rem; }
    .btn-sm { min-height: 34px; padding: 0.35rem 0.55rem; }
    .btn-group .btn { margin-left: 2px; }

    /* Forms — impedisci zoom su iOS */
    .form-control, .form-select { font-size: 16px; min-height: 42px; padding: 0.5rem 0.75rem; }
    .form-label { font-size: 0.72rem; margin-bottom: 0.25rem; }

    /* Badges */
    .badge { font-size: 0.68rem; padding: 0.3em 0.6em; }

    /* Alerts */
    .alert { font-size: 0.82rem; padding: 0.65rem 0.85rem; }

    /* Login */
    .login-left { display: none; }
    .login-right { flex: 1; padding: 1.5rem; }
    .login-form-container h3 { font-size: 1.3rem; }

    /* Dropdowns */
    .dropdown-menu { font-size: 0.85rem; }

    /* Sidebar toggle */
    .sidebar-toggle { width: 40px; height: 40px; }

    /* Notifications list */
    .list-group-item { padding: 0.75rem !important; }
    .list-group-item h6 { font-size: 0.82rem !important; }
    .list-group-item p { font-size: 0.78rem !important; }

    /* Filter stacking */
    .card-body form.row .col-md-2,
    .card-body form.row .col-md-3,
    .card-body form.row .col-md-4 { flex: 0 0 100%; max-width: 100%; }

    /* Action buttons stacking */
    .d-flex.gap-2.mb-3 { flex-wrap: wrap; }
    .d-flex.gap-2.mb-3 .btn { flex: 1 1 auto; min-width: 120px; }

    /* PWA banner */
    .pwa-install-banner { max-width: 100%; width: calc(100% - 1rem); border-radius: 12px; }
    .pwa-install-banner.show { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}


/* ================================================================
   SEZIONE 22: BOTTOM NAVIGATION (Mobile)
   ================================================================ */
.mobile-bottom-nav {
    display: none;
}

.mobile-more-drawer {
    display: none;
}

.mobile-more-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 12px rgba(1, 47, 70, 0.08);
        z-index: 1050;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        justify-content: space-around;
        align-items: stretch;
    }

    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.62rem;
        font-weight: 500;
        padding: 6px 4px;
        width: 100%;
        transition: color 0.15s ease;
        position: relative;
        border-radius: 8px;
        margin: 4px 2px;
    }

    .mobile-bottom-nav .nav-link i {
        font-size: 1.25rem;
        transition: transform 0.15s ease;
    }

    .mobile-bottom-nav .nav-link.active {
        color: var(--accent);
    }

    .mobile-bottom-nav .nav-link.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 25%; right: 25%;
        height: 2.5px;
        background: var(--accent);
        border-radius: 0 0 3px 3px;
    }

    .mobile-bottom-nav .nav-link:active {
        background: var(--accent-light);
    }

    .mobile-bottom-nav .nav-link:active i {
        transform: scale(0.9);
    }

    .mobile-bottom-nav .nav-badge {
        position: absolute;
        top: 2px;
        right: calc(50% - 18px);
        font-size: 0.5rem;
        background: var(--danger);
        color: #fff;
        border-radius: 10px;
        padding: 1px 5px;
        line-height: 1.2;
        min-width: 14px;
        text-align: center;
    }

    /* "More" bottom sheet drawer */
    .mobile-more-drawer {
        display: block;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--card-bg);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -8px 32px rgba(1, 47, 70, 0.15);
        z-index: 1100;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-more-drawer.open {
        transform: translateY(0);
    }

    .mobile-more-drawer-handle {
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--border-color);
        margin: 10px auto 6px;
    }

    .mobile-more-drawer .drawer-section {
        padding: 0.25rem 1rem;
    }

    .mobile-more-drawer .drawer-section-title {
        color: var(--text-muted);
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0.5rem 0 0.25rem;
    }

    .mobile-more-drawer .drawer-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 0.5rem;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 0.88rem;
        font-weight: 500;
        border-radius: 10px;
        transition: background 0.15s ease;
    }

    .mobile-more-drawer .drawer-link:active {
        background: var(--accent-light);
    }

    .mobile-more-drawer .drawer-link i {
        font-size: 1.15rem;
        width: 24px;
        text-align: center;
        color: var(--text-secondary);
    }

    .mobile-more-drawer .drawer-link.active i {
        color: var(--accent);
    }

    .mobile-more-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(1, 47, 70, 0.4);
        backdrop-filter: blur(2px);
        z-index: 1099;
        display: none;
    }

    .mobile-more-overlay.open {
        display: block;
    }

    /* Mobile card view for tables */
    .mobile-card-view .table { display: block; }
    .mobile-card-view .table thead { display: none; }
    .mobile-card-view .table tbody { display: flex; flex-direction: column; gap: 0.5rem; }
    .mobile-card-view .table tbody tr { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 0.75rem; gap: 0.25rem; }
    .mobile-card-view .table tbody tr td { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; border-bottom: 1px solid #f0f3f5; font-size: 0.82rem; }
    .mobile-card-view .table tbody tr td:last-child { border-bottom: none; justify-content: flex-end; padding-top: 0.5rem; }
    .mobile-card-view .table tbody tr td::before { content: attr(data-label); font-weight: 600; font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; flex-shrink: 0; margin-right: 0.5rem; }
}


/* ================================================================
   SEZIONE 23: SMALL PHONES (≤ 400px)
   ================================================================ */
@media (max-width: 400px) {
    .content-wrapper { padding: 0.5rem; }
    .topbar-left h4 { font-size: 0.82rem; max-width: 120px; }
    .kpi-value { font-size: 1.2rem; }
    .kpi-label { font-size: 0.7rem; }
    .mobile-bottom-nav .nav-link { font-size: 0.58rem; }
    .mobile-bottom-nav .nav-link i { font-size: 1.15rem; }
    .quick-action-card { padding: 0.75rem 0.25rem; }
    .quick-action-card span { font-size: 0.65rem; }
}


/* ================================================================
   SEZIONE 24: PWA STANDALONE MODE
   ================================================================ */
@media (display-mode: standalone) {
    body {
        -webkit-user-select: none;
        user-select: none;
    }

    .topbar {
        padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
    }

    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }

    input, textarea, select, .table td, .table th {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Fine del file */


