/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #68d3dc;
    color: white;
    width: 100%;
}

.btn-secondary {
    background: #ecf4fc;
    color: #333;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-logout {
    background: #f44336;
    color: white;
    padding: 8px 20px;
}

.btn-logout:hover {
    background: #d32f2f;
}

/* Error Message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Dashboard */
.header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.main-content h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

/* Card */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #555;
    font-weight: 600;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
}
/* Menu Navigazione */
/* Layout con Sidebar */
.app-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    background: #f5f6fa;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    padding: 0 20px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Links navigazione */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #333;
}

.nav-link.active {
    background: linear-gradient(90deg, #f0f3ff 0%, transparent 100%);
    color: #667eea;
    border-left: 3px solid #667eea;
}

.nav-icon {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

.nav-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.nav-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-link.expanded .nav-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.nav-submenu {
    background: #f8f9fa;
    overflow: hidden;
}

.nav-sublink {
    display: block;
    padding: 10px 20px 10px 56px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-sublink:hover {
    background: #e9ecef;
    color: #333;
}

.nav-sublink.active {
    color: #667eea;
    font-weight: 600;
}

/* Main Content Area */
.main-content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 28px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content-area {
        margin-left: 0;
    }
}

/* Rimuovi vecchi stili nav-menu se presenti */
.nav-menu,
.nav-inner,
.nav-item {
    display: none;
}

/* Sezioni contenuto */
.content-section {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Controlli calendario */
.controls-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.control-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

/* Calendario Tariffe */
.rates-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.rates-calendar-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
    position: sticky;
    top: 0;
}

.rates-calendar-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.rates-calendar-table td:hover {
    background: #e9ecef;
}

.rate-cell {
    min-height: 60px;
}

.rate-cell.selected {
    background: #667eea !important;
    color: white;
}

.rate-cell.unavailable {
    background: #ffebee;
}

.rate-cell.weekend {
    background: #f0f8ff;
}

.rate-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.rate-availability {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.rate-cell.selected .rate-price,
.rate-cell.selected .rate-availability {
    color: white;
}

/* Form modifica rapida */
#quick-edit-form {
    background: #f8f9fa;
    border: 2px solid #667eea;
}

#quick-edit-form h3 {
    color: #667eea;
    margin-bottom: 20px;
}

#selected-dates {
    background: #e9ecef;
    font-weight: 600;
}

