/* Common skeleton styles shared across pages */
.sidebar-user-skeleton .user-avatar,
.sidebar-user-skeleton .user-name,
.sidebar-user-skeleton .user-role {
    background: linear-gradient(90deg, var(--color-bg-elevated) 25%, rgba(255,255,255,0.08) 50%, var(--color-bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
}

.sidebar-user-skeleton .user-name {
    height: 1em;
    width: 100px;
    border-radius: 4px;
}

.sidebar-user-skeleton .user-role {
    height: 0.75em;
    width: 70px;
    border-radius: 4px;
    margin-top: 4px;
}

.sidebar-user-skeleton .user-avatar {
    background: var(--color-bg-elevated);
    color: transparent;
}

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

.skeleton-hidden {
    display: none;
}

/* ============================================
   SIDEBAR USER INFO — OVERFLOW FIX
   ============================================ */

/* Parent flex container must have min-width: 0 to allow children to shrink */
.sidebar-user-info,
.user-info {
    min-width: 0;
}

/* Fix #4 — user-name troncata su mobile */
.user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
}

/* ============================================
   RESPONSIVE - MOBILE & TABLET
   ============================================ */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    /* Stats grid responsive */
    .stats-grid,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .page-actions {
        width: 100%;
    }
    
    .page-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards */
    .card {
        padding: var(--space-md);
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Custom scrollbar per table-container */
    .table-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: var(--color-bg);
        border-radius: 3px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 3px;
        transition: background var(--duration-normal) var(--ease-out);
    }
    
    .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--color-accent);
    }
    
    /* Firefox scrollbar */
    .table-container {
        scrollbar-width: thin;
        scrollbar-color: var(--color-border) var(--color-bg);
    }
    
    /* Modal */
    .modal {
        max-width: 95vw;
        max-height: 90vh;
        margin: var(--space-sm);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--space-md);
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Filter pills */
    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Custom scrollbar per filter-pills già presente più avanti nel file */
    
    .filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Report/Poll/Event cards */
    .report-card,
    .poll-card,
    .event-card,
    .tournament-card {
        padding: var(--space-md);
    }
    
    .report-header,
    .poll-header,
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Category radio cards */
    .form-radio-card .radio-card-content {
        padding: var(--space-sm);
    }
    
    .category-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Product grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team card */
    .team-card {
        padding: var(--space-md);
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    /* Single column layouts */
    .stats-grid,
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    /* Page title smaller */
    .page-title {
        font-size: 2rem;
    }
    
    /* Page number smaller */
    .page-number {
        font-size: 3rem;
    }
    
    /* Cards even smaller padding */
    .card {
        padding: var(--space-sm);
    }
    
    /* Stats cards */
    .stats-card {
        padding: var(--space-md);
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    /* Category radio - full width */
    .form-radio-card .radio-card-content {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    /* Product grid single column */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal full screen on very small devices */
    .modal {
        max-width: 100%; /* Cambiato da 100vw per evitare overflow scrollbar */
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    /* Form inputs larger tap targets */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* Prevents iOS zoom */
        padding: var(--space-sm);
    }
    
    /* Buttons larger */
    .btn {
        padding: var(--space-sm) var(--space-md);
        min-height: 44px; /* iOS recommended tap target */
    }
    
    /* Filter pills scrollable */
    .filter-pills {
        gap: var(--space-xs);
    }
    
    /* Dropdown full width */
    .dropdown-menu {
        min-width: 200px;
    }
}

/* ============================================
   FIX OVERFLOW ISSUES
   ============================================ */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body,
    .app-container,
    .main-content {
        overflow-x: hidden;
        max-width: 100%; /* Era 100vw - causa overflow con scrollbar */
    }
    
    /* Ensure cards don't overflow */
    .card,
    .modal,
    .page-content > * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Long text wrapping */
    .report-title,
    .poll-title,
    .event-title,
    .tournament-title {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Tables responsive */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 calc(-1 * var(--space-md));
        padding: 0 var(--space-md);
    }
    
    /* Image responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Prevent long URLs from breaking layout */
    a {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================
   TOUCH IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    /* Larger tap targets for mobile */
    .btn,
    .nav-item,
    .filter-pill,
    .form-radio-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for touch */
    .nav-item {
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Scrollbar styling for touch devices */
    .filter-pills::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-pills::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 2px;
    }
    
    .filter-pills::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* ============================================
   IOS SAFARI FIXES
   ============================================ */
@media (max-width: 768px) {
    /* Prevent zoom on input focus (iOS Safari) */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Fix iOS Safari bottom bar issues */
    .modal {
        height: -webkit-fill-available;
    }
    
    /* Smooth scrolling for iOS */
    .modal-body,
    .filter-pills,
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   PROFILO PAGE
   ============================================ */

/* Profile Modal - Enhanced Design */
.profile-modal {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

/* Profile Modal Header */
.profile-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    position: relative;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-card) 100%);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: all var(--duration-normal) var(--ease-out);
}

.profile-avatar .icon {
    width: 32px;
    height: 32px;
}

.profile-avatar-wrapper:hover .profile-avatar {
    transform: scale(1.05);
    border-color: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(255, 92, 0, 0.3);
}

.profile-status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--color-bg-elevated);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.profile-header-text {
    flex: 1;
    min-width: 0;
}

.profile-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.profile-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 4px 0 0;
    transition: color var(--duration-fast) ease;
}

