/* ==========================================================
   LORRI MEDIA HUB - DESIGN SYSTEM UNIFICATO
   Variabili comuni per layout, spacing, tipografia
   Palette colori specifiche per app mantenute nei CSS specifici
   ========================================================== */

:root {
    /* === COLORI BASE (Dark Theme default) === */
    --bg: #09090b;
    --bg-card: #18181b;
    --bg-hover: #27272a;
    --bg-active: #3f3f46;
    --bg-input: #1f1f23;
    --border: #3f3f46;
    --border-hover: #52525b;
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #fbbf24;
    
    /* === TIPOGRAFIA === */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 1rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* === SPACING === */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    
    /* === BORDERS & RADIUS === */
    --radius: 8px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    
    --border-width: 1px;
    
    /* === LAYOUT === */
    --header-height: 56px;
    --sidebar-width: 260px;
    --sidebar-width-large: 340px;
    
    /* === Z-INDEX === */
    --z-dropdown: 1000;
    --z-modal: 5000;
    --z-overlay: 200;
    
    /* === TRANSITIONS === */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* === SHADOWS === */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    
    /* === BACKDROP === */
    --backdrop-blur: blur(10px);
    --backdrop-bg: rgba(0, 0, 0, 0.8);
}

/* === RESET COMUNE === */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* === UTILITY CLASSES === */
.hidden { display: none !important; }
.mobile-only { display: none !important; }
.desktop-only { display: block; }
.full-width { width: 100%; }
.flex-grow { flex: 1; }

/* === FOCUS RING ACCESSIBILE === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.lms-btn:focus-visible {
    outline: 2px solid var(--primary, #10b981);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Stato hover link coerente */
