/* ===== STILI PERSONALIZZATI ===== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* ===== NAVBAR ===== */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== CARD ===== */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* ===== BADGE ===== */
.badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    font-weight: 500;
}

/* ===== TABELLE ===== */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== FORM ===== */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    margin-bottom: 0.5rem;
    color: #212529;
    font-weight: 500;
}

/* ===== PULSANTI ===== */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8e 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d7865 0%, #2bc86f 100%);
    color: white;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #ffb300;
    color: #000;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: #0dcaf0;
    color: #000;
}

.btn-info:hover {
    background-color: #31d5ff;
    color: #000;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5c636a;
    color: white;
}

/* ===== ALERT ===== */
.alert {
    border: none;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
    border-left: 4px solid #0dcaf0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: transparent;
    margin-bottom: 1.5rem;
    padding: 0;
}

.breadcrumb-item.active {
    color: #667eea;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===== UTILITY ===== */
.text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

.container-fluid {
    max-width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h2, h3, h4, h5 {
        font-size: 1.1rem;
    }
}

/* ===== LOGIN PAGE ===== */
.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: bold;
}

.login-footer {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .alert {
    animation: fadeIn 0.3s ease;
}

/* ===== STATISTICHE ===== */
.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-card h5 {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stats-card h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0;
}
