/* --- RESET & TYPOGRAPHY --- */

/* Stara Premium Font */
@font-face {
    font-family: 'Stara';
    src: url('client/Stara-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.font-stara {
    font-family: 'Stara', var(--font-display), sans-serif !important;
}

:root {
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-stara: 'Stara', 'Plus Jakarta Sans', sans-serif;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --surface-bg: #f8fafc;
    --card-border: #cbd5e1;
    /* Bordo un po' più visibile per il 2D */
}

/* --- GOOGLE MATERIAL STYLE SPINNER (Global) --- */
.google-spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.google-spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.google-spinner-circle {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: google-spin 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes google-spin {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--surface-bg);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: var(--font-display);
}

/* --- SIDEBAR — DARK VERCEL STYLE --- */
.sidebar-glass {
    background: #000000;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-solid {
    background: #000000;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    z-index: 50;
    position: relative;
    overflow: hidden;
}

/* Sibill sidebar is always narrow */
#main-sidebar {
    width: 80px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
}

/* Collapsed State - Controlled by body class for maximum CSS specificity */
body.sidebar-collapsed #main-sidebar {
    width: 80px !important;
    min-width: 80px !important;
}

body.sidebar-collapsed #main-sidebar .nav-text,
body.sidebar-collapsed #main-sidebar .section-label,
body.sidebar-collapsed #main-sidebar .user-details-box {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed #main-sidebar .logo-full {
    opacity: 0;
}

body.sidebar-collapsed #main-sidebar .logo-icon {
    opacity: 1;
}

body.sidebar-collapsed #main-sidebar .nav-item {
    justify-content: center;
    padding: 0.875rem 0;
}

body.sidebar-collapsed #main-sidebar .logo-box {
    justify-content: center;
}

/* Dark Vercel nav items: icon + tiny label, stacked vertically, centered */
#main-sidebar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
    margin: 0 8px 2px 8px;
    position: relative;
    cursor: pointer;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
}

#main-sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

#main-sidebar .nav-item.active {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
}

/* Vercel-style left indicator — clean white bar */
#main-sidebar .nav-item.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #ffffff;
    border-radius: 0 3px 3px 0;
}

#main-sidebar .nav-item .nav-text {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
}

#main-sidebar .nav-item i,
#main-sidebar .nav-item svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Hide section labels */
.section-label {
    display: none !important;
}

/* Hide badges in narrow sidebar */
#main-sidebar .nav-item .ml-auto {
    display: none;
}

/* --- BUTTONS (FLAT & SOLID 2D) --- */

/* Bottone Primario: Solido, Flat, Nessuna Ombra */
.btn-solid {
    background-color: #0f172a;
    /* Nero/Blu scuro */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    /* Pillola */
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;

    /* NESSUNA OMBRA IN PARTENZA */
    box-shadow: none;

    /* Transizione solo colore */
    transition: background-color 0.2s ease;
}

.btn-solid:hover {
    /* NESSUNA OMBRA ALL'HOVER, NIENTE LUCE DIETRO */
    box-shadow: none;

    /* Solo cambio colore di sfondo per feedback */
    background-color: #334155;
    /* Slate 700 */

    /* NESSUN MOVIMENTO */
    transform: none;
}

.btn-solid:active {
    background-color: #020617;
    /* Feedback click */
}

/* Bottone Secondario (Ghost Flat) */
.btn-ghost {
    background-color: white;
    color: #475569;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    width: 100%;
    /* Rimosso shadow */
    box-shadow: none;
}

.btn-ghost:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* =============================================
   UNIFIED INBOX WIDGET
   ============================================= */
.unified-inbox-widget {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.unified-inbox-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#unified-inbox-body {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}

.unified-inbox-widget.collapsed #unified-inbox-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.unified-inbox-widget.collapsed #inbox-widget-chevron {
    transform: rotate(-90deg);
}

/* AI Category Pills in Widget */
.ai-category-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ai-category-pill:hover {
    transform: translateX(4px);
    border-color: currentColor;
}

.ai-category-pill .count {
    margin-left: auto;
    font-size: 0.65rem;
    opacity: 0.7;
}

/* --- COMPANY SELECTOR DROPDOWN --- */
#company-dropdown {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 320px;
}

.company-item-solid {
    cursor: pointer;
    border-radius: 0.75rem;
}

/* Custom scrollbar for dropdown */
#company-list-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(203, 213, 225, 0.5) transparent;
}

#company-list-container::-webkit-scrollbar {
    width: 6px;
}

#company-list-container::-webkit-scrollbar-track {
    background: transparent;
}

#company-list-container::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.5);
    border-radius: 3px;
}

.input-round {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
    box-shadow: none;
    /* Rimosso ombra */
    transition: border-color 0.2s;
}

.input-round:focus {
    outline: none;
    border-color: var(--primary);
    /* Niente ombra esterna, solo bordo colorato */
    box-shadow: none;
}

