/* Flash messages */
.flash-success {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.flash-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.flash-warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Date picker & select cursor */
input[type="date"],
input[type="date"]::-webkit-calendar-picker-indicator,
select {
    cursor: pointer;
}

/* Hotel table */
.hotel-table td, .hotel-table th {
    padding: 0.5rem 0.75rem;
}

/* Search input */
#hotel-search {
    margin-bottom: 1rem;
}

/* Single hotel results */
.single-results {
    display: none;
    margin-top: 1.5rem;
}
.single-results.visible {
    display: block;
}
.single-results-table td,
.single-results-table th {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    white-space: nowrap;
}
.single-results-table td:nth-child(2) {
    white-space: normal;
}

/* Spinner */
.spinner {
    display: none;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 0.5rem;
}
.spinner.active {
    display: inline-block;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status colors */
.log-ok { color: #5cb85c; font-weight: bold; }
.log-error { color: #d9534f; font-weight: bold; }

/* Batch results table */
.batch-results {
    display: none;
    margin-top: 1.5rem;
}
.batch-results.visible {
    display: table;
}
.batch-results td,
.batch-results th {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}
#batch-summary {
    font-weight: bold;
    padding-top: 0.75rem;
}
.date-header td {
    background: #f0f0f0;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

/* Hotel checkboxes panel */
.hotel-checkboxes {
    display: none;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.hotel-checkboxes.visible {
    display: block;
}
.hotel-checkboxes-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.hotel-checkboxes-header button {
    margin: 0;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    width: auto;
}
#hotel-count {
    font-size: 0.85rem;
    color: #666;
}
.hotel-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.25rem 1rem;
}
.hotel-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem 0;
    margin-bottom: 0;
}
.hotel-checkbox-label input[type="checkbox"] {
    appearance: checkbox;
    -webkit-appearance: checkbox;
    margin: 0;
    width: 16px;
    height: 16px;
}

/* Upload drop zone */
.drop-zone {
    border: 2px dashed #b0b0b0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #3498db;
    background: #f0f8ff;
}
.drop-zone.has-file {
    border-color: #5cb85c;
    background: #f0fff0;
}
.drop-zone input[type="file"] {
    display: none;
}
.drop-zone .file-name {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #155724;
}

/* Responsive mobile */
@media (max-width: 576px) {
    nav.container-fluid {
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    nav.container-fluid > ul {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    nav.container-fluid > ul:first-child li strong {
        font-size: 0.9rem;
    }
    nav.container-fluid > ul:last-child li a {
        font-size: 0.85rem;
        padding: 0.25rem 0.4rem;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    .hotel-checkboxes-grid {
        grid-template-columns: 1fr;
    }
    .batch-results td,
    .batch-results th {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }
    .hotel-table td,
    .hotel-table th {
        padding: 0.3rem 0.4rem;
        font-size: 0.85rem;
    }
    figure { overflow-x: auto; }
}

/* Delete confirmation */
.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}
