/**
 * THODA Channel Manager - Mobile Optimization
 * /backoffice/css/mobile.css
 * 
 * Ottimizzazione per dispositivi mobili
 * Menu semplificato: Dashboard, Prenotazioni, Offerte, Preventivi, CRM
 */

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.hamburger-menu {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    background: #2c3e50;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   OVERLAY quando sidebar aperta
   ============================================ */

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   MOBILE STYLES (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    
    /* Mostra hamburger */
    .hamburger-menu {
        display: block;
    }
    
    /* Header mobile */
    .header {
        padding: 10px 15px;
        padding-left: 60px; /* Spazio per hamburger */
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    #hotel-name {
        display: none; /* Nascondi nome hotel su mobile */
    }
    
    /* Sidebar mobile */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 60px;
            padding-bottom: 100px;

    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Main content mobile */
    .main-content-area {
        margin-left: 0 !important;
        padding: 15px;
        padding-top: 70px;
    }
    
    /* ============================================
       NASCONDI SEZIONI NON NECESSARIE SU MOBILE
       ============================================ */
    
    /* Nascondi completamente queste sezioni del menu */
   .sidebar .nav-section-title:not(.mobile-show),
.sidebar [onclick*="rooms-"],
.sidebar [onclick*="imposte"],
.sidebar [onclick*="ota-"],
.sidebar [onclick*="sync-"],
.sidebar [onclick*="analytics"],
.sidebar [onclick*="reports"],
.sidebar [onclick*="payments"],
.sidebar [onclick*="beds24"],
.sidebar [onclick*="Beds24"],
.sidebar [onclick*="toggleSubmenu('beds24-menu"],
.sidebar [onclick*="settings-"] {
    display: none !important;
}
    
    /* Nascondi i submenu che contengono voci nascoste */
 #payments-menu {
    display: none !important;
}
    
    /* Nascondi Tableau dal menu prenotazioni */
    .sidebar [onclick*="tableau"],
    .sidebar [onclick*="guests"] {
        display: none !important;
    }
    
   
    
    /* Mostra solo queste sezioni */
    .sidebar [onclick*="dashboard"],
    .sidebar [onclick*="bookings-list"],
    .sidebar [onclick*="new-booking"],
    .sidebar [onclick*="arrivals"],
        .sidebar [onclick*="housekeeping"],
    .sidebar [onclick*="offers"],
    .sidebar [onclick*="quotes"],
    .sidebar [onclick*="crm"] {
        display: flex !important;
    }
    
    /* Mostra il menu Prenotazioni */
    .sidebar [onclick*="toggleSubmenu('bookings-menu"] {
        display: flex !important;
    }
    
    #bookings-menu {
        display: none; /* Inizialmente nascosto, si apre con click */
    }
    
    #bookings-menu.show {
        display: block !important;
    }
    
    /* Mostra menu Preventivi */
    .sidebar [onclick*="toggleSubmenu('quotes-menu"] {
        display: flex !important;
    }
    
    #quotes-menu {
        display: none;
    }
    
    #quotes-menu.show {
        display: block !important;
    }
    
    /* ============================================
       CARDS E LAYOUT MOBILE
       ============================================ */
    
    .stats-cards,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 20px;
    }
    
    .stat-card p {
        font-size: 11px;
    }
    
    /* ============================================
       TABELLE MOBILE
       ============================================ */
    
    .bookings-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bookings-table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 5px;
        white-space: nowrap;
    }
    
    /* Nascondi colonne meno importanti su mobile */
    .bookings-table th:nth-child(4),
    .bookings-table td:nth-child(4),
    .bookings-table th:nth-child(7),
    .bookings-table td:nth-child(7),
    .bookings-table th:nth-child(8),
    .bookings-table td:nth-child(8) {
        display: none;
    }
    
    /* ============================================
       FORM MOBILE
       ============================================ */
    
    .form-row,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Previene zoom su iOS */
    }
    
    /* ============================================
       BOTTONI MOBILE
       ============================================ */
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-icon {
        padding: 8px;
        font-size: 16px;
    }
    
    /* ============================================
       FILTRI MOBILE
       ============================================ */
    
    .filters-row,
    .controls-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group,
    .control-group {
        width: 100%;
        min-width: unset;
    }
    
    /* ============================================
       CRM MOBILE
       ============================================ */
    
    .crm-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .crm-stat-card {
        padding: 15px;
    }
    
    .crm-tabs {
        flex-wrap: wrap;
    }
    
    .crm-tabs .tab-btn {
        flex: 1;
        min-width: 45%;
        padding: 10px;
        font-size: 12px;
    }
    
    #contacts-table {
        font-size: 11px;
    }
    
    /* Nascondi colonne meno importanti */
    #contacts-table th:nth-child(4),
    #contacts-table td:nth-child(4),
    #contacts-table th:nth-child(5),
    #contacts-table td:nth-child(5),
    #contacts-table th:nth-child(9),
    #contacts-table td:nth-child(9) {
        display: none;
    }
    
    /* ============================================
       MODAL MOBILE
       ============================================ */
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* ============================================
       PREVENTIVI MOBILE
       ============================================ */
    
    .quotes-table {
        font-size: 12px;
    }
    
    .quotes-table th:nth-child(5),
    .quotes-table td:nth-child(5),
    .quotes-table th:nth-child(6),
    .quotes-table td:nth-child(6) {
        display: none;
    }
    
    /* ============================================
       OFFERTE MOBILE
       ============================================ */
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-card {
        padding: 15px;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    
    .header h1 {
        font-size: 14px;
    }
    
    .stats-cards,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .crm-stats {
        grid-template-columns: 1fr;
    }
    
    .crm-tabs .tab-btn {
        min-width: 100%;
    }
    
    /* Tabelle ancora pi첫 compatte */
    .bookings-table,
    #contacts-table,
    .quotes-table {
        font-size: 10px;
    }
    
    /* Nascondi ancora pi첫 colonne */
    .bookings-table th:nth-child(3),
    .bookings-table td:nth-child(3),
    .bookings-table th:nth-child(5),
    .bookings-table td:nth-child(5),
    .bookings-table th:nth-child(6),
    .bookings-table td:nth-child(6) {
        display: none;
    }
}