/* Filter Selects */
.select-round {
    padding: 0.75rem 1.25rem;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/09/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* --- CLIENT CARD (FLAT 2D) --- */
.client-card-soft {
    background: white;
    /* Bordo solido invece dell'ombra per definire lo spazio */
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;

    /* NESSUNA OMBRA */
    box-shadow: none;

    /* Nessuna transizione di movimento necessaria */
}

/* NESSUN HOVER EFFECT SULLA CARD */
.client-card-soft:hover {
    transform: none;
    box-shadow: none;
    border-color: #cbd5e1;
    /* Solo il bordo diventa leggermente più scuro per eleganza, ma fermo */
}

/* Avatar Arrotondato */
.avatar-soft {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-ok {
    background: #dcfce7;
    color: #166534;
}

.status-no {
    background: #fee2e2;
    color: #991b1b;
}

/* --- MODAL --- */
.modal-rounded {
    border-radius: 2rem;
    overflow: hidden;
    /* Lasciamo una piccola ombra solo alla modale per staccarla dal fondo, altrimenti non si vede */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
}

/* --- INPUT E SELECT "HEAVY" (Stile Solido & Flat) --- */

/* Base comune */
.input-heavy,
.select-heavy {
    height: 3.2rem;
    /* Altezza fissa per allineamento perfetto */
    background-color: #f8fafc;
    /* Slate-50: Sfondo leggero, non bianco puro */
    border: 1px solid #e2e8f0;
    /* Bordo sottile */
    border-radius: 1rem;
    /* Arrotondamento moderno */
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s ease;

    /* Nessuna ombra per default (Flat) */
    box-shadow: none;
}

/* Stato Focus: Diventa bianco con bordo colorato */
.input-heavy:focus,
.select-heavy:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary);
    /* Indigo */
    /* Nessuna ombra esterna, manteniamo il flat */
}

/* Placeholder più leggibile */
.input-heavy::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Stili specifici per la Select per nascondere la freccia nativa */
.select-heavy {
    appearance: none;
    /* Rimuove stile default browser */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select-heavy:hover {
    background-color: #f1f5f9;
    /* Leggermente più scuro all'hover */
    border-color: #cbd5e1;
}

/* --- Container Toolbar --- */
/* Se vuoi un contenitore unico per i filtri (Opzionale) */
.toolbar-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    border-radius: 1.2rem;
    display: flex;
    gap: 0.5rem;
}

/* --- CUSTOM DROPDOWN ANIMATO --- */

.custom-select-wrapper {
    position: relative;
    user-select: none;
    min-width: 200px;
    /* Larghezza minima per stabilità */
}

/* IL BOTTONE (TRIGGER) */
.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.2rem;
    padding: 0 1rem 0 3rem;
    /* Spazio a sx per l'icona */
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

/* Hover & Active del bottone */
.custom-select-wrapper:hover .custom-select-trigger {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.custom-select-wrapper.open .custom-select-trigger {
    background: #ffffff;
    border-color: var(--primary);
    border-bottom-left-radius: 0;
    /* Unisci visivamente al menu se vuoi, o lascialo separato */
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    /* Nascondi bordo sotto quando aperto */
    z-index: 20;
    /* Sopra al menu */
}

/* L'ICONA A SINISTRA (Fissa) */
.custom-select-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    z-index: 21;
}

/* LA LISTA DELLE OPZIONI (Menu) */
.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    /* Subito sotto */
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    /* Niente doppio bordo */
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    /* Ombra leggera solo quando aperto */
    z-index: 10;

    /* ANIMAZIONE SETTINGS */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    /* Parte leggermente più in alto */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Curva fluida "Apple style" */
    overflow: hidden;
}

/* STATO APERTO */
.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Scivola in posizione */
    margin-top: -1px;
    /* Sovrapposizione pixel perfect */
    border-color: var(--primary);
    /* Si colora come il trigger */
}

/* LE SINGOLE OPZIONI */
.custom-option {
    padding: 0.75rem 1rem 0.75rem 3rem;
    /* Allineato col testo sopra */
    display: block;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    color: #475569;
}

.custom-option:hover {
    background-color: #f1f5f9;
    color: var(--primary);
    font-weight: 600;
}

.custom-option.selected {
    background-color: #e0e7ff;
    color: var(--primary-dark);
    font-weight: 700;
}

/* Icona freccia che ruota */
.arrow-rotate {
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .arrow-rotate {
    transform: rotate(180deg);
}

/* --- PILLOLA GLASSY ANIMATA --- */
.pilla-glass {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 40px;
    /* Altezza base, poi viene calcolata via JS */
    border-radius: 12px;
    z-index: 0;
    /* Sta SOTTO il testo */

    /* STILE VETRO LIQUIDO */
    background: rgba(15, 23, 42, 0.06);
    /* Slate scuro ma trasparentissimo */
    backdrop-filter: blur(10px);
    /* Effetto sfocato sotto */

    /* NASCOSTA DI BASE */
    opacity: 0;
    transform: scale(0.95);
    /* Parte leggermente più piccola */
    pointer-events: none;

    /* ANIMAZIONE FLUIDA APPLE-STYLE */
    /* Questa curva crea l'effetto "rimbalzo" morbido alla fine */
    transition:
        transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1),
        opacity 0.2s ease,
        height 0.2s ease;
}

/* MODIFICA ALLE OPZIONI (IMPORTANTE) */
.custom-option {
    position: relative;
    z-index: 1;
    /* Il testo sta SOPRA la pillola */
    padding: 0.75rem 1rem 0.75rem 3rem;
    display: block;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    background: transparent;
    /* Rimuovi sfondo */
    transition: color 0.2s;
    border-radius: 12px;
}