a:hover {
    color: var(--primary, #10b981);
}

/* === CARD & BADGE SYSTEM === */
.card-base {
    background: var(--bg-card, #18181b);
    border: var(--border-width) solid var(--border, #3f3f46);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.2));
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.3));
    border-color: rgba(255,255,255,0.08);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    color: var(--text-main, #f4f4f5);
    border: var(--border-width) solid rgba(255,255,255,0.08);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: var(--border-width) solid var(--border, #3f3f46);
    color: var(--text-muted, #a1a1aa);
    background: var(--bg-card, #18181b);
    font-size: 0.85rem;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Riduci animazioni se l’utente lo preferisce */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* === HEADER UNIFICATO === */
.lms-header {
    height: var(--header-height);
    background: var(--bg-panel, #18181b);
    border-bottom: var(--border-width) solid var(--border, #3f3f46);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
    flex-shrink: 0;
    position: relative;
    z-index: 50;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.lms-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 200px;
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.lms-brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.lms-brand-text {
    color: var(--text-main, #f4f4f5);
    white-space: nowrap;
}

.lms-brand-text span {
    color: var(--primary);
}

.lms-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: flex-end;
    flex: 1;
}

.lms-user-welcome {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    margin-right: var(--spacing-md);
}

.lms-desktop-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* === BOTTONI UNIFICATI === */

/* Base button reset */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border-radius: var(--radius);
    font-size: 0.88rem;
    padding: 9px 16px;
    white-space: nowrap;
    line-height: 1.3;
}

.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.btn-ghost:active {
    transform: scale(0.97);
}

/* Primary - usa il colore identitario dell'app */
.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover, var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Secondary - bordo e sfondo trasparente */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text);
}

/* Danger - rosso per azioni distruttive */
.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Ghost - minimalista */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: var(--spacing-sm);
    border-radius: var(--radius-full);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Small variant */
.btn-small {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* Icon-only button */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--border-hover);
}

/* === DROPDOWN MENU UNIFICATO === */
.lms-dropdown {
    position: absolute;
    top: calc(var(--header-height) + var(--spacing-sm));
    right: var(--spacing-xl);
    width: 260px;
    background: var(--bg-panel, #18181b);
    border: var(--border-width) solid var(--border, #3f3f46);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: var(--z-dropdown);
    overflow: hidden;
    animation: popIn 0.1s ease-out;
    transform-origin: top right;
}

.lms-dropdown-item {
    background: transparent;
    color: var(--text-main, #f4f4f5);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: left;
    border-bottom: var(--border-width) solid var(--border, #3f3f46);
    font-size: 0.9rem;
    transition: background var(--transition-base);
    text-decoration: none;
    display: block;
    cursor: pointer;
    border-left: none;
    border-right: none;
    border-top: none;
}

.lms-dropdown-item:last-child {
    border-bottom: none;
}

.lms-dropdown-item:hover {
    background: var(--bg-hover, #3f3f46);
    color: var(--text-main, #f4f4f5);
}

.lms-dropdown-header {
    padding: var(--spacing-lg);
    border-bottom: var(--border-width) solid var(--border, #3f3f46);
    color: var(--primary);
    font-weight: var(--font-weight-bold);
}

/* === MODALI UNIFICATE === */
.lms-overlay {
    position: fixed;
    inset: 0;
    background: var(--backdrop-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.lms-modal {
    background: var(--bg-panel, #18181b);
    border: var(--border-width) solid var(--border, #3f3f46);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popIn 0.2s ease;
}

.lms-modal-large {
    max-width: 1200px;
    height: 85vh;
    width: 95%;
}

.lms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: var(--border-width) solid var(--border, #3f3f46);
    flex-shrink: 0;
}

.lms-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-main, #f4f4f5);
}

.lms-modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    flex: 1;
}

/* Fix globale scroll mobile per tutti i modal-body generici */
.modal-body {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.lms-modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: rgba(0, 0, 0, 0.2);
    border-top: var(--border-width) solid var(--border, #3f3f46);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.lms-btn-close {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    color: var(--text-muted, #a1a1aa);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lms-btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main, #f4f4f5);
}

/* === INPUT UNIFICATI === */
.lms-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-input, #27272a);
    border: var(--border-width) solid var(--border, #3f3f46);
    border-radius: var(--radius-md);
    color: var(--text-main, #f4f4f5);
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: all var(--transition-base);
}

.lms-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 16, 185, 129), 0.1);
}

.lms-input::placeholder {
    color: var(--text-muted, #a1a1aa);
}

/* === ANIMAZIONI & MICRO-INTERAZIONI === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Classi di utility per animazioni */
.anim-fade-in { animation: fadeIn 0.3s ease forwards; }
.anim-fade-in-up { animation: fadeInUp 0.3s ease forwards; }
.anim-slide-in-right { animation: slideInRight 0.3s ease forwards; }
.anim-slide-in-left { animation: slideInLeft 0.3s ease forwards; }
.anim-bounce-in { animation: bounceIn 0.5s ease forwards; }
.anim-pop-in { animation: popIn 0.2s ease forwards; }
.anim-shake { animation: shake 0.5s ease; }
.anim-pulse { animation: pulse 1.5s ease-in-out infinite; }
.anim-spin { animation: spin 1s linear infinite; }

/* Staggered animations */
.anim-stagger > *:nth-child(1) { animation-delay: 0ms; }
.anim-stagger > *:nth-child(2) { animation-delay: 50ms; }
.anim-stagger > *:nth-child(3) { animation-delay: 100ms; }
.anim-stagger > *:nth-child(4) { animation-delay: 150ms; }
.anim-stagger > *:nth-child(5) { animation-delay: 200ms; }
.anim-stagger > *:nth-child(6) { animation-delay: 250ms; }
.anim-stagger > *:nth-child(7) { animation-delay: 300ms; }
.anim-stagger > *:nth-child(8) { animation-delay: 350ms; }

/* Hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.02);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(var(--primary-rgb, 16, 185, 129), 0.3);
}

/* Click feedback */
.click-shrink:active {
    transform: scale(0.96);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Success/Error states */
.success-flash {
    animation: successPop 0.4s ease;
}

.error-shake {
    animation: shake 0.5s ease;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
        opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
    }

.ripple:active::after {
    transform: scale(2.5);
        opacity: 1;
    transition: 0s;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* (Compact view rimossa) */

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .lms-header {
        padding: 0 var(--spacing-lg);
    }
    
    .lms-desktop-group,
    .lms-user-welcome {
        display: none;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .lms-brand-text {
        font-size: 1rem;
    }
    
    .lms-brand-logo {
        height: 28px;
    }
}

/* === VALIDAZIONE FORM INLINE === */

/* Stato errore */
.input-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.input-error:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.field-error-msg {
    display: block;
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 4px;
    padding-left: 2px;
    animation: fieldMsgIn 0.2s ease;
}

/* Stato successo */
.input-success {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.input-success:focus {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.field-success-msg {
    display: block;
    color: var(--success);
    font-size: 0.75rem;
    margin-top: 4px;
    padding-left: 2px;
    animation: fieldMsgIn 0.2s ease;
}

/* Container gruppo campo + messaggio */
.form-field {
    position: relative;
}

.form-field .field-error-msg,
.form-field .field-success-msg {
    position: absolute;
    bottom: -18px;
    left: 0;
}

/* Animazione messaggio */
@keyframes fieldMsgIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shake su errore */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.input-shake {
    animation: inputShake 0.35s ease;
}

/* === EMPTY STATE UNIFICATO === */

.lms-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    gap: 12px;
    min-height: 200px;
}

.lms-empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.08);
    color: var(--primary, #6366f1);
    margin-bottom: 4px;
}

.lms-empty-icon svg {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

.lms-empty-icon .emoji {
    font-size: 1.6rem;
    line-height: 1;
}

.lms-empty-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.lms-empty-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
}

.lms-empty-action {
    margin-top: 8px;
}

.lms-empty-action button,
.lms-empty-action a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius, 8px);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.lms-empty-action button:hover,
.lms-empty-action a:hover {
    opacity: 0.85;
}

/* Variante compatta (per inline, sidebar, piccole sezioni) */
.lms-empty.compact {
    padding: 20px 16px;
    min-height: 100px;
    gap: 8px;
}

.lms-empty.compact .lms-empty-icon {
    width: 40px;
    height: 40px;
}

.lms-empty.compact .lms-empty-icon svg {
    width: 20px;
    height: 20px;
}

.lms-empty.compact .lms-empty-title {
    font-size: 0.85rem;
}

.lms-empty.compact .lms-empty-subtitle {
    font-size: 0.75rem;
}

/* === SKELETON LOADER === */

@keyframes skeletonPulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}

.skeleton {
    background: var(--border, #27272a);
    border-radius: var(--radius-sm, 6px);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: var(--border, #27272a);
    animation: skeletonPulse 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.h-lg { height: 16px; }
.skeleton-line.h-sm { height: 8px; }

/* Card skeleton */
.skeleton-card {
    background: var(--bg-card, #18181b);
    border: 1px solid var(--border, #27272a);
    border-radius: var(--radius, 8px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-card .skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border, #27272a);
    animation: skeletonPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-card .skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-card .skeleton-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* List item skeleton (per eventi, sopralluoghi, clienti) */
.skeleton-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border, #27272a);
}

.skeleton-list-item .skeleton-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border, #27272a);
    animation: skeletonPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
    margin-top: 4px;
}

.skeleton-list-item .skeleton-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Calendar skeleton (griglia) */
.skeleton-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 16px;
}

.skeleton-calendar .skeleton-day {
    aspect-ratio: 1;
    min-height: 50px;
    border-radius: var(--radius-sm, 6px);
    background: var(--border, #27272a);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Ritardo progressivo per effetto onda */
.skeleton-list-item:nth-child(2),
.skeleton-calendar .skeleton-day:nth-child(2) { animation-delay: 0.1s; }
.skeleton-list-item:nth-child(3),
.skeleton-calendar .skeleton-day:nth-child(3) { animation-delay: 0.2s; }
.skeleton-list-item:nth-child(4),
.skeleton-calendar .skeleton-day:nth-child(4) { animation-delay: 0.3s; }
.skeleton-list-item:nth-child(5),
.skeleton-calendar .skeleton-day:nth-child(5) { animation-delay: 0.15s; }

.skeleton-list-item:nth-child(2) .skeleton-line,
.skeleton-list-item:nth-child(2) .skeleton-badge { animation-delay: 0.1s; }
.skeleton-list-item:nth-child(3) .skeleton-line,
.skeleton-list-item:nth-child(3) .skeleton-badge { animation-delay: 0.2s; }
.skeleton-list-item:nth-child(4) .skeleton-line,
.skeleton-list-item:nth-child(4) .skeleton-badge { animation-delay: 0.3s; }

/* === SCROLLBAR UNIFICATA === */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border, #3f3f46);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