/* ============================================
   BOTTOM NAV BAR (Opzionale per navigazione veloce)
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;/**
 * THODA Channel Manager - Mobile Optimization
 * /backoffice/css/mobile.css
 * 
 * Ottimizzazione per dispositivi mobili
 * Menu semplificato: Dashboard, Prenotazioni, Offerte, Preventivi, CRM
 */

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.hamburger-menu {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    background: #2c3e50;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   OVERLAY quando sidebar aperta
   ============================================ */

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   MOBILE STYLES (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    
    /* Mostra hamburger */
    .hamburger-menu {
        display: block;
    }
    
    /* Header mobile */
    .header {
        padding: 10px 15px;
        padding-left: 60px; /* Spazio per hamburger */
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    #hotel-name {
        display: none; /* Nascondi nome hotel su mobile */
    }
    
    /* Sidebar mobile */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 60px;
            padding-bottom: 100px;

    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Main content mobile */
    .main-content-area {
        margin-left: 0 !important;
        padding: 15px;
        padding-top: 70px;
    }
    
    /* ============================================
       NASCONDI SEZIONI NON NECESSARIE SU MOBILE
       ============================================ */
    
    /* Nascondi completamente queste sezioni del menu */
    .sidebar .nav-section-title:not(.mobile-show),
.sidebar [onclick*="rooms-"],
  .sidebar [onclick*="imposte"],
.sidebar [onclick*="ota-"],
.sidebar [onclick*="sync-"],
.sidebar [onclick*="analytics"],
.sidebar [onclick*="reports"],
.sidebar [onclick*="payments"],
.sidebar [onclick*="beds24"],
.sidebar [onclick*="Beds24"],
.sidebar [onclick*="toggleSubmenu('beds24-menu"],
.sidebar [onclick*="settings-"] {
    display: none !important;
}
    
    /* Nascondi i submenu che contengono voci nascoste */
 #rooms-menu,
#payments-menu {
    display: none !important;
}
    
    /* Nascondi Tableau dal menu prenotazioni */
    .sidebar [onclick*="tableau"],
    .sidebar [onclick*="guests"] {
        display: none !important;
    }

    /* Mostra solo queste sezioni */
   .sidebar [onclick*="dashboard"],
.sidebar [onclick*="bookings-list"],
.sidebar [onclick*="new-booking"],
.sidebar [onclick*="arrivals"],
.sidebar [onclick*="housekeeping"],
.sidebar [onclick*="offers"],
.sidebar [onclick*="extras"],
.sidebar [onclick*="quotes"],
.sidebar [onclick*="web-docs"],
.sidebar [onclick*="rates-"],
.sidebar [onclick*="messages-inbox"],
.sidebar [onclick*="reviews"],
.sidebar [onclick*="crm"] {
    display: flex !important;
}
    
    /* Mostra il menu Prenotazioni */
    .sidebar [onclick*="toggleSubmenu('bookings-menu"] {
        display: flex !important;
    }
    
    #bookings-menu {
        display: none; /* Inizialmente nascosto, si apre con click */
    }
    
    #bookings-menu.show {
        display: block !important;
    }
    
    /* Mostra menu Preventivi */
    .sidebar [onclick*="toggleSubmenu('quotes-menu"] {
        display: flex !important;
    }
    
    #quotes-menu {
        display: none;
    }
    
    #quotes-menu.show {
        display: block !important;
    }
    /* Mostra menu Tariffe */