.profile-modal-header:hover .profile-subtitle {
    color: var(--color-accent);
}

/* Profile Modal Body */
.profile-modal-body {
    padding: var(--space-lg);
    max-height: calc(80vh - 160px);
    overflow-y: auto;
}

.profile-modal-body::-webkit-scrollbar {
    width: 6px;
}

.profile-modal-body::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: 3px;
}

.profile-modal-body::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
    transition: background var(--duration-fast) ease;
}

.profile-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Profile Content */
.profile-content {
    animation: fadeInUp var(--duration-normal) var(--ease-out);
}

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

/* Profile Sections */
.profile-section {
    margin-bottom: var(--space-xl);
    animation: fadeInSection var(--duration-slow) var(--ease-out backwards);
}

.profile-section:nth-child(1) { animation-delay: 0ms; }
.profile-section:nth-child(2) { animation-delay: 100ms; }
.profile-section:nth-child(3) { animation-delay: 200ms; }

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

.section-header {
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-transform: uppercase;
}

.section-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

/* Profile Info Grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: default;
}

.profile-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-accent);
    transition: height var(--duration-normal) var(--ease-out);
}

.profile-info-item:hover,
.profile-info-item:focus {
    border-color: var(--color-accent);
    background: var(--color-bg-card);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    outline: none;
}

.profile-info-item:hover::before,
.profile-info-item:focus::before {
    height: 100%;
}

.profile-info-item-highlight {
    border-color: rgba(255, 92, 0, 0.3);
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, rgba(255, 92, 0, 0.05) 100%);
}

.profile-info-item-full {
    grid-column: 1 / -1;
}

.profile-info-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--duration-fast) ease;
}

.info-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: all var(--duration-fast) ease;
}

.profile-info-item:hover .info-icon,
.profile-info-item:focus .info-icon {
    opacity: 1;
    color: var(--color-accent);
}

.profile-info-item:hover .profile-info-label,
.profile-info-item:focus .profile-info-label {
    color: var(--color-accent);
}

.profile-info-value {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(255, 92, 0, 0.15);
    border: 1px solid rgba(255, 92, 0, 0.3);
    border-radius: 16px;
    color: var(--color-accent);
    font-size: 0.875rem;
    width: fit-content;
    transition: all var(--duration-fast) ease;
}

.profile-info-item:hover .profile-role-badge,
.profile-info-item:focus .profile-role-badge {
    background: rgba(255, 92, 0, 0.25);
    border-color: var(--color-accent);
}

/* Activity Stats */
.activity-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.activity-stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.activity-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 92, 0, 0.1) 50%, transparent 100%);
    transition: height var(--duration-normal) var(--ease-out);
}

.activity-stat-card:hover,
.activity-stat-card:focus {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 92, 0, 0.2);
    outline: none;
}

.activity-stat-card:hover::after,
.activity-stat-card:focus::after {
    height: 4px;
}

.activity-stat-card-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.activity-stat-card-disabled:hover {
    transform: none;
    border-color: var(--color-border);
    box-shadow: none;
}