/* Rimuoviamo il vecchio hover background, cambiamo solo il colore del testo */
.custom-option:hover {
    background-color: transparent;
    /* DISATTIVA VECCHIO HOVER */
    color: #0f172a;
    /* Slate 900 */
}

/* Stato selezionato (testo) */
.custom-option.selected {
    font-weight: 700;
    color: var(--primary);
}

/* --- PILLOLA GLASSY ANIMATA --- */
.pilla-glass {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 40px;
    /* Altezza base, poi viene calcolata via JS */
    border-radius: 12px;
    z-index: 0;
    /* Sta SOTTO il testo */

    /* STILE VETRO LIQUIDO */
    background: rgba(15, 23, 42, 0.06);
    /* Slate scuro ma trasparentissimo */
    backdrop-filter: blur(10px);
    /* Effetto sfocato sotto */

    /* NASCOSTA DI BASE */
    opacity: 0;
    transform: scale(0.95);
    /* Parte leggermente più piccola */
    pointer-events: none;

    /* ANIMAZIONE FLUIDA APPLE-STYLE */
    /* Questa curva crea l'effetto "rimbalzo" morbido alla fine */
    transition:
        transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1),
        opacity 0.2s ease,
        height 0.2s ease;
}

/* MODIFICA ALLE OPZIONI (IMPORTANTE) */
.custom-option {
    position: relative;
    z-index: 1;
    /* Il testo sta SOPRA la pillola */
    padding: 0.75rem 1rem 0.75rem 3rem;
    display: block;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    background: transparent;
    /* Rimuovi sfondo */
    transition: color 0.2s;
    border-radius: 12px;
}

/* Rimuoviamo il vecchio hover background, cambiamo solo il colore del testo */
.custom-option:hover {
    background-color: transparent;
    /* DISATTIVA VECCHIO HOVER */
    color: #0f172a;
    /* Slate 900 */
}

/* Stato selezionato (testo) */
.custom-option.selected {
    font-weight: 700;
    color: var(--primary);
}

/* MODIFICA QUESTA CLASSE ESISTENTE */
.custom-option {
    position: relative;
    z-index: 1;
    /* Flexbox per allineare icona e testo */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Spazio tra icona e testo */

    padding: 0.75rem 1rem 0.75rem 1rem;
    /* Padding bilanciato */
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    background: transparent;
    transition: color 0.2s;
    border-radius: 12px;
}

/* Quando l'opzione è selezionata o in hover */
.custom-option:hover i,
.custom-option.selected i {
    opacity: 1 !important;
    /* Icona diventa opaca piena */
    color: var(--primary);
    /* Si colora di Indigo */
}

/* Status specifici colori (Green/Red) al passaggio mouse */
.custom-option:hover .text-green-600 {
    color: #16a34a !important;
}

.custom-option:hover .text-red-500 {
    color: #dc2626 !important;
}

/* --- SCROLLABLE CONTAINER --- */
/* Permette lo scroll solo sulla griglia, mantenendo ferma la barra di ricerca */
.scroll-content {
    height: 100%;
    overflow-y: auto;
    padding: 2rem 2.5rem 8rem 2.5rem;
    /* Padding generoso: Top, Right, Bottom, Left */
    /* Nascondi scrollbar brutte ma mantieni funzionalità */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* --- CLIENT CARD PRO --- */
.client-card-pro {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    /* 24px */
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.client-card-pro:hover {
    transform: translateY(-4px);
    /* Leggero sollevamento */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: var(--primary);
    /* Bordo colorato all'hover */
}

/* Header della Card */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

/* Avatar Squircle Moderno */
.avatar-squircle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    /* Non cerchio perfetto, più moderno */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

/* Indicatore Status (Pallino pulsante) */
.status-dot-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 99px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.status-ok {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.status-ok .dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px #dcfce7;
}

.status-no {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

.status-no .dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px #fee2e2;
}

/* Box Statistiche Interno */
.stats-grid {
    background-color: #f8fafc;
    /* Slate 50 */
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

/* Footer Bottoni */
.card-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    /* 1fr per il primo bottone, auto per la freccia */
    gap: 0.75rem;
}

/* --- GO-CARDLESS STYLE (Statico & Arrotondato) --- */
.go-card {
    background: white;
    /* Bordo grigio chiaro e sottile */
    border: 1px solid #e5e7eb;
    /* Curve molto pronunciate (GoCardless style) */
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Nessuna ombra, look flat */
    box-shadow: none;
}

/* NESSUN HOVER */
.go-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

/* --- HEADER --- */
.go-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* Avatar "Soft" */
.go-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    /* Squircle morbido */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Status Badge a Pillola */
.go-badge {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    /* Sfondo molto leggero */
}

.badge-soft-green {
    background: #ecfdf5;
    color: #059669;
}

.badge-soft-red {
    background: #fef2f2;
    color: #dc2626;
}

.dot-fill {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* --- DATA BOX (Il box interno grigio/azzurro) --- */
.go-data-box {
    background: #f8fafc;
    /* Slate 50 ultra light */
    border-radius: 1rem;
    /* Curve coerenti */
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    /* Spazio prima del footer */
}

.go-data-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.go-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.go-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

/* --- FOOTER & BOTTONI (La parte distintiva) --- */
.go-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* Bottone Lungo Pillola (Outline) - STATICO */
.btn-go-outline {
    flex: 1;
    /* Prende tutto lo spazio disponibile */
    height: 3.5rem;
    /* Alto e cliccabile */
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    /* Pillola completa */
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Nessuna transizione */
}

.btn-go-outline:hover {
    background: white;
    /* Resta bianco */
    color: #334155;
    border-color: #e2e8f0;
}

/* Bottone Freccia Circolare (Viola/Blu) - STATICO */
.btn-go-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    /* Cerchio perfetto */
    background: #4f46e5;
    /* Indigo GoCardless */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    /* Non si schiaccia mai */
}

.btn-go-circle:hover {
    background: #4f46e5;
    /* Non cambia colore */
}

/* Bottone Configura (Arancio Soft) - STATICO */
.btn-go-warning {
    width: 100%;
    height: 3.5rem;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #ea580c;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-go-warning:hover {
    background: #fff7ed;
    /* Fermo */
    border-color: #ffedd5;
}

/* Card "Aggiungi" tratteggiata */
.go-card-dashed {
    border: 2px dashed #e2e8f0;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: #f8fafc;
    cursor: pointer;
}

.go-card-dashed:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* --- SIDEBAR SIBILL OVERRIDES --- */

/* Logo Header */
#main-sidebar>div:first-child>div:first-child {
    background: transparent;
    border-bottom: 1px solid #eaeaea;
    height: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Hide quick actions bar in Sibill mode */
.sidebar-quick-actions {
    display: none !important;
}

/* User Section at Bottom */
#main-sidebar>div:last-child {
    background: transparent;
    border-top: 1px solid #eaeaea;
    padding: 8px 0;
}

/* Hide team online widget in Sibill mode */
#sidebar-team-online-widget {
    display: none !important;
}

