/* Brand Configuration */
:root {
    --brand-primary: #415e44;
    --brand-secondary: #28a745;
    --brand-primary-dark: rgb(102, 102, 102);
    --brand-primary-light: rgb(142, 142, 142);
    --brand-white: #ffffff;
    --brand-light-gray: #f8f9fa;
}

/* ===== NUOVO: STILI UNIFORMI PER TUTTO IL GESTIONALE ===== */

/* Bottoni arrotondati stile ProgettiComponent */
.btn {
    border-radius: 20px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.btn-sm {
    padding: 0.4rem 1rem !important;
    font-size: 0.875rem !important;
}

.btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 1.1rem !important;
}

.btn-primary {
    background: var(--brand-primary, #415e44) !important;
    border-color: var(--brand-primary, #415e44) !important;
    color: white !important;
}

.btn-primary:hover {
    background: var(--brand-primary-dark, #365a3a) !important;
    border-color: var(--brand-primary-dark, #365a3a) !important;
}

.btn-secondary {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
    border-color: #545b62 !important;
}

.btn-outline-primary {
    border: 2px solid var(--brand-primary, #415e44) !important;
    color: var(--brand-primary, #415e44) !important;
    background: white !important;
}

.btn-outline-primary:hover {
    background: var(--brand-primary, #415e44) !important;
    color: white !important;
}

.btn-outline-danger {
    border: 2px solid #dc3545 !important;
    color: #dc3545 !important;
    background: white !important;
}

.btn-outline-danger:hover {
    background: #dc3545 !important;
    color: white !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Tabelle con sfondo bianco e stile uniforme */
.table {
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.table thead {
    background: #f8f9fa !important;
}

.table thead th {
    border-bottom: 2px solid #dee2e6 !important;
    color: #495057 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    padding: 1rem !important;
}

.table tbody tr {
    transition: all 0.2s ease !important;
}

.table tbody tr:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.table tbody td {
    padding: 1rem !important;
}

/* Empty state uniforme */
.empty-state {
    text-align: center !important;
    padding: 4rem 2rem !important;
    color: #6c757d !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.empty-state i {
    color: #dee2e6 !important;
}

/* Container uniformi */
.progetti-container,
.dipendenti-container,
.clienti-container,
.mezzi-container {
    padding: 1.5rem !important;
}

.header-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid #e9ecef !important;
}

/* Form controls uniformi */
.form-control,
.input-minimal,
.select-minimal {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 0.6rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus,
.input-minimal:focus,
.select-minimal:focus {
    border-color: var(--brand-primary, #415e44) !important;
    box-shadow: 0 0 0 0.2rem rgba(65, 94, 68, 0.25) !important;
    outline: none !important;
}

/* ===== FINE NUOVI STILI UNIFORMI ===== */

/* ===== SCHERMATA DI CARICAMENTO SANREMO PIANTE ===== */
.sanremo-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--brand-light-gray) 0%, var(--brand-white) 50%, var(--brand-light-gray) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

    .sanremo-loader.fade-out {
        opacity: 0;
    }

.loader-content {
    text-align: center;
    position: relative;
    max-width: 400px;
    padding: 2rem;
}

/* Logo che rimbalza */
.bounce-logo {
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.loading-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(122, 122, 122, 0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-30px) scale(1.1);
        filter: drop-shadow(0 15px 25px rgba(122, 122, 122, 0.4));
    }

    60% {
        transform: translateY(-15px) scale(1.05);
        filter: drop-shadow(0 12px 22px rgba(122, 122, 122, 0.35));
    }
}

/* Testo di caricamento */
.loading-text h2 {
    color: var(--brand-primary);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    animation: textPulse 3s infinite;
}

.loading-text p {
    color: var(--brand-primary-dark);
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    animation: textFade 2s infinite alternate;
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes textFade {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Barra di progresso */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(122, 122, 122, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light), var(--brand-primary));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: progressSlide 2s infinite linear;
}

@keyframes progressSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Icone decorative */
.decorative-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

    .decorative-icons i {
        position: absolute;
        color: var(--brand-primary);
        opacity: 0.3;
    }

.icon-1 {
    top: 10%;
    left: 10%;
    font-size: 1.5rem;
    animation: float1 4s infinite ease-in-out;
}

.icon-2 {
    top: 20%;
    right: 15%;
    font-size: 1.2rem;
    animation: float2 3.5s infinite ease-in-out;
}

.icon-3 {
    bottom: 20%;
    left: 15%;
    font-size: 1.8rem;
    animation: float3 4.5s infinite ease-in-out;
}

.icon-4 {
    bottom: 10%;
    right: 10%;
    font-size: 1.3rem;
    animation: float4 3.8s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-8deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(12deg);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(-6deg);
    }
}

/* Versione mobile della schermata di caricamento */
@media (max-width: 768px) {
    .loader-content {
        padding: 1rem;
        max-width: 300px;
    }

    .loading-logo {
        width: 80px;
    }

    .loading-text h2 {
        font-size: 2rem;
    }

    .loading-text p {
        font-size: 1rem;
    }

    .decorative-icons i {
        font-size: 1rem !important;
    }
}

/* ===== FINE SCHERMATA DI CARICAMENTO ===== */

/* Reset per sovrascrivere stili Bootstrap/Blazor */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

a, .btn-link {
    color: var(--brand-primary);
}

.btn-primary {
    color: var(--brand-white);
    background-color: var(--brand-primary);
    border-color: var(--brand-primary-dark);
}

    .btn-primary:hover {
        background-color: var(--brand-primary-dark);
        border-color: var(--brand-primary-dark);
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-primary);
}

/* Nascondi il messaggio di errore di Blazor quando non è necessario */
#blazor-error-ui {
    display: none !important;
}

    #blazor-error-ui.show {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #b32121;
        color: white;
        padding: 1rem;
        z-index: 10000;
    }

/* Sovrascrittura completa layout */
.page {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Rimuovi tutti gli stili sidebar di default */
.sidebar {
    display: none !important;
}

/* Header principale */
.main-header {
    width: 100% !important;
    background: var(--brand-white);
    box-shadow: 0 2px 10px rgba(122, 122, 122, 0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 11vh;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-primary);
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-area-riservata {
    background: var(--brand-primary);
    color: var(--brand-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

    .btn-area-riservata:hover {
        background: var(--brand-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(122, 122, 122, 0.3);
        color: var(--brand-white);
    }

.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    width: 100%;
    background: var(--brand-primary); /* Fallback color */
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--brand-primary); /* Fallback se l'immagine non carica */
}

/* Banner overlay senza opacità */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Rimosso completamente l'overlay colorato */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: var(--brand-white);
    background: rgba(0, 0, 0, 0.3); 
    padding: 2rem 3rem;
}

    .banner-content h1 {
        font-size: 3rem;
        font-weight: bold;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); 
    }

    .banner-content p {
        font-size: 1.3rem;
        margin: 0;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); 
    }

/* Main content che occupa tutto lo spazio */
.main-content {
    flex: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background-image: url('/images/background2.png');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

    .main-content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 20%, rgba(255, 255, 255, 0) 80%);
        z-index: 1;
        pointer-events: none;
    }

/* Nascondi la sfumatura quando siamo nell'area riservata autenticata */
.minimal-layout-container ~ .page .main-content::before,
.page:has(.minimal-layout-container) .main-content::before {
    display: none;
}

.footer-brand {
    background-color: #3e5b41;
    color: white;
}

.content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Rimuovi eventuali stili main di default */
main {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

    main article {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

/* Fix per eventuali classi Bootstrap che potrebbero interferire */
.top-row {
    display: none !important;
}

.nav-scrollable {
    display: none !important;
}

button {
    padding: 1rem 2rem; /* Aumenta il padding */
    font-size: 1.2rem; /* Aumenta la dimensione del testo */
    border-radius: 8px; /* Angoli arrotondati */
}

.btn {
    background-color: var(--brand-primary);
    color: white;
    border: 2px solid var(--brand-primary);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
}
    .btn:hover {
        background-color: white;
        color: var(--brand-primary);
        border-color: var(--brand-primary);
    }

.btn-sm {
    padding: 0.75rem 1.5rem; /* Bottoni piccoli leggermente più grandi */
    font-size: 1rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem; /* Bottoni grandi */
    font-size: 1.4rem;
}

/* Stile base per tutti i bottoni */
button.btn {
    padding: 0.5rem 1rem; /* Dimensioni compatte */
    font-size: 0.9rem; /* Testo più piccolo */
    border-radius: 50px; /* Stile rotondo */
    border: none;
    transition: all 0.3s ease;
}

/* Colore del pulsante di caricamento */
button.btn-carica {
    background-color: #28a745; /* Verde del brand */
    color: white;
    border: 1px solid #28a745;
}

    button.btn-carica:hover {
        background-color: #218838; /* Verde più scuro per hover */
        border-color: #1e7e34;
    }

button.btn-outline {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
}

    button.btn-outline:hover {
        background-color: #6c757d;
        color: white;
    }

button.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

    button.btn-danger:hover {
        background-color: #c82333;
        border-color: #bd2130;
    }

/* Header e sezioni principali dell'area riservata */
.header-areariservata,
.timbratura-component,
.cassa-component {
    background-color: var(--brand-primary);
    color: white;
}

/* Statistiche rapide */
.stat-card {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    box-shadow: 0 2px 8px rgba(65, 94, 68, 0.3);
}

/* Animazione per il bordo verde lampeggiante (attiva) */
@keyframes blink-green {
    0%, 100% {
        border-left-color: #28a745; /* Verde */
    }

    50% {
        border-left-color: transparent; /* Trasparente */
    }
}

/* Animazione per il bordo verde lampeggiante (attiva) */
@keyframes blink-green {
    0%, 100% {
        border-left-color: #28a745; /* Verde */
    }

    50% {
        border-left-color: transparent; /* Trasparente */
    }
}

/* Stile base per la card */
.timbratura-attiva-card {
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left-width: 6px;
    border-left-style: solid;
}

    /* Sfondo verde chiaro per lo stato attivo */
    .timbratura-attiva-card.active {
        background: #e6f9ed; /* Verde chiaro */
        border-left-color: #28a745; /* Verde */
    }

    /* Sfondo giallo chiaro per lo stato in pausa */
    .timbratura-attiva-card.paused {
        background: #fff8e6; /* Giallo chiaro */
        border-left-color: #ffc107; /* Giallo */
    }

    /* Bordo verde lampeggiante (attiva) */
    .timbratura-attiva-card.active {
        animation: blink-green 1s infinite;
    }

    /* Bordo verde fisso (in pausa) */
    .timbratura-attiva-card.paused {
        border-left-color: #28a745; /* Verde fisso */
    }

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .banner-section {
        height: 200px;
    }

    .banner-content {
        padding: 1.5rem 2rem;
    }

        .banner-content h1 {
            font-size: 2rem;
        }

        .banner-content p {
            font-size: 1.1rem;
        }

    .content {
        padding: 1rem !important;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Mantieni il layout di errore ma nascosto di default */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDY0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    display: none;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

    .blazor-error-boundary.show {
        display: block !important;
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.qr-code-preview img,
.item-qr-code {
    width: 50px;
    height: 50px;
    margin-top: 10px;
    border-radius: 8px;
    object-fit: cover;
}

.rz-button {
    background-color: #415e44 !important; 
    color: white !important; 
    border: none !important;
    border-radius: 5px !important; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

    .rz-button:hover {
        background-color: #218838 !important; 
    }

    .rz-button:disabled {
        background-color: #6c757d !important;
        color: white !important;
    }

    .rz-scheduler-toolbar .rz-button:last-child {
        margin-right: 2px; 
    }

.dipendenti-container {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem;
    position: relative;
    z-index: 2;
}

    .dipendenti-container h2 {
        color: var(--brand-primary);
        margin-bottom: 1.5rem;
        font-weight: bold;
    }

.dipendenti-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .dipendenti-table th {
        background: var(--brand-primary);
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid var(--brand-primary-dark);
    }

    .dipendenti-table td {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }

    .dipendenti-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .dipendenti-table tr:hover {
        background-color: #e3f2fd;
        transition: background-color 0.2s ease;
    }

    .dipendenti-table tr:last-child td {
        border-bottom: none;
    }

    /* Stili per i pulsanti nella tabella */
    .dipendenti-table .btn {
        margin-right: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .dipendenti-table .btn-secondary {
        background-color: #6c757d;
        border-color: #6c757d;
        color: white;
    }

        .dipendenti-table .btn-secondary:hover {
            background-color: #5a6268;
            border-color: #545b62;
        }

    .dipendenti-table .btn-danger {
        background-color: #dc3545;
        border-color: #dc3545;
        color: white;
    }

        .dipendenti-table .btn-danger:hover {
            background-color: #c82333;
            border-color: #bd2130;
        }

/* Stati di caricamento e messaggi */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--brand-primary);
}

    .loading-spinner p {
        font-size: 1.1rem;
        margin: 0;
    }

.no-dipendenti {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

    .no-dipendenti p {
        font-size: 1.1rem;
        margin: 0;
    }

/* Responsive design per le tabelle */
@media (max-width: 768px) {
    .dipendenti-container {
        margin: 1rem;
        padding: 1rem;
    }

    .dipendenti-table {
        font-size: 0.9rem;
    }

        .dipendenti-table th,
        .dipendenti-table td {
            padding: 0.75rem 0.5rem;
        }

        .dipendenti-table .btn {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
            margin-bottom: 0.25rem;
            display: block;
            width: 100%;
            margin-right: 0;
        }
}

/* Stili generali per tutte le tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    table th {
        background: var(--brand-primary);
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid var(--brand-primary-dark);
    }

    table td {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }

    table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    table tr:hover {
        background-color: #e3f2fd;
        transition: background-color 0.2s ease;
    }

.orari-table thead th {
    background-color: var(--brand-primary); 
    color: var(--brand-white); 
    text-align: center; 
    padding: 0.75rem;
    font-weight: bold; 
    border-bottom: 2px solid var(--brand-primary-dark); 
}

.dialog {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.dialog-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem; 
}

.dialog-actions {
    display: flex;
    justify-content: flex-end; 
    gap: 0.5rem; 
    padding: 0.5rem 0;
    border-top: 1px solid #e9ecef; 
    background-color: #fff; 
}

input[type="time"] {
    appearance: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

    input[type="time"]:hover {
        border-color: #888;
    }

    input[type="time"]:focus {
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
        outline: none;
    }

.statistiche-rapide {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #415e44;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #365a3a;
    }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #415e44 #f1f1f1;
}