/* Stili Generali */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #F8FAFC; /* Slate-50 */
}

/* Layout Sidebar */
.main-content {
    transition: margin-left 0.3s ease-in-out;
}
@media (min-width: 768px) {
    .main-content {
        margin-left: 16rem; /* 64 = 16rem (w-64) */
    }
}

/* Cards & Containers */
.card {
    background: white;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #E2E8F0; /* slate-200 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Tab Styles */
.tab {
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    color: #64748B; /* slate-500 */
}
.tab:hover {
    color: #4f46e5;
}
.tab-active { 
    border-bottom-color: #4f46e5; 
    color: #4f46e5; 
    font-weight: 600; 
}

/* Animazioni */
.fade-in { 
    animation: fadeIn 0.5s ease-in-out; 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}


/* --- MODALE --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 500px;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