.stat-icon-wrapper {
    position: relative;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--duration-normal) var(--ease-out);
}

.activity-stat-card:hover .stat-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 92, 0, 0.4);
}

.stat-icon .icon {
    width: 24px;
    height: 24px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.activity-stat-card:hover .stat-indicator,
.activity-stat-card:focus .stat-indicator {
    opacity: 1;
}

/* Security Section */
.security-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.security-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #3b82f6;
}

.alert-icon .icon {
    width: 20px;
    height: 20px;
}

.alert-content {
    flex: 1;
}

.alert-text {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

.security-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.security-btn .btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.security-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Skeleton States */
.profile-skeleton-container {
    animation: fadeIn var(--duration-normal) ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-skeleton-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--color-bg-elevated) 25%, rgba(255,255,255,0.08) 50%, var(--color-bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
}

.skeleton-text-group {
    flex: 1;
}

.skeleton-line {
    background: linear-gradient(
        90deg,
        var(--color-bg-elevated) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        var(--color-bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

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

/* Password Actions - Legacy Support */
.password-actions {
    display: flex;
    gap: var(--space-md);
}

.password-actions button {
    min-width: 200px;
}

/* Responsive profilo */
@media (max-width: 768px) {
    .profile-modal-header {
        padding: var(--space-md);
    }

    .profile-header-content {
        gap: var(--space-sm);
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .profile-avatar .icon {
        width: 24px;
        height: 24px;
    }

    .profile-title {
        font-size: 1.5rem;
    }

    .profile-subtitle {
        font-size: 0.8rem;
    }

    .profile-modal-body {
        padding: var(--space-md);
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .profile-info-item {
        padding: var(--space-sm);
    }

    .activity-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .activity-stat-card {
        padding: var(--space-sm) var(--space-md);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon .icon {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .password-actions {
        flex-direction: column;
    }

    .password-actions button {
        min-width: auto;
        width: 100%;
    }

    .security-btn {
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .profile-modal {
        max-width: 100% !important; /* Era 100vw - causa overflow con scrollbar */
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .profile-modal-body {
        max-height: calc(100vh - 120px);
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .profile-avatar,
    .profile-info-item,
    .activity-stat-card,
    .stat-icon,
    .security-btn .btn-arrow,
    .profile-subtitle,
    .info-icon,
    .profile-role-badge {
        transition: none !important;
        animation: none !important;
    }

    .profile-content,
    .profile-section {
        animation: none !important;
    }

    .profile-status-indicator {
        animation: none !important;
    }

    .skeleton-line,
    .skeleton-avatar {
        animation: none !important;
        background: var(--color-bg-elevated) !important;
    }
}
/* ============================================
   SKELETON LOADERS - Tabelle & Liste
   ============================================ */

.skeleton-row-loader td {
    padding: 16px 12px;
}

.skeleton-row-loader .skeleton-line {
    background: linear-gradient(90deg, var(--color-bg-elevated) 25%, rgba(255,255,255,0.08) 50%, var(--color-bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.skeleton-calendar-loader {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.skeleton-calendar-day {
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-elevated);
}

.skeleton-calendar-row {
    display: flex;
    gap: 8px;
    justify-content: space-around;
}

.skeleton-interrogation-loader .interrogation-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.skeleton-interrogation-loader .skeleton-line {
    background: linear-gradient(90deg, var(--color-bg-elevated) 25%, rgba(255,255,255,0.08) 50%, var(--color-bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.skeleton-projects-loader .project-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.skeleton-projects-loader .skeleton-line {
    background: linear-gradient(90deg, var(--color-bg-elevated) 25%, rgba(255,255,255,0.08) 50%, var(--color-bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

/* ============================================
   COGESTIONE BLOCCATA — BANNER AVVISO GLOBALE
   Mostrato su tutte le pagine studente quando
   la cogestione non è attiva o è chiusa.
   ============================================ */

.cogestione-blocked-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.cogestione-blocked-banner[data-status="closed"] {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.22);
}

.cogestione-blocked-banner strong {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.cogestione-blocked-banner i[data-lucide] {
    margin-top: 2px;
    color: #818cf8;
    flex-shrink: 0;
}
