/* housekeeping.css - Stili Modulo Housekeeping */

/* ========== TABS ========== */
.hk-tab {
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hk-tab:hover {
    background: rgba(255,255,255,0.25);
}

.hk-tab.active {
    background: white;
    color: #0050b3;
}

.hk-tab-content {
    display: none;
}

.hk-tab-content.active {
    display: block;
}

/* ========== STATISTICHE RAPIDE ========== */
.hk-stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #ddd;
    transition: transform 0.2s ease;
}

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

.hk-stat-card.dirty {
    border-left-color: #dc3545;
}

.hk-stat-card.clean {
    border-left-color: #28a745;
}

.hk-stat-card.in_progress {
    border-left-color: #ffc107;
}

.hk-stat-card.inspected {
    border-left-color: #17a2b8;
}

.hk-stat-card.out_of_order {
    border-left-color: #343a40;
}

.hk-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #022963;
}

.hk-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* ========== CARD CAMERE ========== */
.hk-room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.hk-room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.hk-room-card.dirty {
    border-color: #dc3545;
}

.hk-room-card.clean {
    border-color: #28a745;
}

.hk-room-card.in_progress {
    border-color: #ffc107;
}

.hk-room-card.inspected {
    border-color: #17a2b8;
}

.hk-room-card.out_of_order {
    border-color: #343a40;
}

.hk-room-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.hk-room-number {
    font-size: 20px;
    font-weight: bold;
    color: #022963;
}

.hk-room-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.hk-room-status.dirty {
    background: #dc3545;
}

.hk-room-status.clean {
    background: #28a745;
}

.hk-room-status.in_progress {
    background: #ffc107;
    color: #333;
}

.hk-room-status.inspected {
    background: #17a2b8;
}

.hk-room-status.out_of_order {
    background: #343a40;
}

.hk-room-body {
    padding: 15px;
}

.hk-room-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.hk-room-info strong {
    color: #333;
}

.hk-room-booking {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 13px;
}

.hk-room-booking.today {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.hk-room-actions {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
}

.hk-room-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hk-btn-status {
    background: #e9ecef;
    color: #333;
}

.hk-btn-status:hover {
    background: #dee2e6;
}

.hk-btn-clean {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.hk-btn-clean:hover {
    transform: scale(1.02);
}

.hk-btn-start {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}

.hk-btn-start:hover {
    transform: scale(1.02);
}

/* ========== PROGRAMMAZIONE ========== */
.hk-schedule-day {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.hk-schedule-day:hover {
    background: #f8f9fa;
}

.hk-schedule-day.weekend {
    background: #fff8e6;
}

.hk-schedule-day.today {
    background: #e8f4fd;
    border-left: 4px solid #0050b3;
}

.hk-schedule-date {
    width: 120px;
    text-align: center;
}

.hk-schedule-date .day-name {
    font-weight: 600;
    color: #022963;
    font-size: 15px;
}

.hk-schedule-date .date {
    font-size: 13px;
    color: #666;
}

.hk-schedule-count {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hk-schedule-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hk-schedule-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.hk-schedule-badge.checkouts {
    background: #dc3545;
}

.hk-schedule-badge.hours {
    background: #0050b3;
}

.hk-schedule-rooms {
    font-size: 13px;
    color: #666;
    flex: 1;
}

/* ========== STATISTICHE ========== */
.hk-stats-table {
    width: 100%;
    border-collapse: collapse;
}

.hk-stats-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #022963;
    border-bottom: 2px solid #dee2e6;
}

.hk-stats-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.hk-stats-table tr:hover {
    background: #f8f9fa;
}

.hk-stats-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.hk-stats-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0050b3, #68d3dc);
    border-radius: 4px;
}

/* ========== MODAL ========== */
#hk-status-modal .modal-content,
#hk-cleaning-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#hk-status-modal .modal-header,
#hk-cleaning-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .hk-filters {
        flex-direction: column;
    }
    
    .hk-rooms-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hk-schedule-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hk-schedule-date {
        width: 100%;
        text-align: left;
        display: flex;
        gap: 10px;
    }
    
    .hk-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .hk-stat-card {
        padding: 15px;
    }
    
    .hk-stat-number {
        font-size: 24px;
    }
}