.sidebar [onclick*="toggleSubmenu('rates-menu"] {
    display: flex !important;
}
#rates-menu {
    display: none;
}
#rates-menu.show {
    display: block !important;
}
/* Mostra menu Moduli Web */
.sidebar [onclick*="toggleSubmenu('web-docs-menu"] {
    display: flex !important;
}
#web-docs-menu {
    display: none;
}
#web-docs-menu.show {
    display: block !important;
}
    
    /* ============================================
       CARDS E LAYOUT MOBILE
       ============================================ */
    
    .stats-cards,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 20px;
    }
    
    .stat-card p {
        font-size: 11px;
    }
    
    /* ============================================
       TABELLE MOBILE
       ============================================ */
    
    .bookings-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bookings-table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 5px;
        white-space: nowrap;
    }
    
    /* Nascondi colonne meno importanti su mobile */
    .bookings-table th:nth-child(4),
    .bookings-table td:nth-child(4),
    .bookings-table th:nth-child(7),
    .bookings-table td:nth-child(7),
    .bookings-table th:nth-child(8),
    .bookings-table td:nth-child(8) {
        display: none;
    }
    
    /* ============================================
       FORM MOBILE
       ============================================ */
    
    .form-row,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Previene zoom su iOS */
    }
    
    /* ============================================
       BOTTONI MOBILE
       ============================================ */
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-icon {
        padding: 8px;
        font-size: 16px;
    }
    
    /* ============================================
       FILTRI MOBILE
       ============================================ */
    
    .filters-row,
    .controls-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group,
    .control-group {
        width: 100%;
        min-width: unset;
    }
    
    /* ============================================
       CRM MOBILE
       ============================================ */
    
    .crm-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .crm-stat-card {
        padding: 15px;
    }
    
    .crm-tabs {
        flex-wrap: wrap;
    }
    
    .crm-tabs .tab-btn {
        flex: 1;
        min-width: 45%;
        padding: 10px;
        font-size: 12px;
    }
    
    #contacts-table {
        font-size: 11px;
    }
    
    /* Nascondi colonne meno importanti */
    #contacts-table th:nth-child(4),
    #contacts-table td:nth-child(4),
    #contacts-table th:nth-child(5),
    #contacts-table td:nth-child(5),
    #contacts-table th:nth-child(9),
    #contacts-table td:nth-child(9) {
        display: none;
    }
    
    /* ============================================
       MODAL MOBILE
       ============================================ */
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* ============================================
       PREVENTIVI MOBILE
       ============================================ */
    
    .quotes-table {
        font-size: 12px;
    }
    
    .quotes-table th:nth-child(5),
    .quotes-table td:nth-child(5),
    .quotes-table th:nth-child(6),
    .quotes-table td:nth-child(6) {
        display: none;
    }
    
    /* ============================================
       NUOVO PREVENTIVO - SEZIONE CAMERE MOBILE
       ============================================ */
    
    /* Container camere scrollabile */
    .rooms-selector {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    #rooms-container {
        min-width: 100%;
    }
    
    /* Room item - layout verticale su mobile */
    .room-item {
        min-width: 100%;
    }
    
    .room-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .room-details select,
    .room-details input {
        width: 100% !important;
        min-width: unset !important;
        padding: 12px !important;
        font-size: 16px !important; /* Previene zoom iOS */
    }
    
    .room-details .input-with-label {
        width: 100%;
    }
    
    .room-details .input-with-label input {
        width: 100%;
    }
    
    /* Quote sections generali */
    .quote-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .quote-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    /* Date picker row */
    .date-row,
    .dates-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .date-row > div,
    .dates-row > div {
        width: 100%;
    }
    
    /* Guest info form */
    .guest-info-grid,
    .guest-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Extras grid */
    .extras-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Quote summary */
    .quote-summary {
        padding: 15px;
    }
    
    .summary-row {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* Action buttons in preventivi */
    .quote-actions,
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .quote-actions .btn,
    .form-actions .btn {
        width: 100%;
    }
    
    /* ============================================
       OFFERTE MOBILE
       ============================================ */
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .offer-card {
        padding: 15px;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    
    .header h1 {
        font-size: 14px;
    }
    
    .stats-cards,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .crm-stats {
        grid-template-columns: 1fr;
    }
    
    .crm-tabs .tab-btn {
        min-width: 100%;
    }
    
    /* Tabelle ancora pi첫 compatte */
    .bookings-table,
    #contacts-table,
    .quotes-table {
        font-size: 10px;
    }
    
    /* Nascondi ancora pi첫 colonne */
    .bookings-table th:nth-child(3),
    .bookings-table td:nth-child(3),
    .bookings-table th:nth-child(5),
    .bookings-table td:nth-child(5),
    .bookings-table th:nth-child(6),
    .bookings-table td:nth-child(6) {
        display: none;
    }
}

/* ============================================
   BOTTOM NAV BAR (Opzionale per navigazione veloce)
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        text-decoration: none;
        font-size: 10px;
        padding: 5px 10px;
        opacity: 0.7;
        transition: opacity 0.2s;
    }
    
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        opacity: 1;
    }
    
    .mobile-bottom-nav a span.icon {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    /* Spazio extra in fondo per la nav bar */
    .main-content-area {
        padding-bottom: 80px;
    }
}
        align-items: center;
        color: white;
        text-decoration: none;
        font-size: 10px;
        padding: 5px 10px;
        opacity: 0.7;
        transition: opacity 0.2s;
    }
    
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        opacity: 1;
    }
    
    .mobile-bottom-nav a span.icon {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    /* Spazio extra in fondo per la nav bar */
    .main-content-area {
        padding-bottom: 80px;
    }
}
/* ============================================
   LOGO RESPONSIVE
   ============================================ */