/* Nav Item Icon — no background, no border */
#main-sidebar .nav-item>div:first-child {
    border: none;
    box-shadow: none;
    background: transparent !important;
    width: auto;
    height: auto;
}

#main-sidebar .nav-item:hover>div:first-child {
    transform: none;
}

#main-sidebar .nav-item.active>div:first-child {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

/* User Dropdown Menu — light */
#user-dropdown-menu {
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

/* User Card in Sibill — simplified small avatar centered */
#main-sidebar .user-card-sibill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}

/* Hide user details in narrow sidebar */
#main-sidebar .user-details-box {
    display: none;
}

/* Hide chevron in narrow sidebar */
#user-menu-chevron {
    display: none;
}

/* Modifica per compensare l'header fisso */
#app-content {
    /* Altezza totale - Altezza Header (80px/5rem) */
    height: calc(100vh - 5rem);
    overflow-y: auto;
}

/* Animazione Dropdown */
#company-dropdown {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fix Scroll per Glassmorphism */
body {
    overflow: hidden;
    /* Blocca lo scroll del body */
}

/* Custom Scrollbar Invisibile ma funzionale (stile Mac) */
.scroll-smooth::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scroll-smooth::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-smooth::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.scroll-smooth::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Animazione Caricamento Soft */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stile Glass Dropdown */
#company-dropdown {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Cortex Specifics */
.cortex-nav-btn {
    position: relative;
    transition: all 0.2s ease;
}

.cortex-nav-btn.active::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #6366f1;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

/* Removed nested garbage from previous copy-paste errors */

/* --- SIDEBAR TRANSITIONS --- */
.sidebar-solid {
    white-space: nowrap;
    overflow: hidden;
    background: #000000;
}

/* Stato Collassato COMPLETAMENTE (0px) */
.sidebar-collapsed {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-right: none !important;
    opacity: 0;
}

/* --- VOICE MODE OVERLAY (ChatGPT Style) --- */
#voice-overlay {
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.95);
    /* Dark theme profondo */
}

.voice-orb {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.6);
    animation: breathe 3s infinite ease-in-out;
    position: relative;
    transition: all 0.3s ease;
}

.voice-orb.listening {
    animation: pulseListen 1.5s infinite ease-in-out;
    background: linear-gradient(135deg, #22c55e, #10b981);
    box-shadow: 0 0 80px rgba(34, 197, 94, 0.6);
    transform: scale(1.1);
}

.voice-orb.speaking {
    animation: pulseSpeak 0.5s infinite alternate;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes pulseListen {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes pulseSpeak {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.15);
        filter: brightness(1.3);
    }
}

/* --- SIDEBAR TOGGLE LOGIC (ChatGPT-style smooth width animation) --- */

/* Base Sidebar — smooth width transition */
#main-sidebar {
    width: 80px;
    min-width: 80px;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        min-width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.2s ease;
}

/* Inner content fade for smoothness */
#main-sidebar>div {
    transition: opacity 0.2s ease;
}

/* Closed State — width collapses to 0 */
body.sidebar-closed #main-sidebar {
    width: 0px !important;
    min-width: 0px !important;
    border-right-width: 0;
    pointer-events: none;
    opacity: 0;
}

/* Hide inner content instantly when closing */
body.sidebar-closed #main-sidebar>div {
    opacity: 0;
}

