/*================================================================================
	Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
	Version: 1.0
	Author: PIXINVENT
	Author URL: http://www.themeforest.net/user/pixinvent
================================================================================

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */

/* start accommodations/bookings */
.dashboard-container {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}
.dashboard-header {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 8px 0;
}

.dashboard-subtitle {
    color: #6b6b6b;
    font-size: 14px;
    margin: 0;
}

/* Filters Section */
.filters-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.filters-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
}

.filter-select, .filter-input {
    padding: 10px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    color: #262626;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #0071c2;
    box-shadow: 0 0 0 2px rgba(0, 113, 194, 0.1);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.btn-filter {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #0071c2;
    color: white;
}

.btn-primary:hover {
    background: #005999;
}

.btn-secondary {
    background: #f5f5f5;
    color: #262626;
    border: 1px solid #d4d4d4;
}

.btn-secondary:hover {
    background: #e7e7e7;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue { background: #e7f0fa; color: #0071c2; }
.stat-icon.green { background: #e6f4ea; color: #1e8e3e; }
.stat-icon.orange { background: #fef3e6; color: #ff8800; }
.stat-icon.purple { background: #f3e5f5; color: #8e24aa; }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #262626;
    margin: 0;
}

.stat-label {
    font-size: 14px;
    color: #6b6b6b;
    margin: 4px 0 0 0;
}

/* Tabs */
.view-tabs {
    background: white;
    border-radius: 8px;
    padding: 16px 20px 0 20px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-list {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e7e7e7;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6b6b6b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}


.tab-item.active {
    color: #0071c2;
    border-bottom-color: #0071c2;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 0 0 8px 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
/* Calendar with Sidebar Layout */
.calendar-with-sidebar {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

.calendar-container {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#calendar {
    padding: 16px;
    flex: 1;
}

/* Sidebar Styles */
.booking-sidebar {
    width: 380px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    margin: 16px;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    background: #0071c2;
    padding: 16px 20px;
    border-bottom: 1px solid #e7e7e7;
}

.sidebar-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-content {
    overflow-y: auto;
    flex: 1;
    position: relative;
}

#sidebarViewMode, #sidebarFormMode {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #6b6b6b;
    padding: 40px 20px;
}

.sidebar-placeholder p {
    margin-top: 16px;
    font-size: 14px;
}

/* Sidebar Section Styles */
.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-info-card {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e7e7e7;
}

.sidebar-info-row:last-child {
    border-bottom: none;
}

.sidebar-info-label {
    font-size: 13px;
    color: #6b6b6b;
    font-weight: 500;
}

.sidebar-info-value {
    font-size: 14px;
    color: #262626;
    font-weight: 600;
}

/* Available Rooms List */
.available-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-availability-card {
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 14px;
    transition: all 0.2s;
}

.room-availability-card.unavailable {
    opacity: 0.6;
    background: #f9f9f9;
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.room-name {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.availability-badge.available {
    background: #e6f4ea;
    color: #1e8e3e;
}

.availability-badge.unavailable {
    background: #fef0f0;
    color: #c62828;
}

.room-availability-info {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 4px;
}

/* Bookings List in Sidebar */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-card {
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 14px;
    position: relative;
    transition: all 0.2s;
}


.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.booking-room-name {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
}

.booking-dates {
    font-size: 12px;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.booking-status-small {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.booking-status-small.booked {
    background: #fef0f0;
    color: #c62828;
}

.booking-status-small.available {
    background: #e6f4ea;
    color: #1e8e3e;
}

.booking-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.sidebar-action-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #d4d4d4;
    background: white;
    color: #262626;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sidebar-action-btn:hover {
    background: #f5f5f5;
}

.sidebar-action-btn.edit:hover {
    background: #e7f0fa;
    border-color: #0071c2;
    color: #0071c2;
}

.sidebar-action-btn.delete:hover {
    background: #fef0f0;
    border-color: #c62828;
    color: #c62828;
}

.sidebar-summary {
    background: #0071c2;
    border-radius: 6px;
    padding: 16px;
    color: white;
    margin-bottom: 20px;
}
/*.scrollable-sidebar{*/
/*    overflow-y: scroll;*/
/*}*/
.sidebar-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.sidebar-summary-label {
    font-size: 13px;
    opacity: 0.9;
}
.sidebar-summary-value {
    font-size: 18px;
    font-weight: 700;
}
.sidebar-form-header {
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 20px;
}
.sidebar-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    color: #262626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.sidebar-back-btn:hover {
    background: #e7e7e7;
    border-color: #bdbdbd;
}

.sidebar-form-group {
    margin-bottom: 18px;
}

.sidebar-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
}

.sidebar-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    color: #262626;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-form-control:focus {
    outline: none;
    border-color: #0071c2;
    box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.1);
}

.sidebar-form-control:disabled {
    background: #f5f5f5;
    color: #6b6b6b;
    cursor: not-allowed;
}

.sidebar-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e7e7e7;
}

.sidebar-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-btn-primary {
    background: #0071c2;
    color: white;
}

.sidebar-btn-primary:hover {
    background: #005999;
}

.sidebar-btn-primary.create-booking-btn {
    background: rgb(198 40 40);
    color: white;
}

.sidebar-btn-primary.create-booking-btn:hover {
    background: #7f1414;
}

.sidebar-btn-primary:disabled {
    background: #d4d4d4;
    cursor: not-allowed;
}

.sidebar-btn-secondary {
    background: white;
    color: #262626;
    border: 1px solid #d4d4d4;
}

.sidebar-btn-secondary:hover {
    background: #f5f5f5;
}

.sidebar-btn-danger {
    background: #c62828;
    color: white;
}

.sidebar-btn-danger:hover {
    background: #a02020;
}

.fc .fc-toolbar {
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.fc .fc-toolbar-title {
    font-size: 20px;
    font-weight: 700;
    color: #262626;
}

.fc .fc-button {
    background: white;
    border: 1px solid #d4d4d4;
    color: #262626;
    text-transform: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
}

.fc .fc-button:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #0071c2;
    border-color: #0071c2;
    color: white;
}

.fc-theme-standard td, .fc-theme-standard th {
    border-color: #f0f0f0;
}

.fc-col-header-cell {
    background: #fafafa;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    font-size: 11px;
    padding: 12px 0;
    border: none !important;
}

.fc-daygrid-day {
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.fc-daygrid-day:hover {
    background: #f0f7ff;
}

.fc-daygrid-day:hover::after {
    content: '+';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #0071c2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    opacity: 0.7;
}
.bookings-list{
    overflow-y: scroll;
    max-height: 500px;
}

.fc-daygrid-day.fc-day-today {
    background: #fff9e6 !important;
}

.fc-daygrid-day.fc-day-today:hover {
    background: #fff3cc !important;
}

.fc-event {
    cursor: pointer;
    border: none !important;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px 0;
    font-weight: 600;
}

.bookings-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
}

table.dataTable thead th {
    background: #fafafa;
    color: #262626;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 16px 12px;
    border-bottom: 1px solid #e7e7e7;
    border-top: none;
}

table.dataTable tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #262626;
}

table.dataTable tbody tr:hover {
    background: #f9f9f9;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.booked {
    background: #fef0f0;
    color: #c62828;
}

.status-badge.available {
    background: #e6f4ea;
    color: #1e8e3e;
}

.status-badge.cancelled {
    background: #f5f5f5;
    color: #6b6b6b;
}

.status-badge.unavailable {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.pending {
    background: #fff8e1;
    color: #f57c00;
}

.status-badge.approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.rejected {
    background: #ffebee;
    color: #c62828;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #d4d4d4;
    background: white;
    color: #262626;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 2px;
}
.action-btn:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
}
.action-btn.edit:hover {
    background: #e7f0fa;
    border-color: #0071c2;
    color: #0071c2;
}

.action-btn.delete:hover {
    background: #fef0f0;
    border-color: #c62828;
    color: #c62828;
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.modal-header {
    background: #0071c2;
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 20px 24px;
    border-bottom: none;
}

.modal-header .modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e7e7e7;
}

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

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    color: #262626;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #0071c2;
    box-shadow: 0 0 0 2px rgba(0, 113, 194, 0.1);
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.alert-success {
    background: #e6f4ea;
    color: #1e8e3e;
}

.alert-danger {
    background: #fef0f0;
    color: #c62828;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: #0071c2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .calendar-with-sidebar {
        flex-direction: column;
    }

    .booking-sidebar {
        width: 100%;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-container {
        padding: 12px;
    }

    .calendar-with-sidebar {
        flex-direction: column;
        gap: 12px;
    }

    .booking-sidebar {
        width: 100%;
        min-height: 300px;
    }
}

/* Calendar Availability Badge */
.availability-badge-calendar {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 1;
}

.availability-badge-calendar .avail-text {
    color: #1e8e3e;
    background: #e6f4ea;
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
}

.availability-badge-calendar .unavail-text {
    color: #c62828;
    background: #fef0f0;
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
}

.fc-daygrid-day-frame {
    position: relative;
    min-height: 60px;
}

/* Calendar Event Popup */
.calendar-event-popup {
    animation: fadeIn 0.3s ease-in-out;
}

.calendar-event-popup .popup-header {
    padding-bottom: 12px;
    border-bottom: 2px solid #0071c2;
}

.calendar-event-popup .popup-content {
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* END accommodations/bookings */