.logo-container {
    display: flex;
    align-items: center;
}

.logo-desktop {
    height: 180px;
    width: auto;
    max-height: none;
}

.logo-mobile {
    display: none;
    height: 120px;
    width: auto;
    max-height: none;
}

@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }
    
    .logo-mobile {
        display: block;
    }
}
.nav-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}
/* ============================================
   COLORI BOTTONI GLOBALI
   ============================================ */

.btn-primary {
    background: #68d3dc !important;
    background-image: none !important;
    color: white !important;
}

.btn-primary:hover {
    background: #5bc0c9 !important;
    color: white !important;
}

.btn-secondary {
    background: #ecf4fc !important;
    background-image: none !important;
    color: #333 !important;
}

.btn-secondary:hover {
    background: #d9e8f5 !important;
    color: #333 !important;
}
/* ============================================
   TEMA COLORI PERSONALIZZATO
   Sovrascrive tutti i colori del sito
   ============================================ */

/* === COLORE PRIMARIO (da #667eea/#764ba2 a #68d3dc) === */
.btn-primary,
.nav-link.active,
.tab-btn.active,
.badge-primary {
    background: #68d3dc !important;
    background-image: none !important;
    color: white !important;
}

.btn-primary:hover {
    background: #5bc0c9 !important;
}