/* Hide Text Elements when Closed (kept for legacy/future use) */
body.sidebar-closed #main-sidebar .nav-text,
body.sidebar-closed #main-sidebar .section-label,
body.sidebar-closed #main-sidebar .user-details-box,
body.sidebar-closed #main-sidebar .logo-full {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Show Icon Logo when Closed */
body.sidebar-closed #main-sidebar .logo-icon {
    opacity: 1;
    position: static;
}

/* Center Items when Closed */
body.sidebar-closed #main-sidebar .nav-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.sidebar-closed #main-sidebar .logo-box {
    justify-content: center;
}

/* --- VOICE OVERLAY --- */
#voice-overlay {
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.95);
}

.voice-orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
}

.voice-orb.listening {
    background: linear-gradient(135deg, #22c55e, #10b981);
    box-shadow: 0 0 80px rgba(34, 197, 94, 0.6);
    transform: scale(1.1);
    animation: pulseListen 1.5s infinite;
}

.voice-orb.speaking {
    background: linear-gradient(135deg, #f97316, #ec4899);
    animation: pulseSpeak 0.5s infinite alternate;
}

@keyframes pulseListen {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes pulseSpeak {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* Scrollbar Custom (opzionale se non c'è già) */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

/* --- CORTEX VOICE MODE (Liquid Glass Style) --- */

#voice-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Base dell'Orbe */
.voice-orb-liquid {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Il Nucleo Solido */
.liquid-core {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    /* Forma organica */
    background: white;
    filter: blur(8px);
    opacity: 0.9;
    z-index: 2;
    animation: morph 6s linear infinite;
    /* Movimento fluido base */
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1);
}

/* 2. Il Bagliore Esterno (Glow) */
.liquid-glow {
    position: absolute;
    width: 180%;
    height: 180%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(30px);
    z-index: 1;
    opacity: 0.5;
    transition: all 0.5s ease;
}

/* 3. Anello di Ripple */
.liquid-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    z-index: 0;
}

/* --- STATI DELL'ORBE --- */

/* STATO 1: LISTENING (Ascolto - Bianco/Etereo) */
/* L'orbe "respira" lentamente in attesa */
.voice-orb-liquid.listening .liquid-core {
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    animation: morph 8s ease-in-out infinite alternate, breathe 3s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
}

.voice-orb-liquid.listening .liquid-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    /* Leggero Indigo */
}

/* STATO 2: PROCESSING (Elaborazione - Viola/Vortice) */
/* L'orbe gira veloce e diventa più piccolo e denso */
.voice-orb-liquid.processing {
    transform: scale(0.8);
}

.voice-orb-liquid.processing .liquid-core {
    background: linear-gradient(135deg, #c084fc, #6366f1);
    /* Purple to Indigo */
    border-radius: 50%;
    /* Diventa sferico */
    animation: spin 1s linear infinite;
    opacity: 1;
    box-shadow: 0 0 80px rgba(192, 132, 252, 0.8);
}

.voice-orb-liquid.processing .liquid-glow {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, transparent 60%);
    transform: scale(1.5);
}

/* STATO 3: SPEAKING (Parla - Colori Caldi/Vivi) */
/* L'orbe pulsa a ritmo (simulato) e cambia forma dinamicamente */
.voice-orb-liquid.speaking {
    transform: scale(1.1);
}

.voice-orb-liquid.speaking .liquid-core {
    /* Gradiente "Aurora Boreale" */
    background: linear-gradient(135deg, #22d3ee, #818cf8, #f472b6);
    background-size: 200% 200%;
    animation: morph 3s linear infinite, aurora 3s ease infinite;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.6);
}

.voice-orb-liquid.speaking .liquid-glow {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.5) 0%, transparent 70%);
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.voice-orb-liquid.speaking .liquid-ring {
    animation: ripple 2s linear infinite;
}

/* --- ANIMAZIONI KEYFRAMES --- */

@keyframes morph {
    0% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: rotate(0deg);
    }

    33% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    }

    66% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
        border-width: 0px;
    }
}

/* --- PRISMA AI STYLES (Clean & Organic) --- */

#voice-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* LA BOLLA FLUIDA */
.voice-blob {
    width: 160px;
    height: 160px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    position: relative;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Rimbalzo elastico */
    filter: blur(0px);
    /* Nitido e pulito */
    box-shadow:
        inset 10px 10px 40px rgba(255, 255, 255, 0.6),
        inset -10px -10px 40px rgba(0, 0, 0, 0.05),
        0 20px 60px rgba(79, 70, 229, 0.3);
    /* Ombra morbida indaco */
}

/* STATO 1: LISTENING (Ascolto - Calmo e Blu) */
.voice-blob.listening {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    /* Indigo to Blue */
    animation: morphBlob 6s ease-in-out infinite;
    transform: scale(1);
}

/* STATO 2: PROCESSING (Pensiero - Viola Pulsante) */
.voice-blob.processing {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    /* Violet to Fuchsia */
    border-radius: 50%;
    /* Diventa un cerchio perfetto che gira */
    animation: pulseThink 1.5s ease-in-out infinite;
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
}

/* STATO 3: SPEAKING (Parla - Colori Caldi e Attivi) */
.voice-blob.speaking {
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
    /* Rose to Amber */
    animation: morphBlobFast 3s ease-in-out infinite;
    transform: scale(1.1);
    box-shadow: 0 25px 70px rgba(244, 63, 94, 0.4);
}

