/* ========================================
   CLEANING MONITOR PLUGIN - MAIN STYLES
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease-in-out;
}

/* Reset and Base Styles */
.cleaning-monitor-container * {
    box-sizing: border-box;
}

.cleaning-monitor-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    min-height: 100vh;
    padding: 1rem;
}

/* ========================================
   LOGIN & REGISTRATION STYLES
   ======================================== */

.cleaning-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 1rem;
}

.cleaning-login-box {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-light);
}

.cleaning-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cleaning-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.cleaning-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Tabs */
.cleaning-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cleaning-tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b !important;
    border-bottom: 2px solid #e2e8f0 !important;
    transition: var(--transition);
    font-size: 0.95rem;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.cleaning-tab-btn:hover {
    color: #2563eb !important;
    background-color: #f8fafc !important;
    border-color: #2563eb !important;
}

.cleaning-tab-btn.active {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
    border-bottom-color: #2563eb !important;
}

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

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

/* Forms */
.cleaning-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cleaning-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cleaning-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cleaning-form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.cleaning-form-group input,
.cleaning-form-group textarea,
.cleaning-form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--surface-color);
}

.cleaning-form-group input:focus,
.cleaning-form-group textarea:focus,
.cleaning-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.cleaning-form-group small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Buttons */
.cleaning-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cleaning-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.cleaning-btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.cleaning-btn-secondary:hover:not(:disabled) {
    background-color: #475569;
    transform: translateY(-1px);
}

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

.cleaning-btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

/* Demo Info */
.cleaning-demo-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.cleaning-demo-info p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.cleaning-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.cleaning-user-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cleaning-user-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Dashboard Layout */
.cleaning-dashboard {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.cleaning-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cleaning-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards */
.cleaning-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.cleaning-card-header {
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--background-color) 100%);
}

.cleaning-card-header h3,
.cleaning-card-header h4 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.cleaning-card-header h3 {
    font-size: 1.125rem;
}

.cleaning-card-header h4 {
    font-size: 1rem;
}

.cleaning-card-body {
    padding: 2rem;
}

.cleaning-week-info {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Rating Scale */
.cleaning-rating-section {
    margin-bottom: 2rem;
}

.cleaning-rating-section label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}

.cleaning-rating-scale {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.cleaning-rating-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cleaning-rating-option input[type="radio"] {
    display: none;
}

.cleaning-rating-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    transition: var(--transition);
    background: var(--surface-color);
}

.cleaning-rating-option:hover .cleaning-rating-number {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: white;
    transform: scale(1.1);
}

.cleaning-rating-option input[type="radio"]:checked + .cleaning-rating-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.cleaning-rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Photo Section */
.cleaning-photo-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-md);
    border: 1px solid #f59e0b;
}

.cleaning-photo-notice {
    margin-bottom: 1rem;
}

.cleaning-photo-notice p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

.cleaning-uploaded-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cleaning-photo-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cleaning-photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.cleaning-photo-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    font-size: 0.7rem;
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

.cleaning-admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--surface-color);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.cleaning-nav-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--surface-color) !important;
    border: 2px solid var(--border-color) !important;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.cleaning-nav-btn:hover {
    background: var(--background-color) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.cleaning-nav-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Regole aggiuntive per forzare la visibilità del testo */
.cleaning-admin-nav .cleaning-nav-btn {
    color: #1e293b !important; /* Colore scuro fisso */
    background: #ffffff !important; /* Sfondo bianco fisso */
    border: 2px solid #e2e8f0 !important; /* Bordo grigio fisso */
}

.cleaning-admin-nav .cleaning-nav-btn:hover {
    color: #2563eb !important; /* Blu al hover */
    background: #f8fafc !important; /* Sfondo grigio chiaro al hover */
    border-color: #2563eb !important; /* Bordo blu al hover */
}

.cleaning-admin-nav .cleaning-nav-btn.active {
    color: #ffffff !important; /* Testo bianco quando attivo */
    background: #2563eb !important; /* Sfondo blu quando attivo */
    border-color: #2563eb !important; /* Bordo blu quando attivo */
}

.cleaning-admin-section {
    display: none;
}

.cleaning-admin-section.active {
    display: block;
}

/* Stats Overview */
.cleaning-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cleaning-stat-card {
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--background-color) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.cleaning-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cleaning-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cleaning-stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Charts Grid */
.cleaning-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cleaning-chart {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

/* Filters */
.cleaning-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.cleaning-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.cleaning-filter-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Tables */
.cleaning-evaluations-table,
.cleaning-users-table {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.cleaning-table {
    width: 100%;
    border-collapse: collapse;
}

.cleaning-table th,
.cleaning-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.cleaning-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-primary);
}

.cleaning-table tr:hover {
    background: var(--background-color);
}

/* Rating Badge */
.cleaning-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    color: white !important;
    border: 2px solid transparent;
}

