/* Import Google Font Moderno */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #003366; /* Blu Navy Istituzionale */
    --secondary-color: #f4f6f9; /* Grigio chiarissimo per sfondi */
    --accent-color: #e6b800; /* Oro per dettagli importanti */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --card-radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 51, 102, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 51, 102, 0.15);
}

body {
    background-color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVBAR --- */
.navbar {
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff !important;
}

/* --- CARDS & CONTAINERS --- */
.container {
    flex: 1; /* Spinge il footer in basso */
}

.card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Per l'header colorato */
}

.card:hover {
    /* Effetto sollevamento leggero */
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    color: var(--primary-color);
}

.card-header.bg-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.card-header.bg-dark {
    background: #1a1a1a !important;
}

/* --- BUTTONS --- */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

.btn-success {
    background-color: #198754;
    border: none;
}

/* --- TABLES --- */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid #eee;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #444;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* --- WIZARD STEPS --- */
.progress {
    background-color: #e9ecef;
    border-radius: 50px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, #0055aa 100%);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

/* --- FOOTER --- */
footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    margin-top: auto;
}

/* --- LOGIN PAGE SPECIFIC --- */
.login-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}