/* ONDE CONCENTRICHE (Ripples) */
.active-ripple {
    animation: rippleEffect 2s linear infinite;
}

/* --- KEYFRAMES --- */

/* Morfologia lenta (Liquido) */
@keyframes morphBlob {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    33% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    }

    66% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Morfologia veloce (Parlato) */
@keyframes morphBlobFast {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: scale(1.1) rotate(0deg);
    }

    50% {
        border-radius: 60% 40% 30% 70% / 70% 30% 50% 50%;
        transform: scale(1.15) rotate(180deg);
    }
}

/* Pulsazione Pensiero */
@keyframes pulseThink {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        transform: scale(0.95);
        box-shadow: 0 0 0 30px rgba(139, 92, 246, 0);
    }

    100% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Cerchi che si allargano */
@keyframes rippleEffect {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
        border-width: 0px;
    }
}

/* --- CORTEX GLASSY TABS --- */
.cortex-tab {
    position: relative;
    border: 1px solid transparent;
}

/* Stato Attivo (Pillola Bianca Solida) */
.cortex-tab.active {
    background-color: #ffffff;
    color: #0f172a;
    /* Slate 900 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-color: #e2e8f0;
}

/* Transizioni fluide */
.cortex-view {
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Missing List Items */
.missing-item {
    background-image: repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.4),
            rgba(255, 255, 255, 0.4) 10px,
            rgba(248, 250, 252, 0.4) 10px,
            rgba(248, 250, 252, 0.4) 20px);
}

/* --- SIDEBAR FOLDING ANIMATION --- */
#main-sidebar {
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        min-width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Stato Chiuso (Folded) */
#main-sidebar.collapsed {
    width: 5rem !important;
    /* 80px */
}

/* Nascondi elementi testuali quando chiuso */
#main-sidebar.collapsed .nav-text,
#main-sidebar.collapsed .logo-text-box,
#main-sidebar.collapsed .section-label,
#main-sidebar.collapsed .user-details-box {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* Centra icone quando chiuso */
#main-sidebar.collapsed .nav-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

#main-sidebar.collapsed .nav-item i {
    margin-right: 0;
}

#main-sidebar.collapsed .logo-box {
    margin-right: 0;
}

/* Tooltip on hover per sidebar chiusa (Opzionale, effetto "pulito") */
#main-sidebar.collapsed .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Prompt Bar Styles */
#ai-prompt-input:focus {
    outline: none;
    box-shadow: none;
}

#ai-prompt-input {
    min-height: 44px;
    /* Altezza base confortevole */
}

/* Bottoni azione piccoli dentro le card chat */
.btn-action-sm {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
}

/* Scrollbar personalizzata per la chat */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #cbd5e1;
}

/* --- SOLID COMPANY DROPDOWN (Restyling) --- */

#company-dropdown {
    /* Rimuovi backdrop-blur vecchio */
    backdrop-filter: none !important;
    background-color: #ffffff !important;
    /* Bianco Puro Solido */

    /* Bordo e Ombra Premium */
    border: 1px solid #e2e8f0;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Ring sottile */

    border-radius: 16px;
    /* Curve moderne */
    padding: 6px;
    /* Padding interno per staccare il contenuto dal bordo */
    width: 300px;
    /* Larghezza fissa generosa */

    /* Animazione Apertura */
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* HEADER DEL DROPDOWN */
.dropdown-section-label {
    padding: 12px 12px 8px 12px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ITEM AZIENDA */
.company-item-solid {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.1s ease;
    border: 1px solid transparent;
    /* Per evitare salti al border hover */
    position: relative;
}

/* Hover State */
.company-item-solid:hover {
    background-color: #f8fafc;
    /* Slate 50 */
    border-color: #e2e8f0;
}

/* Active/Selected State */
.company-item-solid.active {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

/* AVATAR (Squircle Colorato) */
.c-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* TESTI */
.c-info {
    flex: 1;
    min-width: 0;
}

.c-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-meta {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* BADGE ONLINE / ACTIVE */
.badge-online {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #ecfdf5;
    /* Emerald 50 */
    color: #059669;
    /* Emerald 600 */
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #d1fae5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dot-pulse {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #d1fae5;
}

/* FOOTER (Gestisci Organizzazione) */
.dropdown-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.btn-manage-org {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4f46e5;
    /* Indigo 600 */
    background: transparent;
    transition: background 0.2s;
}

.btn-manage-org:hover {
    background-color: #eef2ff;
    /* Indigo 50 */
}

/* --- NEWS PUBLISH ANIMATIONS --- */
@keyframes scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(350px) rotate(720deg);
        opacity: 0;
    }
}

.animate-confetti {
    animation: confetti-fall 2s ease-out forwards;
}

/* ===== GLOBAL SEARCH — Command Palette ===== */

.gs-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gs-overlay.gs-visible {
    opacity: 1;
}

.gs-overlay.hidden {
    display: none !important;
}

.gs-palette {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 25px 80px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.96) translateY(-8px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.18s ease;
    opacity: 0;
}

.gs-visible .gs-palette {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* --- Input area --- */
.gs-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.gs-input-icon {
    flex-shrink: 0;
    color: #94a3b8;
}

.gs-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    font-weight: 500;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

.gs-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.gs-input-kbd {
    flex-shrink: 0;
    padding: 3px 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    font-family: system-ui, sans-serif;
}

/* --- Results scrollable area --- */
.gs-results {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.gs-results::-webkit-scrollbar {
    width: 5px;
}

.gs-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.gs-results::-webkit-scrollbar-track {
    background: transparent;
}

/* --- Hint (empty state) --- */
.gs-hint {
    padding: 48px 24px;
    text-align: center;
}

.gs-hint-icon {
    color: #cbd5e1;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.gs-hint-title {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.gs-hint-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.gs-hint-shortcuts {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 11px;
    color: #94a3b8;
}

.gs-hint-shortcuts kbd {
    padding: 2px 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    font-family: system-ui, sans-serif;
    margin: 0 2px;
}

/* --- Loading --- */
.gs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 24px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.gs-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: gs-spin 0.6s linear infinite;
}

@keyframes gs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Category groups --- */
.gs-category {
    padding: 4px 0;
}

.gs-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 4px;
}

.gs-category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gs-category-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.gs-category-count {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 10px;
}

/* --- Result rows --- */
.gs-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.12s ease;
    border-left: 3px solid transparent;
}