/* ========== ANIMAZIONI ========== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hk-room-card.in_progress .hk-room-status {
    animation: pulse 1.5s infinite;
}

/* ========== HEADER STATS ========== */
.hk-header-stat {
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
}

.hk-header-stat-number {
    font-size: 20px;
    font-weight: bold;
}

.hk-header-stat-label {
    font-size: 11px;
    opacity: 0.8;
}
/* ============================================
   HOUSEKEEPING - PROGRAMMAZIONE MIGLIORATA CSS
   Aggiungi questo al file housekeeping-module.css
   ============================================ */

/* ========== RIEPILOGO TOTALI ========== */
.hk-schedule-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.hk-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #ddd;
    transition: transform 0.2s;
}

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

.hk-summary-card.checkout {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.hk-summary-card.checkin {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #fff 0%, #f5fff5 100%);
}

.hk-summary-card.refresh {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fffdf5 100%);
}

.hk-summary-card.total {
    border-left-color: #007bff;
    background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
}

.hk-summary-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.hk-summary-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.hk-summary-label {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.hk-summary-sublabel {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

/* ========== GRAFICO SETTIMANALE ========== */
.hk-schedule-chart {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hk-chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    padding: 10px 0;
    border-bottom: 2px solid #e9ecef;
}

.hk-chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 80px;
}

.hk-chart-bar-container.today {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
}

.hk-chart-bar-container.weekend .hk-chart-label {
    color: #dc3545;
}

.hk-chart-bar {
    width: 40px;
    background: #e9ecef;
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 10px;
    overflow: hidden;
}

.hk-chart-bar-checkout {
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
    width: 100%;
}

.hk-chart-bar-checkin {
    background: linear-gradient(180deg, #28a745 0%, #1e7e34 100%);
    width: 100%;
}

.hk-chart-label {
    font-weight: 600;
    color: #333;
    margin-top: 8px;
    font-size: 12px;
}

.hk-chart-date {
    font-size: 10px;
    color: #888;
}

.hk-chart-count {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-top: 3px;
}

.hk-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.checkout {
    background: #dc3545;
}

.legend-color.checkin {
    background: #28a745;
}

/* ========== DETTAGLIO GIORNALIERO ========== */
.hk-schedule-days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.hk-day-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

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

.hk-day-card.today {
    border: 2px solid #007bff;
}

.hk-day-card.weekend {
    background: #fefefe;
}

.hk-day-card.empty {
    opacity: 0.6;
}

.hk-day-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hk-day-card.today .hk-day-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.hk-day-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.hk-day-date {
    font-size: 12px;
    color: #666;
}

.hk-today-badge {
    background: #007bff;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: auto;
}

.hk-day-content {
    padding: 15px;
}

.hk-day-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hk-day-row:last-child {
    border-bottom: none;
}

.hk-day-icon {
    font-size: 18px;
}

.hk-day-count {
    font-size: 20px;
    font-weight: 700;
    min-width: 30px;
}

.hk-day-row.checkout .hk-day-count {
    color: #dc3545;
}

.hk-day-row.checkin .hk-day-count {
    color: #28a745;
}

.hk-day-label {
    font-size: 12px;
    color: #666;
}

.hk-day-rooms {
    font-size: 11px;
    color: #888;
    margin-left: auto;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-day-footer {
    background: #f8f9fa;
    padding: 10px 15px;
    text-align: center;
}

.hk-day-hours {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* ========== CAMERE DA RINFRESCARE ========== */
.hk-refresh-section {
    background: linear-gradient(135deg, #fffdf5 0%, #fff9e6 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #ffc107;
}

.hk-refresh-section h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.hk-refresh-info {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
}

.hk-refresh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.hk-refresh-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.hk-refresh-room {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.hk-refresh-days {
    font-size: 14px;
    color: #ffc107;
    font-weight: 600;
}

.hk-refresh-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.hk-refresh-btn {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.hk-refresh-btn:hover {
    background: #e0a800;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hk-schedule-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hk-schedule-days {
        grid-template-columns: 1fr;
    }
    
    .hk-chart-bars {
        height: 120px;
    }
    
    .hk-chart-bar {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .hk-schedule-summary {
        grid-template-columns: 1fr;
    }
    
    .hk-summary-card {
        padding: 15px;
    }
    
    .hk-summary-value {
        font-size: 24px;
    }
}