:root {
    --color-purple: #8b5cf6;
    --color-yellow: #fbbf24;
    --color-dark: #1f2937;
    --color-cyan: #06b6d4;
    --color-blue: #3b82f6;
    --color-red: #ef4444;
    --color-green: #10b981;
    --color-gray: #6b7280;
}

body {
    background-color: #f3f4f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card {
    padding: 25px;
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.stat-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.stat-yellow { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.stat-dark { background: linear-gradient(135deg, #374151 0%, #1f2937 100%); }
.stat-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.stat-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.stat-red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.stat-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-gray { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }

.table-responsive {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    /* Sfondo dinamico impostato da PHP */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain; /* Usa l’intera immagine senza tagliarla */
    background-color: #f3f4f6; /* Colore di riempimento per eventuali bande */
    background-attachment: scroll; /* Evita distorsioni */
}

/* ======== LOGIN PAGE ======== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5; /* Grigio chiaro fisso */
    position: relative; /* Necessario per posizionare la card */
}

/* Rimuoviamo l'overlay e il backdrop-filter, non più necessari con sfondo fisso */
.login-container::before {
    content: none; /* Rimuove l'overlay */
}

/* Card di login */
.login-card {
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* Ombra più leggera */
    background: #ffffff; /* Sfondo bianco per la card */
    border-radius: 12px;
}

footer {
    margin-top: auto;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 15px;
    border-left: 3px solid #e5e7eb;
    margin-left: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
}

.timeline-item.completed::before {
    background: #10b981;
}

@media (max-width: 768px) {
    .stat-card h3 {
        font-size: 2rem;
    }
}