.gs-result-row:hover,
.gs-result-row.gs-selected {
    background: #f8fafc;
    border-left-color: #6366f1;
}

.gs-result-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.gs-result-info {
    flex: 1;
    min-width: 0;
}

.gs-result-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gs-result-sub {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.gs-result-action {
    flex-shrink: 0;
    color: #cbd5e1;
    transition: color 0.15s;
}

.gs-result-row:hover .gs-result-action,
.gs-result-row.gs-selected .gs-result-action {
    color: #6366f1;
}

/* --- Highlight match --- */
.gs-highlight {
    background: #fef08a;
    color: #1e293b;
    border-radius: 2px;
    padding: 0 2px;
}

/* --- Empty state --- */
.gs-empty {
    padding: 48px 24px;
    text-align: center;
}

.gs-empty-icon {
    color: #cbd5e1;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.gs-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.gs-empty-sub {
    font-size: 12px;
    color: #94a3b8;
}

/* --- Footer --- */
.gs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    font-size: 11px;
    color: #94a3b8;
}

.gs-footer-shortcuts kbd {
    padding: 1px 5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    font-family: system-ui, sans-serif;
    margin: 0 1px;
}

/* ═══════════════════════════════════════════════════════════════
   CALENDAR SUB-SIDEBAR
   Slides in from the left, anchored to the 80px main sidebar
   ═══════════════════════════════════════════════════════════════ */

/* Panel — expo-out spring feel on open, quick snap on close */
/* ═══════════════════════════════════════════════════════════
   Cal Sub-Sidebar — Sibill-inspired floating overlay
   ═══════════════════════════════════════════════════════════ */
.cal-subnav-panel {
    position: fixed;
    top: 0;
    left: 80px;
    height: 100vh;
    width: 232px;
    background: #fff;
    border-right: 1px solid #e7e5e4;
    box-shadow:
        8px 0 30px rgba(0, 0, 0, 0.07),
        2px 0 6px rgba(0, 0, 0, 0.03);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.15s ease;
    overflow-y: auto;
    scrollbar-width: none;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.cal-subnav-panel::-webkit-scrollbar {
    display: none;
}

/* Hover bridge — catches mouse in the gap between nav btn and panel */
.cal-subnav-panel::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
}

.cal-subnav-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Backdrop */
.cal-subnav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    /* below sidebar z-20 so navBtn hover still fires */
    background: transparent;
    pointer-events: none;
    transition: background 0.2s ease;
}

.cal-subnav-backdrop.open {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.03);
}

/* ── Page label at top ── */
.cal-subnav-header {
    padding: 22px 20px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0eeec;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.cal-subnav-header-icon {
    width: 20px;
    height: 20px;
    color: #a8a29e;
    flex-shrink: 0;
}

.cal-subnav-header-title {
    font-size: 13px;
    font-weight: 600;
    color: #78716c;
    letter-spacing: -0.01em;
}

/* ── Sections ── */
.cal-subnav-section {
    padding: 14px 12px 0 12px;
    margin-bottom: 0;
}

.cal-subnav-section:last-child {
    padding-bottom: 14px;
}

.cal-subnav-section+.cal-subnav-section {
    border-top: 1px solid #f0eeec;
}

.cal-subnav-section-title {
    font-size: 10.5px;
    font-weight: 600;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    padding: 0 8px 4px;
}

/* ── Items ── */
.cal-subnav-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 13.5px;
    font-weight: 420;
    color: #44403c;
    line-height: 1;
    position: relative;
    transition: background 0.12s ease, color 0.12s ease;
    font-family: inherit;
}

.cal-subnav-item:hover {
    background: #f5f5f4;
    color: #1c1917;
}

.cal-subnav-item.active {
    font-weight: 580;
    color: #1c1917;
    background: #f5f5f4;
}

.cal-subnav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #292524;
    border-radius: 0 2px 2px 0;
}

/* ── Entrance ── */
.cal-subnav-header,
.cal-subnav-section {
    opacity: 0;
    transform: translateX(-5px);
}

