body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

h1 {
	font-weight: bold;
	text-align: center;
    font-size: 1.8rem;
}
h3 {
	text-align: center;
    font-size: 1rem;
}

.feature-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h5 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.display-4 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lead {
    color: #e8f4f8;
    font-size: 1.25rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
}

.btn-outline-primary {
    border-color: white;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
}

.btn-outline-primary:hover {
    background-color: white;
    color: #667eea;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Stili aggiuntivi per la dashboard */
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    font-weight: 600;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Colori per le card delle statistiche */
.bg-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
.bg-success { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important; }
.bg-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important; }
.bg-yellow { background: linear-gradient(135deg, #ffff00 0%, #ffff00 100%) !important; }
.bg-info { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%) !important; }
.bg-dark { background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important; }
.bg-orange {
    background-color: #fd7e14 !important;
}


.bg-light {
    background-color: #f8f9fa !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-dark {
    background-color: #212529 !important;
}

/* Testi per contrasto */
.text-white {
    color: white !important;
}

.text-dark {
    color: #212529 !important;
}

/* Migliora la leggibilità */
.small {
    font-size: 0.85rem;
}

.border-bottom {
    border-color: #dee2e6 !important;
}

/* Stili per le card delle performance */
.card.bg-light {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card.bg-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Migliora la leggibilità dei numeri */
h3 {
    font-weight: 700;
}

/* Colori per le metriche */
.text-primary { color: #667eea !important; }
.text-success { color: #4facfe !important; }
.text-warning { color: #f093fb !important; }
.text-info { color: #4ecdc4 !important; }
.text-danger { color: #f5576c !important; }

/* Spaziature */
.card-body.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Stili per le mappe Leaflet */
#overviewMap, #detailMap {
    background-color: #f8f9fa;
}

.leaflet-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Marker personalizzati */
.start-marker, .end-marker {
    background: none;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    #overviewMap, #detailMap {
        height: 250px !important;
    }
}

/* Stili per le mappe */
#overviewMap, #detailMap {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.leaflet-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
}

#overviewMapPlaceholder,
#detailMapPlaceholder {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Migliora la visibilità dei marker */
.leaflet-popup-content {
    font-size: 14px;
}