/*
==================================================
GESTIONALE CUSTOM - GDPR COMPLIANCE CSS
==================================================
Stili per le pagine di compliance GDPR.
Contiene:
- Header compliance con gradiente viola
- Stat cards con icone e hover effect
- Progress bar conformità
- Checklist items con stati (completed/incomplete)
- Badge priorità (high/medium/low)
- Filtri stato GDPR
- Empty state
- Animazioni slideIn
- Responsive design mobile
==================================================
*/


.compliance-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.compliance-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: white;
}

.compliance-header p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.compliance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card-icon.success { background: #d4edda; color: #28a745; }
.stat-card-icon.warning { background: #fff3cd; color: #ffc107; }
.stat-card-icon.info { background: #d1ecf1; color: #17a2b8; }
.stat-card-icon.danger { background: #f8d7da; color: #dc3545; }

.stat-card-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
}

.stat-card-subtitle {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 8px;
}

.stat-card-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.stat-card-tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 11px;
    line-height: 1.4;
}

.stat-card-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.stat-card-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.progress-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-label-text {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.progress-label-percentage {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.progress-bar-wrapper {
    position: relative;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.checklist-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.checklist-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

.checklist-filter {
    display: flex;
    gap: 10px;
}

.filter-gdpr-status-btn {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-gdpr-status-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-gdpr-status-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checklist-item:hover {
    background: #f8f9fa;
}

.checklist-item.completed {
    background: #f0f9ff;
    border-color: #e0f2fe;
}

.checklist-item.incomplete {
    background: #fff5f5;
    border-color: #ffe0e0;
}

/* Colori specifici per priorità quando NON completati */
.checklist-item.incomplete.priority-high {
    background: #ffebee;
    border-color: #ffcdd2;
}

.checklist-item.incomplete.priority-medium {
    background: #fff8e1;
    border-color: #ffecb3;
}

.checklist-item.incomplete.priority-low {
    background: #f1f8ff;
    border-color: #d6ebff;
}

.checklist-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.checklist-icon.completed {
    background: #d4edda;
    color: #28a745;
}

.checklist-icon.incomplete {
    background: #ef5350;
    color: #ffffff;
}

.checklist-content {
    flex: 1;
}

.checklist-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.checklist-item-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.checklist-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: #d4edda;
    color: #28a745;
}

.status-badge.incomplete {
    background: #e53935;
    color: #ffffff;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #d32f2f;
    color: #ffffff;
}

.priority-badge.medium {
    background: #f57c00;
    color: #ffffff;
}

.priority-badge.low {
    background: #0288d1;
    color: #ffffff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .compliance-stats {
        grid-template-columns: 1fr;
    }
    
    .checklist-filter {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-gdpr-status-btn {
        width: 100%;
    }
    
    .checklist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .compliance-header h1 {
        font-size: 22px;
    }
}

/* Animazione per il caricamento */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checklist-item {
    animation: slideIn 0.5s ease forwards;
}

.checklist-item:nth-child(1) { animation-delay: 0.1s; }
.checklist-item:nth-child(2) { animation-delay: 0.2s; }
.checklist-item:nth-child(3) { animation-delay: 0.3s; }
.checklist-item:nth-child(4) { animation-delay: 0.4s; }
.checklist-item:nth-child(5) { animation-delay: 0.5s; }
.checklist-item:nth-child(6) { animation-delay: 0.6s; }
.checklist-item:nth-child(7) { animation-delay: 0.7s; }
.checklist-item:nth-child(8) { animation-delay: 0.8s; }