/* Responsive calendario */
@media (max-width: 768px) {
    .rates-calendar-table {
        font-size: 12px;
    }
    
    .rate-price {
        font-size: 14px;
    }
    
    .controls-row {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
}
/* Rate Plans Selector */
.rate-plan-selector {
    margin-bottom: 20px;
}

.rate-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rate-plan-btn {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.rate-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rate-plan-btn.active {
    background: #f0f8ff;
    border-width: 3px;
}

.plan-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-meal {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
}

/* Advanced Rates Table */
.advanced-rates-table {
    width: 100%;
    border-collapse: collapse;
}

.advanced-rates-table th {
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.room-header {
    min-width: 200px;
    text-align: left !important;
}

.advanced-rates-table td {
    border: 1px solid #dee2e6;
    padding: 5px;
    text-align: center;
    position: relative;
}

.rate-cell {
    min-height: 80px;
    cursor: pointer;
    transition: all 0.2s;
}

.rate-cell:hover {
    background: #f0f8ff;
}

.rate-cell.selected {
    background: #e3f2fd;
    border: 2px solid #2196F3;
}

.rate-price {
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32;
}

.rate-availability {
    display: inline-block;
    padding: 2px 6px;
    background: #4caf50;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
}

.rate-availability.low {
    background: #ff9800;
}

.rate-availability.none {
    background: #f44336;
}

.stop-sale-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #f44336;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
}

/* Quick Controls */
.quick-controls {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.control-item {
    display: grid;
    grid-template-columns: 100px 150px 100px;
    align-items: center;
    gap: 10px;
    min-height: 45px;
}

.control-item label {
    font-weight: 600;
    font-size: 14px;
}

.control-item input {
    width: 100%;
    padding: 8px 12px;
}

.control-item button {
    padding: 8px 16px;
    white-space: nowrap;
}

.btn-stop-sale {
    background: #f44336;
}

.btn-open-sale {
    background: #4caf50;
}

/* Bulk Edit */
.weekdays-selector {
    display: flex;
    gap: 10px;
}

.weekdays-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.room-select-card {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.room-select-card:hover {
    border-color: #2196F3;
}

.room-select-card.selected {
    background: #e3f2fd;
    border-color: #2196F3;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.action-card h5 {
    margin-bottom: 10px;
    color: #333;
}

.action-card input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.action-card button {
    width: 100%;
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bulk-submit {
    margin-top: 30px;
    text-align: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}
/* Fix controlli sovrapposti */
.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
}

.control-item input {
    flex: 0 0 120px;
    max-width: 120px;
}

.control-item button {
    flex: 0 0 auto;
    min-width: 80px;
}

/* Colori celle calendario */
.rate-cell.stop-sale {
    background-color: #ffebee !important;
}

.rate-cell.stop-sale .rate-content {
    opacity: 0.7;
}

.rate-availability {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.rate-availability.none {
    background-color: #f44336;
    color: white;
}

.rate-availability.low {
    background-color: #ff9800;
    color: white;
}

.rate-availability:not(.none):not(.low) {
    background-color: #4caf50;
    color: white;
}

/* Abbellimento sezione periodo */
.controls-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.control-group label {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.control-group input[type="date"],
.control-group select {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
}

.control-group .date-range-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    padding: 0 15px;
    margin-top: 25px;
}

/* Calendario 14 giorni */
.advanced-rates-table {
    font-size: 14px;
}

.advanced-rates-table td {
    min-width: 80px;
}

.rates-grid-container {
    overflow: visible;
    min-height: 400px;
    padding-bottom: 10px;
}

/* Miglioramenti visuali */
.rate-cell {
    transition: all 0.2s;
    cursor: pointer;
}

.rate-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    position: relative;
}

.rate-price {
    font-size: 16px;
    font-weight: bold;
    color: #2e7d32;
    margin: 4px 0;
}

.min-stay {
    font-size: 10px;
    color: #666;
    background: #ffd54f;
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
}
/* Effetti hover per i bottoni */
button:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
}

/* Effetto focus sugli input */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Animazione per le celle selezionate */
.rate-cell.selected {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}
/* ===== MODAL OFFERTE ===== */
.offer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.offer-modal-content {
    background: white;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 16px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.offer-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
}

.offer-modal-body {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Form offerte */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Cards offerte */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.offer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.offer-header {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
}

.offer-content {
    padding: 20px;
}

.offer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.offer-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.offer-validity {
    font-size: 12px;
    color: #95a5a6;
}

.offer-actions {
    display: flex;
    gap: 10px;
}

.btn-offer {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-edit-offer {
    background: #3498db;
    color: white;
}

.btn-edit-offer:hover {
    background: #2980b9;
}

.btn-delete-offer {
    background: #e74c3c;
    color: white;
}

.btn-delete-offer:hover {
    background: #c0392b;
}

.btn-toggle-offer {
    background: #2ecc71;
    color: white;
}

.btn-toggle-offer:hover {
    background: #27ae60;
}

/* Plan selector */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.plan-checkbox {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-checkbox:hover {
    background: #e8f4fd;
}

.plan-checkbox input {
    margin-right: 10px;
}
/* ===== STILI PER ROOMS ===== */
.room-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.room-tabs .tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.room-tabs .tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

/* Gestione Card Camere - Versione Completa */
.room-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden; /* Impedisce al contenuto di uscire */
}

.room-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.room-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.room-card-code {
    font-size: 12px;
    color: #888;
    font-family: monospace;
}

.room-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.room-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.room-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap; /* Permette ai bottoni di andare a capo */
}

.room-card-actions button {
    flex: 0 1 auto;
    min-width: 90px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.room-card-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.room-card-actions .btn-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.room-card-actions .btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
}

.room-card-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive per tablet */
@media (max-width: 768px) {
    .room-card {
        padding: 15px;
    }
    
    .room-card-title {
        font-size: 16px;
    }
    
    .room-card-details {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive per mobile */
@media (max-width: 480px) {
    .room-card-actions {
        gap: 5px;
    }
    
    .room-card-actions button {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    /* Mostra solo icone sui bottoni */
    .room-card-actions button {
        font-size: 0; /* Nasconde il testo */
    }
    
    .room-card-actions button::before {
        font-size: 16px;
    }
    
    .room-card-actions .btn-primary::before {
        content: "✏️";
    }
    
    .room-card-actions .btn-secondary::before {
        content: "👁️";
    }
    
    .room-card-actions .btn-danger::before {
        content: "🗑️";
    }
}

/* Per schermi molto piccoli */
@media (max-width: 360px) {
    .room-card-actions {
        flex-direction: column;
    }
    
    .room-card-actions button {
        width: 100%;
        flex: 1 1 100%;
        font-size: 13px;
    }
    
    /* Ripristina testo completo quando i bottoni sono in colonna */
    .room-card-actions button::before {
        margin-right: 5px;
    }
    
    .room-card-actions .btn-primary::before {
        content: "✏️";
    }
    
    .room-card-actions .btn-primary::after {
        content: " Modifica";
    }
    
    .room-card-actions .btn-secondary::before {
        content: "👁️";
    }
    
    .room-card-actions .btn-secondary::after {
        content: " Dettagli";
    }
    
    .room-card-actions .btn-danger::before {
        content: "🗑️";
    }
    
    .room-card-actions .btn-danger::after {
        content: " Elimina";
    }
}
/* ===== STILI PER RATES AVANZATI ===== */
.rates-controls {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rates-grid-container {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.room-name-cell {
    background: #f8f9fa;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 200px;
}

.rate-cell {
    padding: 8px;
    text-align: center;
    cursor: pointer;
    background: white;
    border: 1px solid #e0e0e0;
    position: relative;
    transition: all 0.2s;
}

.rate-cell:hover {
    background: #f0f7ff !important;
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rate-cell.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.rate-cell.selected .rate-content {
    color: white !important;
}

.rate-cell.stop-sale {
    background: #ffebee !important;
}

.price-display {
    font-size: 16px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 4px;
}

.availability-display {
    display: inline-block;
    padding: 2px 6px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.quick-controls-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 300px;
}

.plan-tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

.plan-tab {
    flex: 1;
    padding: 12px 24px;
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.plan-tab.active {
    color: white;
    border-color: transparent;
}

.meal-plans-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.meal-plan-btn {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.meal-plan-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* Modal per camere */
#roomModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

#roomModal .modal-content {
    background: white;
    max-width: 800px;
    margin: 50px auto;
    padding: 0;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

#roomModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

#roomModal .modal-body {
    padding: 20px;
}

.image-preview-item {
    display: inline-block;
    position: relative;
    margin: 5px;
}

.image-preview-item img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    min-width: 300px;
}
/* ===== FIX GRIGLIA TARIFFE ===== */
/* Aggiungi questi stili al tuo admin.css o in un tag <style> nell'HTML */

/* Fix container principale */
.rates-grid-container {
    background: white;
    border-radius: 12px;
    padding: 10px;
    overflow: visible !important; /* Era overflow-x: auto che nascondeva contenuti */
    min-height: 400px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Fix tabella tariffe */
.advanced-rates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    background: white;
}

/* Fix header tabella */
.advanced-rates-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 8px;
    border: none;
    text-align: center;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Fix prima colonna (nomi camere) */
.room-name-cell {
    background: #f8f9fa !important;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 200px;
    padding: 12px !important;
    border-right: 2px solid #dee2e6;
}

/* Fix celle tariffe */
.rate-cell {
    padding: 8px !important;
    min-height: 80px !important;
    background: white;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
}

.rate-cell:hover {
    background: #e8f4fd !important;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Fix weekend */
.rate-cell.weekend {
    background: #fff9e6 !important;
}

/* Fix selected */
.rate-cell.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid #4CAF50 !important;
    animation: pulse 1.5s infinite;
}

.rate-cell.selected * {
    color: white !important;
}

/* Fix stop sale */
.rate-cell.stop-sale {
    background: #ffebee !important;
    opacity: 0.8;
}

/* Fix contenuto celle */
.rate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.price-display {
    font-size: 18px !important;
    font-weight: bold;
    color: #2e7d32;
}

.availability-display {
    display: inline-block;
    padding: 3px 8px;
    background: #4CAF50;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.min-nights-display {
    font-size: 11px;
    color: #666;
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== MIGLIORAMENTI GRAFICI GENERALI ===== */

/* Card migliorata */
.card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Bottoni più moderni */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

/* Tab piani tariffari più belli */
.plan-tab {
    padding: 15px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.plan-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.plan-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Meal plan buttons più belli */
.meal-plan-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.meal-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.meal-plan-btn.active {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    border-color: transparent;
    color: white;
}

/* Input più moderni */
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Sidebar più moderna */
.sidebar {
    background: white;
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.nav-link {
    padding: 14px 20px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, transparent 100%);
    border-left-color: #667eea;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left-color: #667eea;
    color: #667eea;
}

/* Header più elegante */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e0e0e0;
}

/* Animazioni smooth */
* {
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Fix overflow per vedere tutto */
.main-content-area {
    overflow: visible !important;
}

.content-section {
    overflow: visible !important;
}
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Fix overflow con maggiore specificità */
.main-content-area .rates-grid-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Assicurati che il contenitore principale non esca */
.main-content-area {
    max-width: 100%;
    overflow-x: hidden !important;
}

#section-rates-calendar {
    max-width: 100%;
    overflow: hidden !important;
}
/* ===== MEAL BUTTONS LAYOUT ===== */
.meal-plans {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.meal-btn {
    background: white !important;
    color: #495057 !important;
    border: 2px solid #dee2e6 !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    font-size: 14px !important;
    flex: 1 !important;
    min-width: 140px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.meal-btn:hover {
    border-color: #667eea !important;
    background: #f8f9ff !important;
    transform: translateY(-1px) !important;
}

.meal-btn.active {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3) !important;
}

/* ===== CONTROLLI RAPIDI - LAYOUT CORRETTO ===== */
.controls-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.controls-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.control-group label {
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s;
}

.control-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Bottone direttamente sotto l'input */
.control-group .btn-mini {
    margin-top: 8px;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Sezione Apri/Chiudi separata */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.quick-actions .btn-mini {
    flex: 1;
    max-width: 120px;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Stili bottoni */
.btn-mini.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3) !important;
}

.btn-mini.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3) !important;
}

.btn-mini.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3) !important;
}

.btn-mini:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}
.btn-mini.btn-primary {
    width: 60px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}
/* Controllo Minimo Notti */
.min-nights-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.min-nights-control label {
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.min-nights-control input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s;
}

.min-nights-control .btn-mini {
    margin-top: 8px;
    padding: 8px 12px !important;
    font-size: 12px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}
/* Controllo Min. Notti conforme alla griglia */
.min-nights-control {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border: none !important;
    color: white !important;
}

.min-nights-control label {
    color: white !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 5px !important;
}

.min-nights-control input {
    width: 100% !important;
    padding: 8px !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-align: center !important;
    background: white !important;
    color: #333 !important;
}

.min-nights-control .btn-mini {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    margin-top: 8px !important;
    width: 60px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.min-nights-control .btn-mini:hover {
    background: rgba(255,255,255,0.3) !important;
    border-color: rgba(255,255,255,0.5) !important;
    transform: translateY(-1px) !important;
}
.nav-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}
/* ============================================
   4. HOTEL SWITCHER CSS
   Aggiungi a /backoffice/css/admin.css
   ============================================ */

/* Hotel Switcher nell'header */
.hotel-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.hotel-switcher select {
    padding: 8px 35px 8px 15px;
    border: 2px solid #0066cc;
    border-radius: 8px;
    background: #f0f7ff;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230066cc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 200px;
    transition: all 0.2s;
}

.hotel-switcher select:hover {
    border-color: #004080;
    background-color: #dceeff;
}

.hotel-switcher select:focus {
    outline: none;
    border-color: #3FA9F5;
    box-shadow: 0 0 0 3px rgba(63, 169, 245, 0.3);
}

.hotel-switcher select option {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

/* Header con switcher */
.topbar {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.topbar .hotel-switcher {
    margin-left: auto;
    margin-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hotel-switcher {
        margin: 10px 0;
        width: 100%;
    }
    
    .hotel-switcher select {
        width: 100%;
        min-width: auto;
    }
}