/* Link e accent */
a:not(.btn):not(.nav-link) {
    color: #68d3dc;
}

/* Bordi e focus */
input:focus,
select:focus,
textarea:focus {
    border-color: #68d3dc !important;
    box-shadow: 0 0 0 3px rgba(104, 211, 220, 0.2) !important;
}

/* Headers e titoli colorati */
.stat-card,
.quote-summary,
.module-header h2,
.card-header {
    border-left-color: #68d3dc !important;
}

/* Gradienti - sostituisci viola con azzurro */
.quote-summary,
.login-card h1,
.header h1 {
    background: linear-gradient(135deg, #68d3dc 0%, #5bc0c9 100%) !important;
}

/* === COLORE SECONDARIO (#ecf4fc) === */
.btn-secondary {
    background: #ecf4fc !important;
    color: #333 !important;
}

.btn-secondary:hover {
    background: #d9e8f5 !important;
}

/* Sfondi chiari */
.filters-section,
.rooms-selector,
.form-section {
    background: #ecf4fc !important;
}

/* === VERDE SUCCESSO (#4CAF50) === */
.badge-success,
.text-success,
.status-confirmed,
.status-success {
    background-color: #4CAF50 !important;
    color: white !important;
}

.text-success {
    color: #4CAF50 !important;
    background: transparent !important;
}

/* === VERDE CONFERMA (#28a745) === */
.btn-success {
    background: #28a745 !important;
    color: white !important;
}

.btn-success:hover {
    background: #218838 !important;
}

/* === ROSSO ERRORE (#ff5722) === */
.badge-danger,
.text-danger,
.status-cancelled,
.btn-danger {
    background-color: #ff5722 !important;
    color: white !important;
}

.btn-danger:hover {
    background: #e64a19 !important;
}

.text-danger {
    color: #ff5722 !important;
    background: transparent !important;
}

/* === BLU INFO (#ecf4fc) === */
.badge-info,
.text-info,
.status-checked_in,
.btn-info {
    background-color: #ecf4fc !important;
    color: white !important;
}

.btn-info:hover {
    background: #003d82 !important;
}

.text-info {
    color: #ecf4fc !important;
    background: transparent !important;
}

/* === WARNING (mantieni giallo) === */
.badge-warning,
.text-warning,
.status-pending {
    background-color: #ffc107 !important;
    color: #333 !important;
}

.text-warning {
    color: #ffc107 !important;
    background: transparent !important;
}

/* === TAB E NAVIGAZIONE === */
.nav-link:hover,
.tab-btn:hover {
    background: rgba(104, 211, 220, 0.1) !important;
}

.nav-link.active::before,
.tab-btn.active::after {
    background: #68d3dc !important;
}

/* === CHECKBOX E RADIO === */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: #68d3dc !important;
}

/* === PROGRESS BAR === */
.progress-bar {
    background: #68d3dc !important;
}

/* === CARDS STATISTICHE === */
.stat-card:nth-child(odd) {
    background: #68d3dc !important;
    color: white !important;
}

