/* ========================================
   CALENDARIO TURNI - CSS
   Modern glassmorphism design
   ======================================== */

/* ===== HEADER CALENDARIO ===== */
.turni-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(113, 168, 148, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav-month {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-month:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.current-month-display {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===== LEGENDA ===== */
.legenda-box {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.legenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.legenda-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
}

.legenda-badge.badge-interno {
    background: #71A894;
}

.legenda-badge.badge-rider {
    background: #F4C063;
}

.legenda-badge.badge-fisso {
    background: #999;
}

.day-status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid;
}

.day-status-indicator.status-ok {
    border-color: #71A894;
}

.day-status-indicator.status-warning {
    border-color: #F4C063;
}

.day-status-indicator.status-chiuso {
    border-color: #999;
    background: repeating-linear-gradient(45deg, #ccc, #ccc 2px, transparent 2px, transparent 6px);
}

/* ===== COSTI MENSILI ===== */
.costi-mensili-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid #F4C063;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.costi-mensili-box h3 {
    margin: 0 0 16px 0;
    color: #B8860B;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.costi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.costo-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(244, 192, 99, 0.3);
}

.costo-item.costo-totale {
    background: linear-gradient(135deg, #F4C063 0%, #E0AD57 100%);
    color: white;
    border: none;
}

.costo-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.costo-value {
    font-size: 24px;
    font-weight: 700;
}

/* ===== LAYOUT CON SIDEBAR ===== */
.turni-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ===== CALENDARIO ===== */
.calendario-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    flex: 1;
    transition: all 0.3s ease;
}

.calendario-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.day-header {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-header.weekend {
    background: linear-gradient(135deg, #ffe4e4 0%, #fff0f0 100%);
    color: #d32f2f;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-height: 600px;
}

.loading-calendar {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-light);
}

.loading-calendar i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* ===== DAY CELL ===== */
.day-cell {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.day-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(113, 168, 148, 0.2);
    border-color: var(--primary-color);
}

.day-cell.other-month {
    opacity: 0.3;
    pointer-events: none;
}

.day-cell.today {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(113, 168, 148, 0.1) 0%, rgba(113, 168, 148, 0.05) 100%);
}

.day-cell.weekend {
    background: linear-gradient(135deg, #fff5f5 0%, #fffafa 100%);
}

.day-cell.chiuso {
    background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 10px, #e8e8e8 10px, #e8e8e8 20px);
    border-color: #999;
    opacity: 0.7;
}

.day-cell.chiuso::before {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}

/* Status indicators */
.day-cell::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
}

.day-cell.status-ok::after {
    border-color: #71A894;
    background: #71A894;
}

.day-cell.status-warning::after {
    border-color: #F4C063;
    background: #F4C063;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.day-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.day-cell.weekend .day-number {
    color: #d32f2f;
}

.day-turni-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.turno-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.turno-badge.ruolo-interno {
    background: #71A894;
}

.turno-badge.ruolo-rider {
    background: #F4C063;
    color: #333;
}

.turno-badge.fisso {
    opacity: 0.7;
    font-style: italic;
}

.turno-badge i {
    font-size: 10px;
}

.motivo-chiusura {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-container.modal-large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-day-info {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.day-info-badge {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toggle-chiusura-box {
    background: #fff9e6;
    border: 2px solid #F4C063;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.toggle-chiusura-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #B8860B;
}

.toggle-chiusura-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.input-motivo {
    width: 100%;
    padding: 10px;
    border: 2px solid #F4C063;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

.turni-giorno-section h4,
.aggiungi-persona-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-turni {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 80px;
}

.empty-turni {
    text-align: center;
    padding: 24px;
    color: var(--text-light);
    font-style: italic;
}

.turno-item {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.turno-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.turno-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.turno-nome {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.turno-dettagli {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

.btn-remove-turno {
    background: #ec676c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-remove-turno:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.form-aggiungi {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.select-lavoratore,
.select-ruolo {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-lavoratore:hover,
.select-ruolo:hover {
    border-color: var(--primary-color);
}

.select-lavoratore:focus,
.select-ruolo:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(113, 168, 148, 0.1);
}

.btn-add-turno {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-add-turno:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 168, 148, 0.3);
}

.validazione-box {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
}

.validazione-box.valido {
    background: #e8f5e9;
    border-color: #71A894;
    color: #2e7d32;
}

.validazione-box.warning {
    background: #fff9e6;
    border-color: #F4C063;
    color: #B8860B;
}

.validazione-box ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.modal-footer {
    padding: 16px 28px;
    background: var(--bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 168, 148, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-medium);
}

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

/* Form nuovo lavoratore */
.form-nuovo-lavoratore {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.form-nuovo-lavoratore h4 {
    margin: 0 0 16px 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
}

.form-input {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(113, 168, 148, 0.1);
}

.lista-lavoratori-section h4 {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-lavoratori {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.lavoratore-item {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lavoratore-item.fisso {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-color: #999;
}

.lavoratore-main-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lavoratore-nome {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.lavoratore-dettagli {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

.lavoratore-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.btn-delete-lavoratore {
    background: #ec676c;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-delete-lavoratore:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .calendario-grid {
        gap: 6px;
    }

    .day-cell {
        min-height: 100px;
        padding: 8px;
    }

    .day-number {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .turni-header {
        flex-direction: column;
        text-align: center;
    }

    .form-aggiungi {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .costi-grid {
        grid-template-columns: 1fr;
    }

    .day-cell {
        min-height: 80px;
        padding: 6px;
    }

    .day-number {
        font-size: 14px;
    }

    .turno-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .turni-layout {
        flex-direction: column;
    }

    .turni-sidebar {
        position: fixed !important;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== SIDEBAR TURNI ===== */
.turni-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.turni-sidebar.open {
    transform: translateX(0);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.sidebar-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.sidebar-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
    opacity: 0.5;
}

.sidebar-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle chiusura */
.chiusura-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid #F4C063;
    border-radius: 12px;
    padding: 16px;
}

.toggle-chiusura {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #B8860B;
}

.toggle-chiusura input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.input-motivo-sidebar {
    width: 100%;
    padding: 10px;
    border: 2px solid #F4C063;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

/* Lista turni sidebar */
.sidebar-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
    font-size: 14px;
}

.sidebar-turno-item {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.sidebar-turno-item:hover {
    border-color: var(--primary-color);
    transform: translateX(-4px);
}

.turno-nome {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.turno-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
}

.btn-remove-sidebar {
    background: #ec676c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-remove-sidebar:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Form aggiungi */
.add-section {
    background: var(--primary-light);
    border-radius: 12px;
    padding: 16px;
    border: none;
}

.add-section h4 {
    color: var(--primary-color);
}

.add-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-select {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-select:hover {
    border-color: var(--primary-color);
}

.sidebar-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(113, 168, 148, 0.1);
}

.btn-add-sidebar {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-sidebar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 168, 148, 0.3);
}

/* Validazione sidebar */
.sidebar-validation {
    padding: 12px;
    border-radius: 10px;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
}

.sidebar-validation.valid {
    background: #e8f5e9;
    border-color: #71A894;
    color: #2e7d32;
}

.sidebar-validation.warning {
    background: #fff9e6;
    border-color: #F4C063;
    color: #B8860B;
}

/* Nuovo lavoratore inline */
.nuovo-lavoratore-section {
    background: linear-gradient(135deg, #e8f4f1 0%, #f0f9f6 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px;
}

.btn-nuovo-lavoratore {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-nuovo-lavoratore:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 168, 148, 0.3);
}

.form-nuovo-lavoratore-inline {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-input {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(113, 168, 148, 0.1);
}

.form-actions {
    display: flex;
    gap: 8px;
}

.btn-salva-lavoratore {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-salva-lavoratore:hover {
    background: var(--primary-dark);
}

.btn-annulla-lavoratore {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-medium);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-annulla-lavoratore:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
