.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.loading-screen p {
    margin-top: 1rem;
    color: #6c757d;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
}

.body-map-container {
    text-align: center;
}

.body-map {
    width: 100%;
    max-width: 300px;
    height: auto;
    cursor: pointer;
}

.body-map *[data-bodypart]:hover {
    fill: #ffc107;
    stroke: #ffc107;
}

.body-map *[data-bodypart].selected {
    fill: #28a745;
    stroke: #28a745;
}

.body-legend {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

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

.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease-in-out;
}

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

.btn {
    border-radius: 0.25rem;
}

.badge {
    font-size: 0.875rem;
}

.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.alert {
    border-radius: 0.5rem;
}

input.form-control,
textarea.form-control,
select.form-select,
input,
textarea,
select {
    text-transform: none;
}

/* Toggle visibilita' password (icona occhio dentro il campo) */
.password-toggle {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #6c757d;
    padding: .35rem .6rem;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #03396c;
}

.validation-message,
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .body-map {
        max-width: 200px;
    }
}

/* Solo desktop: il menu mobile e' un pannello chiaro con testo navy
   (definito in AdminLayout.razor.css dentro la media query <=768px) */
@media (min-width: 769px) {
    .admin-sidebar .nav-item,
    .admin-sidebar .nav-item:hover,
    .admin-sidebar .nav-item:active,
    .admin-sidebar .nav-item:visited,
    .admin-sidebar .nav-item.active {
        color: #f3f4f6 !important;
        text-decoration: none !important;
    }

    .admin-sidebar .nav-item.active,
    .admin-sidebar .nav-item:hover {
        color: #ffffff !important;
    }
}

.admin-sidebar .nav-icon {
    width: 1.35rem;
    min-width: 1.35rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    text-align: center;
}

.flatpickr-time input.flatpickr-hour,
.flatpickr-time input.flatpickr-minute {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    padding-left: 2px;
    padding-right: 2px;
}

.flatpickr-time .flatpickr-time-separator {
    padding-left: 2px;
    padding-right: 2px;
}

.table-turni th,
.table-turni td {
    padding: .25rem 3px !important;
}

.table-turni tr.table-warning .form-control:disabled,
.table-turni tr.table-warning .form-select:disabled {
    background-color: #fff3cd;
    border-color: #e8d48b;
    color: #664d03;
}


/* Regola tipografica del sistema: mai forzare il tutto maiuscolo.
   Neutralizza la classe Bootstrap .text-uppercase e gli inline text-transform: uppercase
   cosi titoli, etichette, tabelle e campi usano sempre maiuscolo/minuscolo naturali. */
.text-uppercase,
[style*="text-transform: uppercase"],
[style*="text-transform:uppercase"] {
    text-transform: none !important;
}

/* Icona Google quadrata: riservata allo smartphone; su desktop resta il bottone ufficiale GIS. */
.social-google-icon {
    display: none !important;
}
