/* ================================================================
   EXO CALENDAR — Corporate Theme
   Clean, professional, slightly minimalist
   ================================================================ */

/* ------------------------- BASE & TYPOGRAPHY ---------------------- */
html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
    min-width: 100% !important;
}

body {
    font-family: 'Roboto Condensed', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #2d3436;
    margin-bottom: 60px;
    line-height: 1.5;
}

.dave > main {
    padding-top: 70px !important;
}

a {
    color: #2c5282;
}

    a:hover {
        color: #1a365d;
    }


/* ------------------------- NAVBAR -------------------------------- */
.sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0;
    z-index: 1000;
}

.navbar {
    background: #d0d8e5 !important;
    border-bottom: 1px solid #b8c4d6 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0.4rem 1rem;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.15rem;
    color: #1a202c !important;
    letter-spacing: -0.3px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

    .nav-link:hover {
        background: #edf2f7;
        color: #1a202c !important;
    }


/* ------------------------- FILTER BAR / CHECKBOXES --------------- */
.sticky-sub {
    position: sticky;
    top: 42px;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .sticky-sub div {
        padding: 4px 8px;
        border: 1px solid #cbd5e0;
        background-color: #fff;
        border-radius: 3px;
        font-size: 0.9rem;
    }

/* --- Calendar layout: sidebar + grid --- */
.calendar-layout {
    display: flex;
    gap: 12px;
}

.filter-sidebar {
    flex: 0 0 180px;
    align-self: flex-start;
    position: sticky;
    top: 60px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Apartment filters: compact coloured chips that wrap, like the calendar badges */
.apt-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

    .filter-sidebar .apt-filter-grid label {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        padding: 1px 5px;
        font-size: 0.8rem;
        border-radius: 3px;
        cursor: pointer;
    }

        .filter-sidebar .apt-filter-grid label input[type="checkbox"] {
            margin: 0;
        }

.filter-group {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.filter-sidebar label {
    display: block;
    font-size: 0.93rem;
    padding: 2px 0;
    cursor: pointer;
}

.filter-sidebar input[type="checkbox"] {
    margin-right: 4px;
    accent-color: #2c5282;
}

.calendar-layout .calendar-grid {
    flex: 1;
}

/* Mobile: sidebar becomes top bar */
@media (max-width: 900px) {
    .calendar-layout {
        flex-direction: column;
    }

    .calendar-layout {
        margin-top: 0;
    }

    .filter-sidebar {
        flex: none;
        position: sticky;
        top: 60px;
        z-index: 500;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .filter-group {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        padding: 4px 8px;
        border: 1px solid #cbd5e0;
        border-radius: 3px;
        background: #fff;
    }

    .filter-group-label {
        display: none;
    }

    .filter-sidebar label {
        display: inline;
        font-size: 0.85rem;
    }
}

.toggleable {
    display: inline-block;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 6px 12px;
    margin: 2px 3px;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .toggleable:hover {
        border-color: #a0aec0;
    }

    .toggleable input[type="checkbox"] {
        margin-right: 4px;
        accent-color: #2c5282;
    }

.topfill {
    padding-top: 50px;
}


/* ------------------------- CALENDAR ------------------------------ */
.calendar-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #2d3436;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    max-height: 100vh;
    padding-bottom: 20px;
    width: 100%;
}

.calendar-month {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 12px;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

    .calendar-month h3 {
        background: #d0d8e5;
        color: #1a202c;
        padding: 10px 12px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 3px 3px 0 0;
        margin: 0;
        border-bottom: 1px solid #b8c4d6;
    }

.month-title {
    font-size: 20px;
    font-weight: 600;
    vertical-align: central;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #1a202c;
}

.calendar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.calendar-day {
    flex: 1 1 calc(14.28% - 10px);
    min-width: 200px;
    max-width: 200px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: border-color 0.15s;
    font-size: 0.93rem;
    text-align: left;
    overflow: hidden;
    position: relative;
}

    .calendar-day .day-content {
        width: 100%;
        word-wrap: break-word;
        white-space: normal;
    }

    .calendar-day.today {
        border: 3px solid #2c8c44;
    }

    .calendar-day:hover {
        border-color: #a0aec0;
        background: #f7fafc;
    }

.weekday {
    background-color: #fff;
    padding: 5px;
}

.weekend {
    background-color: #f7fafc;
    padding: 5px;
}

.day-content {
    position: relative;
}

/* EXPERIMENT: date header is the tap-target for day Details */
.day-header-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.15s;
}

    .day-header-link:hover {
        background-color: #e2e8f0;
    }

.day-header-chevron {
    font-size: 0.8rem;
    color: #a0aec0;
}

.day-header-link:hover .day-header-chevron {
    color: #2c5282;
}


/* Responsive calendar grid */
@media (max-width: 1400px) {
    .calendar-day {
        flex: 1 1 calc(20% - 10px);
    }
}

@media (max-width: 1100px) {
    .calendar-day {
        flex: 1 1 calc(25% - 10px);
    }
}

@media (max-width: 900px) {
    .calendar-day {
        flex: 1 1 calc(33.33% - 10px);
    }
}

@media (max-width: 700px) {
    .calendar-day {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 500px) {
    .calendar-day {
        flex: 1 1 calc(100% - 10px);
    }
}


/* ------------------------- LIST TABLE ---------------------------- */
.CalendarListTable {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
}

    .CalendarListTable th {
        width: 10%;
        background: #fff;
        color: #2d3436;
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding: 8px 10px;
        border-bottom: 2px solid #e2e8f0;
    }

    .CalendarListTable td {
        width: 10% !important;
        padding: 6px 10px;
        border-bottom: 1px solid #edf2f7;
        vertical-align: middle;
    }

    .CalendarListTable tbody tr:hover {
        background: #f7fafc;
    }


/* ------------------------- BOOKING STATUS ------------------------ */
.status_cancelled {
    border: 2px solid #e53e3e;
    opacity: 0.7;
}


/* ------------------------- EVENTS -------------------------------- */
.event {
    position: relative;
    transition: opacity 0.15s;
    border-radius: 2px;
    display: flex;
    align-items: center;
    background: #fff;
}

    .event:hover {
        opacity: 0.85;
    }

/* EXPERIMENT: coloured apt badge on left, white body, directional arrows */
.event-apt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    padding: 2px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3436;
    border-radius: 2px 0 0 2px;
    text-decoration: none;
}

a.event-apt-badge:hover {
    color: #2d3436;
    text-decoration: none;
}

/* IN/OUT text + arrow = the ViewBooking link (fixed width so arrows align) */
.event-inout {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    width: 60px;
    min-width: 60px;
    color: inherit;
    text-decoration: none;
}

    a.event-inout:hover {
        color: inherit;
        text-decoration: none;
        opacity: 0.7;
    }

.event-inout-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.event-inout .bi {
    font-size: 1.1rem;
    line-height: 1;
}

.event-body {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Right-side columns shared by Check IN / OUT rows: flexible extras | status dot | tail */
.event-extras {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Cleaning status bullet (circle icon + colour from GenList); fixed column so it aligns across rows */
.event-status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    text-decoration: none;
    cursor: pointer;
}

    a.event-status-dot:hover {
        opacity: 0.85;
        text-decoration: none;
    }

    .event-status-dot .bi {
        font-size: 0.8rem;
        line-height: 1;
    }

/* Days-until-next-checkin (up to 3 digits) OR platform letter — fixed width, right-aligned, so every row lines up */
.event-tail {
    width: 24px;
    min-width: 24px;
    margin-left: 4px;
    text-align: right;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.event-delete-btn {
    position: absolute;
    top: 2px;
    right: 30px;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 2px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.event:hover .event-delete-btn {
    display: flex;
}

.add-event-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #38a169;
    color: white;
    border: none;
    border-radius: 3px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.15s;
}

    .add-event-btn:hover {
        opacity: 1;
    }


/* ------------------------- MODAL POP UPS ------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
    color: #a0aec0;
    background: none;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

    .modal-close:hover {
        background: #edf2f7;
        color: #2d3436;
    }


/* ------------------------- FORMS --------------------------------- */
.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        display: block;
        margin-bottom: 4px;
        font-weight: 600;
        color: #4a5568;
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 7px 10px;
        border: 1px solid #cbd5e0;
        border-radius: 3px;
        font-size: 13px;
        transition: border-color 0.15s;
        background: #fff;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #2c5282;
            box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 60px;
    }

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #2c5282;
}

.btn {
    padding: 7px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background-color: #2c5282;
    color: white;
}

    .btn-primary:hover {
        background-color: #1a365d;
    }

.btn-secondary {
    background-color: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

    .btn-secondary:hover {
        background-color: #e2e8f0;
        color: #4a5568;
    }

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

    .btn-danger:hover {
        background-color: #c53030;
    }

/* Mobile modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}


/* ------------------------- BOOKING FORM -------------------------- */
.booking-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.booking-form-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

    .booking-form-header h2 {
        color: #1a202c;
        font-size: 22px;
        font-weight: 600;
        margin: 0;
    }

.booking-form .form-group {
    margin-bottom: 18px;
}

    .booking-form .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #4a5568;
        font-size: 13px;
    }

.booking-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.15s;
}

    .booking-form .form-control:focus {
        border-color: #2c5282;
        outline: none;
        box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.1);
    }

.booking-form select.form-control {
    height: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}

.booking-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.booking-form .text-danger {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.booking-form .form-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.booking-form .btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.booking-form .btn-primary {
    background-color: #2c5282;
    color: white;
    border: none;
}

    .booking-form .btn-primary:hover {
        background-color: #1a365d;
    }

.booking-form .btn-secondary {
    background-color: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

    .booking-form .btn-secondary:hover {
        background-color: #e2e8f0;
        color: #4a5568;
    }

.booking-form .validation-summary-errors {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 3px;
    padding: 12px;
    margin-bottom: 16px;
}

    .booking-form .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

    .booking-form .validation-summary-errors li {
        color: #c53030;
        font-size: 13px;
    }

/* Fieldsets and multi-column rows */
.booking-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 12px 14px 8px;
    margin-bottom: 12px;
}

    .booking-fieldset legend {
        font-size: 0.75rem;
        font-weight: 600;
        color: #a0aec0;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding: 0 6px;
        width: auto;
        margin-bottom: 4px;
    }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.booking-form .form-group {
    margin-bottom: 6px;
}

    .booking-form .form-group label {
        margin-bottom: 2px;
        font-size: 0.75rem;
    }

.booking-validation {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.booking-platform-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}

/* View Booking page */
.booking-view-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.booking-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

    .booking-view-header h2 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #1a202c;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.booking-view-actions {
    display: flex;
    gap: 6px;
}

.booking-view-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.booking-view-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.booking-view-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.booking-view-field {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.booking-view-label {
    font-size: 0.7rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.booking-view-value {
    font-size: 0.85rem;
    color: #2d3436;
    font-weight: 500;
}

    .booking-view-value a {
        color: #2c5282;
        text-decoration: none;
    }

        .booking-view-value a:hover {
            text-decoration: underline;
        }

.booking-view-notes {
    font-size: 0.85rem;
    color: #4a5568;
    margin: 0;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .booking-form-container {
        padding: 16px;
        box-shadow: none;
        border-radius: 0;
    }

    .booking-form .form-actions {
        flex-direction: column;
    }

    .booking-form .btn {
        width: 100%;
    }

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .booking-view-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ------------------------- FOOTER -------------------------------- */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 0;
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
}


/* ------------------------- LOGIN PAGE ---------------------------- */
body.login-page {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
}

body.login-page .login-container {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 380px;
    max-width: 90vw;
    overflow: hidden;
}

body.login-page .login-container h1 {
    color: #1a202c;
    margin: 0;
    padding: 18px 32px;
    background: #d0d8e5;
    font-size: 1.35rem;
    font-weight: 600;
}

body.login-page .login-body {
    padding: 28px 32px 32px;
}

body.login-page .login-body .subtitle {
    color: #718096;
    margin: 0 0 24px 0;
    padding: 0;
    font-size: 0.85rem;
}

body.login-page .login-body .login-field {
    margin-bottom: 18px;
}

body.login-page .login-body .login-field label {
    display: block;
    color: #4a5568;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

body.login-page .login-body .login-field input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #f7fafc;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.login-page .login-body .login-field input:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    background: #fff;
}

body.login-page .login-body .btn-login {
    display: block;
    width: 100%;
    padding: 10px;
    background: #2c5282;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    box-sizing: border-box;
    transition: background 0.15s, box-shadow 0.15s;
}

body.login-page .login-body .btn-login:hover {
    background: #1a365d;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.2);
}

body.login-page .login-body .error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    border-left: 3px solid #e53e3e;
}

body.login-page .login-body .dev-note {
    margin-top: 24px;
    padding: 10px 12px;
    background: #f7fafc;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #718096;
    border-left: 3px solid #e2e8f0;
}

body.login-page .login-body .dev-note strong {
    color: #4a5568;
}


/* ------------------------- DASHBOARD ----------------------------- */
.dashboard {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.dashboard-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.stat-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number.stat-new {
    color: #38a169;
}

.stat-number.stat-cancelled {
    color: #e53e3e;
}

.stat-label {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Apartment status boxes grid */
.status-boxes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.status-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-top: 3px solid #cbd5e0;
}

.status-box-checkin {
    border-top-color: #38a169;
}

.status-box-checkout {
    border-top-color: #e53e3e;
}

.status-box-occupied {
    border-top-color: #2c5282;
}

.status-box-vacant {
    border-top-color: #a0aec0;
}

.status-box-switcheroo {
    border-top-color: #d69e2e;
}

.status-box-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #edf2f7;
}

.apt-guest {
    font-size: 0.9rem;
    color: #4a5568;
    display: block;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

@media (max-width: 1100px) {
    .status-boxes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .status-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .status-boxes {
        grid-template-columns: 1fr;
    }
}

.detail-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-cards-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.detail-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .detail-table th {
        text-align: left;
        font-weight: 600;
        color: #a0aec0;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding: 4px 8px 8px;
        border-bottom: 1px solid #edf2f7;
    }

    .detail-table td {
        padding: 6px 8px;
        color: #2d3436;
        border-bottom: 1px solid #f7fafc;
        vertical-align: middle;
    }

    .detail-table tbody tr:hover {
        background: #f7fafc;
    }

    .detail-table .col-apt {
        width: 50px;
        white-space: nowrap;
    }

    .detail-table .col-date {
        white-space: nowrap;
        width: 75px;
    }

.detail-empty {
    color: #a0aec0;
    font-size: 0.85rem;
    font-style: italic;
}

a.event-link {
    text-decoration: none;
    color: inherit;
}

.event-right {
    float: right;
}

/* Apartment code links to AirBnB - no visual change */
a.event-ext-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    a.event-ext-link:hover {
        color: inherit;
        text-decoration: none;
    }

a.cleaning-status-toggle {
    text-decoration: none;
    cursor: pointer;
}

/* Action text (Check IN etc) links to edit booking - no visual change */
a.event-action-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    a.event-action-link:hover {
        color: inherit;
        text-decoration: none;
    }

/* Platform letter (A/B/M) shown on list view */
.platform-letter {
    font-size: 0.65rem;
    font-weight: 600;
    color: #666;
    margin-left: 2px;
    vertical-align: super;
}

/* Booking popup links - inherit text style, no underline */
a.booking-popup-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    a.booking-popup-link:hover {
        color: inherit;
        text-decoration: underline;
    }

.apt-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #2d3436;
}

.apt-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apt-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.apt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .apt-dot.occupied {
        background: #38a169;
    }

    .apt-dot.vacant {
        background: #cbd5e0;
    }

.apt-name {
    font-weight: 400;
    color: #2d3436;
}

.apt-state {
    color: #4a5568;
    font-size: 0.9rem;
}

.dashboard-links {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-cards-row,
    .detail-cards-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
}


/* ------------------------- REFRESH RESULT PAGE ------------------- */
.refresh-result {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.refresh-header {
    margin-bottom: 24px;
}

    .refresh-header h2 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 4px;
    }

.refresh-time {
    font-size: 0.85rem;
    color: #a0aec0;
}

.refresh-actions {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}