.stat-card:nth-child(even) {
    background: #ecf4fc !important;
    color: #333 !important;
}
/* ============================================
   FIX SOTTOMENU - COLORE TESTO
   ============================================ */

.nav-sublink,
.nav-sublink:visited,
.nav-submenu a,
.nav-submenu .nav-sublink {
    color: #333 !important;
}

.nav-sublink:hover,
.nav-submenu a:hover {
    color: #000 !important;
    background: #e9ecef !important;
}

.nav-sublink.active,
.nav-submenu a.active {
    color: #0050b3 !important;
    font-weight: 600 !important;
}

/* Rimuovi colore azzurro dai link sottomenu */
a.nav-sublink {
    color: #333 !important;
}

/* ============================================
   FIX COLORI VIOLA/ROSA RIMANENTI
   ============================================ */

/* === HEADER OFFERTE E PROMOZIONI === */
.offers-header,
.offers-module .module-header,
.offer-header,
[class*="offers"] .header,
.offers-stats-header {
    background: #ecf4fc !important;
    background-image: none !important;
    color: white !important;
}

/* === CARDS STATISTICHE OFFERTE === */
.offers-stats .stat-card,
.offer-stat-card {
    background: #68d3dc !important;
    color: white !important;
}

.offers-stats .stat-card:nth-child(even) {
    background: #ecf4fc !important;
    color: #333 !important;
}

/* === CARD OFFERTA GRADIENTE === */
.offer-card .offer-image,
.offer-card-header,
.offer-card .card-top {
    background: #ecf4fc !important;
    background-image: none !important;
}

/* === BOTTONI CALENDARIO TARIFFE === */
.rates-module .btn,
.rate-plan-btn,
.treatment-btn,
.btn-rate,
.btn[class*="rate"],
button[class*="Standard"],
button[class*="Solo Camera"],
.filter-btn.active,
.plan-btn.active,
.treatment-btn.active {
    background: #ecf4fc !important;
    background-image: none !important;
    color: white !important;
}

.filter-btn:not(.active),
.plan-btn:not(.active),
.treatment-btn:not(.active) {
    background: #ecf4fc !important;
    color: #333 !important;
}

/* === HEADER CALENDARIO (cambio settimana) === */
.calendar-navigation,
.week-navigation,
.calendar-header-row,
.rates-calendar thead,
.rates-calendar th,
[class*="calendar"] th,
.bulk-header {
    background: #0050b3!important;
    background-image: none !important;
    color: white !important;
}

/* === CELLE DATA CALENDARIO === */
.date-cell-header,
.calendar-date,
th.date-header {
    background: #ecf4fc!important;
    color: white !important;
}

/* === POPUP MIN NOTTI (viola -> blu) === */
.min-nights-popup,
.popup-content,
.quick-edit-popup {
    border-color: #ecf4fc !important;
}

.min-nights-popup .popup-header,
.quick-edit-popup .header {
    background: #ecf4fc !important;
    color: white !important;
}

/* === TUTTI I GRADIENTI VIOLA === */
[style*="linear-gradient(135deg, #667eea"],
[style*="linear-gradient(135deg,#667eea"],
[style*="gradient"][style*="667eea"],
[style*="gradient"][style*="764ba2"] {
    background: #ecf4fc !important;
    background-image: none !important;
    color: white !important;
}

/* === BOTTONI AGGIORNA/DATI DEMO === */
.btn-refresh,
.btn-demo,
.btn-update,
.btn-load,
button[onclick*="aggiorna"],
button[onclick*="demo"],
button[onclick*="Calendario"] {
    background: #68d3dc !important;
    color: white !important;
}

/* === TAB ATTIVI (OTA, Standard, etc.) === */
.tab-btn.active,
.filter-tab.active,
.plan-tab.active,
.rate-tab.active {
    background: #ecf4fc !important;
    color: white !important;
}

.tab-btn:not(.active),
.filter-tab:not(.active) {
    background: #f8f9fa !important;
    color: #333 !important;
}

