/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #004E92 0%, #3DB1E5 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-container img {
    max-width: 200px;
    margin-bottom: 20px;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

.error-message {
    color: #e53935;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.nav-brand img {
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu a {
    padding: 20px 15px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.nav-menu a.logout {
    color: #e53935;
}

.nav-menu a.logout:hover {
    border-bottom-color: #e53935;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

h1 {
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card.alert-deposit {
    background: #fff3e0;
    border: 2px solid #ff9800;
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
}

.stat-card.alert-deposit .number {
    color: #ff9800;
}

/* Header Section */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-refresh {
    background: #43a047;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-refresh:hover {
    background: #388e3c;
}

/* Filtri */
.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-buttons a {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    color: #666;
    transition: all 0.3s;
}

.filter-buttons a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.filter-buttons a.apt-a.active { background: #1e88e5; border-color: #1e88e5; }
.filter-buttons a.apt-c.active { background: #e53935; border-color: #e53935; }
.filter-buttons a.apt-h.active { background: #43a047; border-color: #43a047; }

/* Tabelle */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

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

/* Badge Appartamenti */
.apt-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.apt-badge.apt-a { background: #1e88e5; }
.apt-badge.apt-c { background: #e53935; }
.apt-badge.apt-h { background: #43a047; }

/* Stati Cauzione */
.alert-red {
    color: #e53935;
    font-weight: bold;
}

.success {
    color: #43a047;
}

/* Pulsanti */
.btn-small {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    display: inline-block;
}

.btn-small:hover {
    background: #5a67d8;
}

.btn-danger {
    background: #e53935;
}

.btn-danger:hover {
    background: #c62828;
}

.btn-primary {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.btn-secondary {
    background: #78909c;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    margin-left: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Form */
.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-section h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.highlight-profit input {
    font-size: 18px;
    padding: 10px;
}

/* Calendario */
.calendars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.calendar-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.year-calendar {
    width: 100%;
    font-size: 10px;
    border-collapse: collapse;
}

.year-calendar th,
.year-calendar td {
    padding: 2px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.year-calendar .month-name {
    font-weight: bold;
    background: #f8f9fa;
}

.year-calendar .occupied {
    background: #ff5252;
}

.year-calendar .vacant {
    background: #69f0ae;
}

.year-calendar .no-day {
    background: #f0f0f0;
}

.calendar-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.calendar-stats .stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.occupied-text { color: #e53935; font-weight: bold; }
.vacant-text { color: #43a047; font-weight: bold; }

.year-selector {
    text-align: center;
    margin-bottom: 30px;
}

.current-year {
    font-size: 24px;
    font-weight: bold;
    margin: 0 20px;
}

/* Disponibilità */
.apt-section {
    margin-bottom: 40px;
}

.apt-section h2 {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.apt-section h2.apt-a { background: #e3f2fd; color: #1e88e5; }
.apt-section h2.apt-c { background: #ffebee; color: #e53935; }
.apt-section h2.apt-h { background: #e8f5e9; color: #43a047; }

tr.short-gap {
    background: #ffcdd2 !important;
}

tr.long-gap {
    background: #c8e6c9 !important;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge.red { background: #ffcdd2; color: #c62828; }
.badge.green { background: #c8e6c9; color: #2e7d32; }
.badge.gray { background: #e0e0e0; color: #616161; }

/* Export */
.year-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-year {
    padding: 10px 20px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
}

.btn-year.active {
    background: #667eea;
    color: white;
}

.export-preview {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-large {
    margin-top: 20px;
    display: inline-block;
    font-size: 18px;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert.success {
    background: #c8e6c9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .calendars-grid {
        grid-template-columns: 1fr;
    }
}

.editable {
    background-color: #fffde7 !important;
    border: 2px solid #ffd54f !important;
}

.editable:focus {
    background-color: #fff8e1 !important;
    border-color: #ffb300 !important;
}

/* Calendario Full Width - Uno sotto l'altro */
.calendar-container {
    max-width: 100%;
    padding: 20px;
}

.calendar-fullwidth {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.calendar-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.calendar-stats-inline {
    display: flex;
    gap: 20px;
}

.stat-box {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
}

.stat-box strong {
    display: block;
    font-size: 24px;
    margin-bottom: 2px;
}

.occupied-stat {
    background: #ffebee;
    color: #c62828;
}

.vacant-stat {
    background: #e8f5e9;
    color: #2e7d32;
}

.calendar-wrapper {
    overflow-x: auto;
    padding: 20px;
}

.calendar-table-full {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 12px;
}

.calendar-table-full th,
.calendar-table-full td {
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 8px 4px;
    height: 40px;
}

.calendar-table-full .month-col {
    width: 120px;
    background: #f5f5f5;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    left: 0;
    z-index: 10;
}

.calendar-table-full .day-col {
    width: calc((100% - 120px) / 31);
    background: #fafafa;
    font-weight: 600;
    color: #666;
    font-size: 11px;
}

.calendar-table-full .month-name-full {
    background: #f5f5f5;
    font-weight: 600;
    text-align: left;
    padding-left: 15px;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid #ddd;
}

.calendar-table-full td.occupied {
    background: #ef5350;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-table-full td.occupied:hover {
    background: #c62828;
}

.calendar-table-full td.closed {
    background: #494949;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-table-full td.closed:hover {
    background: #333333;
}

.calendar-table-full td.direct {
    background: #ffa726;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-table-full td.direct:hover {
    background: #e65100;
}

.calendar-table-full td.vacant {
    background: #66bb6a;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-table-full td.vacant:hover {
    background: #2e7d32;
}

.calendar-table-full td.no-day {
    background: #f0f0f0;
    border: 1px solid #e8e8e8;
}

/* Responsive */
@media (max-width: 1400px) {
    .calendar-table-full {
        font-size: 11px;
    }
    
    .calendar-table-full th,
    .calendar-table-full td {
        padding: 6px 2px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calendar-stats-inline {
        width: 100%;
        justify-content: space-between;
    }
    
    .calendar-table-full {
        min-width: 800px;
    }
    
    .calendar-table-full .month-col,
    .calendar-table-full .month-name-full {
        width: 80px;
        font-size: 12px;
    }
}

/* Stati Cauzione */
.deposit-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* Cauzione non richiesta - grigio */
.deposit-not-required {
    background: #e0e0e0;
    color: #616161;
    font-style: italic;
}

/* Cauzione pagata / restituita - verde */
.deposit-paid,
.deposit-returned {
    background: #c8e6c9;
    color: #2e7d32;
    font-weight: 600;
}

/* Cauzione da restituire - giallo */
.deposit-to-return {
    background: #fff8e1;
    color: #e65100;
    font-weight: 700;
    border: 2px solid #f9a825;
}

/* In attesa - rosso */
.deposit-waiting {
    background: #ffcdd2;
    color: #c62828;
    font-weight: 600;
}

/* ALERT e Non pagata (check-in passato) - rosso grassetto */
.deposit-alert,
.deposit-missed {
    background: #ef9a9a;
    color: #b71c1c;
    font-weight: 700;
    border: 2px solid #c62828;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(198, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

/* Cella Fonte a 2 righe */
.source-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.source-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.source-number {
    font-size: 11px;
    color: #666;
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

/* Stati Cauzione (completi) */
.deposit-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.deposit-not-required {
    background: #e0e0e0;
    color: #616161;
    font-style: italic;
}

.deposit-paid,
.deposit-returned {
    background: #c8e6c9;
    color: #2e7d32;
    font-weight: 600;
}

.deposit-to-return {
    background: #fff8e1;
    color: #e65100;
    font-weight: 700;
    border: 2px solid #f9a825;
}

.deposit-waiting {
    background: #ffcdd2;
    color: #c62828;
    font-weight: 600;
}

.deposit-alert,
.deposit-missed {
    background: #ef9a9a;
    color: #b71c1c;
    font-weight: 700;
    border: 2px solid #c62828;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(198, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

.editable {
    background-color: #fffde7 !important;
    border: 2px solid #ffd54f !important;
}

.editable:focus {
    background-color: #fff8e1 !important;
    border-color: #ffb300 !important;
}

/* Cella Fonte a 2 righe */
.source-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.source-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.source-number {
    font-size: 11px;
    color: #555;
    font-family: 'Courier New', monospace;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    border: 1px solid #ddd;
}

/* Stati Cauzione */
.deposit-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.deposit-not-required {
    background: #e0e0e0;
    color: #616161;
    font-style: italic;
}

.deposit-paid,
.deposit-returned {
    background: #c8e6c9;
    color: #2e7d32;
    font-weight: 600;
}

.deposit-to-return {
    background: #fff8e1;
    color: #e65100;
    font-weight: 700;
    border: 2px solid #f9a825;
}

.deposit-waiting {
    background: #ffcdd2;
    color: #c62828;
    font-weight: 600;
}

.deposit-alert,
.deposit-missed {
    background: #ef9a9a;
    color: #b71c1c;
    font-weight: 700;
    border: 2px solid #c62828;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(198, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

.editable {
    background-color: #fffde7 !important;
    border: 2px solid #ffd54f !important;
}

.editable:focus {
    background-color: #fff8e1 !important;
    border-color: #ffb300 !important;
}
/* Pulsanti Successo e Warning */
.btn-success {
    background: #43a047 !important;
    color: white !important;
}

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

.btn-warning {
    background: #ff9800 !important;
    color: white !important;
}

.btn-warning:hover {
    background: #f57c00 !important;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert.danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
}

/* Error Popup Styles */
.error-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.error-popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-popup-header {
    color: #f44336;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-popup-body {
    white-space: pre-line;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-size: 16px;
}

.error-popup-close {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
    font-weight: 600;
}

.error-popup-close:hover {
    background-color: #d32f2f;
}

.error-popup-close:active {
    transform: scale(0.98);
}


/* Source Colors */
.source-name.source-booking {
    color: #1976d2 !important;
    font-weight: 700 !important;
}

.source-name.source-airbnb {
    color: #e53935 !important;
    font-weight: 700 !important;
}

.source-name.source-vrbo {
    color: #43a047 !important;
    font-weight: 700 !important;
}

.source-name.source-direct {
    color: #fb8c00 !important;
    font-weight: 700 !important;
}

.source-name.source-closed {
    color: #757575 !important;
    font-weight: 700 !important;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ======================================== */

/* Tablet - max 768px */
@media screen and (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    /* Container */
    .container {
        padding: 15px;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Charts */
    .charts-section {
        grid-template-columns: 1fr !important;
    }
    
    /* Tables */
    .booking-table {
        font-size: 14px;
    }
    
    .booking-table th,
    .booking-table td {
        padding: 8px 6px;
    }
    
    /* Hide less important columns on mobile */
    .booking-table .hide-mobile {
        display: none;
    }
    
    /* Form rows */
    .form-row {
        flex-direction: column !important;
    }
    
    .form-group {
        width: 100% !important;
    }
    
    /* Action bar */
    .action-bar {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .action-bar > * {
        width: 100%;
    }
}

/* Mobile - max 480px */
@media screen and (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    /* Buttons */
    .btn, .btn-primary, .btn-secondary {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Cards */
    .stat-card, .panel {
        padding: 15px;
    }
    
    /* Login */
    .login-container {
        padding: 25px;
        margin: 15px;
    }
    
    /* Dashboard stats */
    .stat-value {
        font-size: 28px;
    }
    
    /* Filters */
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar select,
    .filter-bar input {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Responsive Tables Scroll */
@media screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .booking-table {
        min-width: 600px;
    }
}

/* Print Styles */
@media print {
    .navbar, .action-bar, .filter-bar, .btn, button {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .stat-card {
        break-inside: avoid;
    }
}