.cleaning-rating-badge.low {
    background: #dc2626 !important; /* Rosso per valutazioni basse (1-4) */
    color: white !important;
}

.cleaning-rating-badge.medium {
    background: #f59e0b !important; /* Arancione per valutazioni medie (5-7) */
    color: white !important;
}

.cleaning-rating-badge.high {
    background: #059669 !important; /* Verde per valutazioni alte (8-10) */
    color: white !important;
}

.cleaning-rating-badge.excellent {
    background: #2563eb !important; /* Blu per valutazioni eccellenti (10) */
    color: white !important;
}

/* Status Badge */
.cleaning-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.cleaning-status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.cleaning-status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Pagination */
.cleaning-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.cleaning-pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.cleaning-pagination button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cleaning-pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Messages */
.cleaning-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 400px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.cleaning-message.success {
    background: var(--success-color);
    color: white;
}

.cleaning-message.error {
    background: var(--danger-color);
    color: white;
}

.cleaning-message.info {
    background: var(--primary-color);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.cleaning-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cleaning-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .cleaning-monitor-container {
        padding: 0.5rem;
    }
    
    .cleaning-login-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .cleaning-form-row {
        grid-template-columns: 1fr;
    }
    
    .cleaning-header-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .cleaning-dashboard {
        grid-template-columns: 1fr;
    }
    
    .cleaning-sidebar {
        order: -1;
    }
    
    .cleaning-stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cleaning-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .cleaning-filters {
        flex-direction: column;
    }
    
    .cleaning-admin-nav {
        flex-direction: column;
    }
    
    .cleaning-rating-scale {
        justify-content: center;
    }
    
    .cleaning-message {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .cleaning-stats-overview {
        grid-template-columns: 1fr;
    }
    
    .cleaning-rating-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .cleaning-card-body {
        padding: 1.5rem;
    }
    
    .cleaning-card-header {
        padding: 1rem 1.5rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .cleaning-monitor-container {
        background: white;
        box-shadow: none;
    }
    
    .cleaning-btn,
    .cleaning-admin-nav,
    .cleaning-filters {
        display: none;
    }
    
    .cleaning-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

.cleaning-monitor-container *:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cleaning-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Trend Settimanale */
.cleaning-trend-chart {
    min-height: 200px;
    padding: 20px;
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cleaning-trend-bar {
    display: flex;
    align-items: end;
    height: 150px;
    margin-bottom: 10px;
    gap: 8px;
}

.cleaning-trend-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cleaning-trend-bar-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.cleaning-trend-bar-fill {
    width: 80%;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.cleaning-trend-bar-fill:hover {
    background: linear-gradient(to top, var(--accent-color), var(--primary-color));
    transform: scale(1.05);
}

.cleaning-trend-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-align: center;
}

.cleaning-trend-value {
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 2px;
}

/* Link foto nella tabella valutazioni */
.cleaning-photo-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cleaning-photo-link:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.cleaning-photo-link:active {
    transform: scale(0.95);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #000;
    }
}

/* ========================================
   TREND SETTIMANALE
   ======================================== */

.cleaning-trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
    background: var(--surface-color);
    border-radius: 8px;
    min-height: 150px;
    overflow-x: auto;
}

.cleaning-trend-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    gap: 5px;
}

.cleaning-trend-value {
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    width: 40px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.3s ease;
}

.cleaning-trend-value:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cleaning-trend-label {
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
    margin-top: 2px;
}

.cleaning-trend-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.cleaning-trend-count {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
}

/* Responsive trend chart */
@media (max-width: 768px) {
    .cleaning-trend-chart {
        padding: 15px;
        gap: 8px;
    }
    
    .cleaning-trend-bar {
        min-width: 50px;
    }
    
    .cleaning-trend-value {
        width: 35px;
    }
}


/* ========================================
   RESPONSIVE TABLES FOR MOBILE
   ======================================== */

/* Responsive table wrapper */
.cleaning-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .cleaning-evaluations-table,
    .cleaning-users-table {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .cleaning-table-responsive {
        border-radius: 0;
        margin: 0 -1rem;
    }
    
    .cleaning-table {
        min-width: 600px; /* Forza larghezza minima per scroll orizzontale */
        font-size: 0.875rem;
    }
    
    .cleaning-table th,
    .cleaning-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Riduce dimensioni badge su mobile */
    .cleaning-rating-badge {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    
    /* Icone foto più piccole su mobile */
    .cleaning-photo-link {
        font-size: 1.2rem;
    }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .cleaning-table {
        font-size: 0.9rem;
    }
    
    .cleaning-table th,
    .cleaning-table td {
        padding: 0.875rem 0.75rem;
    }
}

/* Scroll indicator for mobile tables */
.cleaning-table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .cleaning-table-responsive::after {
        opacity: 1;
    }
}