/* === LINK COLORATI (rimuovi azzurro dove non serve) === */
a:not(.btn):not(.nav-link):not(.nav-sublink) {
    color: #ecf4fc !important;
}


/* ============================================
   FIX BOTTONI PIANO TARIFFARIO (OTA, Standard, Web Special)
   ============================================ */

.plan-tab {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 2px solid #dee2e6 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.plan-tab.active {
    background: #0050b3 !important;
    color: white !important;
    border-color: #0050b3 !important;
}

.plan-tab:hover:not(.active) {
    border-color: #0050b3 !important;
    background: #ecf4fc !important;
}
/* ============================================
   FIX HEADER TABELLA CALENDARIO TARIFFE
   ============================================ */

.advanced-rates-table thead th {
    background: #0050b3 !important;
    background-image: none !important;
    color: white !important;
}
/* ============================================
   FIX BOTTONI MEAL (B&B, Solo Camera, etc.)
   ============================================ */

.meal-btn {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 2px solid #dee2e6 !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
}

.meal-btn.active {
    background: #0050b3 !important;
    color: white !important;
    border-color: #0050b3 !important;
}

.meal-btn:hover:not(.active) {
    border-color: #0050b3 !important;
    background: #ecf4fc !important;
}

/* ============================================
   FIX BOTTONI AGGIORNA/DATI DEMO
   ============================================ */

.btn.btn-primary,
button.btn-primary {
    background: #68d3dc !important;
    background-image: none !important;
    color: white !important;
    border: none !important;
}

.btn.btn-primary:hover,
button.btn-primary:hover {
    background: #5bc0c9 !important;
}

.btn.btn-success,
button.btn-success {
    background: #28a745 !important;
    background-image: none !important;
    color: white !important;
    border: none !important;
}

.btn.btn-success:hover,
button.btn-success:hover {
    background: #218838 !important;
}
/* ============================================
   FIX HEADER MODULI (Modifica Massiva, Piani Tariffari, etc.)
   ============================================ */

.module-header {
    background: #0050b3 !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
}

.module-header h2 {
    color: white !important;
    margin: 0 !important;
}

.module-header p {
    color: rgba(255,255,255,0.8) !important;
    margin: 5px 0 0 0 !important;
}
/* ============================================
   FIX BOX MIN. NOTTI (magenta -> blu)
   ============================================ */

.min-nights-control,
.min-nights-container,
.control-group.min-nights-control,
[class*="min-nights"] {
    background: #0050b3 !important;
    border-color: #0050b3 !important;
    color: white !important;
}

.min-nights-control label,
.min-nights-control input,
[class*="min-nights"] label {
    color: white !important;
}

.min-nights-control input {
    background: white !important;
    color: #333 !important;
}
/* ============================================
   HOUSEKEEPING MOBILE
   ============================================ */

@media (max-width: 768px) {
    
    /* Cards più compatte */
    .hk-room-card {
        padding: 12px;
    }
    
    .hk-room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hk-room-number {
        font-size: 16px;
    }
    
    .hk-room-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .hk-room-actions button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Tabs compatti */
    .hk-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .hk-tab {
        flex: 1;
        min-width: 100px;
        padding: 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Filtri stack verticale */
    .hk-filters {
        flex-direction: column;
    }
    
    .hk-filter-group {
        width: 100%;
    }
    
    /* Stats header compatto */
    .hk-header-stat {
        padding: 10px;
    }
    
    .hk-header-stat-number {
        font-size: 20px;
    }
    
    /* Grid camere 1 colonna */
    .hk-rooms-grid {
        grid-template-columns: 1fr;
    }
    
    /* Schedule summary 2x2 */
    .hk-schedule-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hk-summary-value {
        font-size: 24px;
    }
    
    /* Days cards 1 colonna */
    .hk-schedule-days {
        grid-template-columns: 1fr;
    }
    
    /* Modal fullscreen */
    .hk-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }
}