.cal-subnav-panel.open .cal-subnav-header {
    animation: calSecIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0.03s both;
}

.cal-subnav-panel.open .cal-subnav-section:nth-child(2) {
    animation: calSecIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.cal-subnav-panel.open .cal-subnav-section:nth-child(3) {
    animation: calSecIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) 0.09s both;
}

@keyframes calSecIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nav button — sub-open state */
#main-sidebar #nav-flows.sub-open {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

#main-sidebar #nav-flows.sub-open::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

/* ══ Helios Flyout Drawer — shared portal component ══
   Elements are appended to <body> to escape any stacking context */
.cx-flyout-overlay {
    position: fixed;
    inset: 0;
    z-index: 9499;
    background: transparent;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: background .28s ease, backdrop-filter .28s ease;
    pointer-events: none;
}

.cx-flyout-overlay.open {
    background: rgba(10, 10, 14, 0.42);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    pointer-events: auto;
}

.cx-flyout-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(500px, calc(100vw - 32px));
    height: 100dvh;
    z-index: 9500;
    background: #fff;
    box-shadow:
        -1px 0 0 rgba(0, 0, 0, 0.05),
        -4px 0 8px rgba(0, 0, 0, 0.06),
        -14px 0 28px rgba(0, 0, 0, 0.09),
        -36px 0 56px rgba(0, 0, 0, 0.10),
        -64px 0 96px rgba(0, 0, 0, 0.06);
    border-left: 1px solid rgba(0, 0, 0, 0.07);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.32, 0, .24, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cx-flyout-panel.open {
    transform: translateX(0);
}

.cx-flyout-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.85) 30%,
            rgba(255, 255, 255, 0.85) 70%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.cx-flyout-header {
    flex: none;
    background: linear-gradient(180deg, #fdfdfd 0%, #fafafa 100%);
    border-bottom: 1px solid #ebebeb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    padding: 20px 24px 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cx-flyout-header-content {
    flex: 1;
    min-width: 0;
}

.cx-flyout-tagline {
    font-size: 10px;
    font-weight: 700;
    color: #b4b8c0;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 5px;
}

.cx-flyout-title {
    font-size: 15px;
    font-weight: 700;
    color: #0d0d0d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cx-flyout-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 3px;
}

.cx-flyout-dismiss {
    padding: 5px;
    background: transparent;
    border: none;
    color: #c4c8d0;
    border-radius: 7px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
}

.cx-flyout-dismiss:hover {
    background: #f1f2f4;
    color: #374151;
}

.cx-flyout-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px;
}

.cx-flyout-footer {
    flex: none;
    border-top: 1px solid #ebebeb;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.9) inset;
    padding: 14px 22px;
    background: linear-gradient(180deg, #fafafa 0%, #f7f7f8 100%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.cx-detail-card {
    background: #f7f7f8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.cx-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(101, 106, 118, .1);
    font-size: 13px;
}

.cx-detail-row:last-child {
    border-bottom: none;
}

.cx-detail-label {
    color: #737373;
    font-size: 12px;
}

.cx-detail-value {
    color: #0d0d0d;
    font-weight: 600;
    font-size: 13px;
}

/* ── Drawer Form (shared — ported from appointments) ── */
.drawer-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drawer-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drawer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.drawer-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #57534e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.drawer-form-optional {
    font-weight: 400;
    color: #A8A29E;
    font-size: 11px;
}

.drawer-form-input,
.drawer-form-select {
    padding: 8px 11px;
    border: 1px solid #E8E3DB;
    border-radius: 8px;
    font-size: 13px;
    color: #1c1917;
    background: #fff;
    outline: none;
    transition: border .15s, box-shadow .15s;
    width: 100%;
}

.drawer-form-input:focus,
.drawer-form-select:focus {
    border-color: #292524;
    box-shadow: 0 0 0 3px rgba(41, 37, 36, .08);
}

.drawer-form-textarea {
    padding: 8px 11px;
    border: 1px solid #E8E3DB;
    border-radius: 8px;
    font-size: 13px;
    color: #1c1917;
    background: #fff;
    outline: none;
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
    transition: border .15s, box-shadow .15s;
    font-family: inherit;
    width: 100%;
}

.drawer-form-textarea:focus {
    border-color: #292524;
    box-shadow: 0 0 0 3px rgba(41, 37, 36, .08);
}

.drawer-form-hint {
    font-size: 11px;
    color: #A8A29E;
}

.drawer-form-divider {
    border: none;
    border-top: 1px solid #F0EBE3;
    margin: 0;
}

.drawer-summary-card {
    background: #FCFAF7;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #F0EBE3;
}

.dsc-supplier {
    font-size: 13px;
    font-weight: 700;
    color: #1c1917;
}

.dsc-meta {
    font-size: 12px;
    color: #A8A29E;
    margin-top: 2px;
}

.cx-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cx-btn-dark {
    background: #292524;
    color: #fff;
}

.cx-btn-dark:hover:not(:disabled) {
    background: #44403c;
}

.cx-btn-dark:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.cx-btn-outline {
    background: #fff;
    color: #1c1917;
    border: 1px solid #E8E3DB;
}

.cx-btn-outline:hover {
    background: #F0EBE3;
}

.cx-btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cx-btn-danger:hover {
    background: #fee2e2;
}