body {
    background-color: whitesmoke;
    font-family: 'Lato', sans-serif;
}

.text-overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

nav {
    background-color: #cecece;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 1px 5px #646464;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-item a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
}

.nav-item:hover {
    background-color: #e4e4e4;
}

.nav-item:hover a {
    color: #5e94ae;
}

.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #0056b3;
}

.navbar-nav .nav-link.active {
    font-weight: 700;
    color: #0d6efd;
}

.navbar-brand {
    border-right: 1px solid #bfbfbf;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loader {
    z-index: 10000;
}

.hidden {
    display: none !important;
}

.btn-info {
    background-color: #d8f3f9;
}

.btn-primary {
    background-color: #1b5fc4a6;
}

.btn-success {
    background-color: #7ba290;
}

.btn-danger {
    background-color: #ee384a;
}

.filter-container {
    flex-wrap: wrap;
    flex-basis: 85%;
}

.filter {
    max-width: 15rem;
}

.form-control:read-only {
    background-color: #e9ecef;
    opacity: 1;
}

table {
    position: relative;
    ;
}

table,
th,
td {
    border-collapse: collapse !important;
}

th,
td {
    text-align: center;
    vertical-align: middle;
    padding: 0.5rem;
}

th {
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4) !important;
    background: white;
}

.datatable th {
    position: sticky;
    top: 0;
    z-index: 9;
}

form {
    padding: 1rem;
}

.form-outline label {
    margin-right: 0.5rem;
}

.input-container-medium {
    width: 35rem;
}

.checkbox-container {
    border: 1px solid #e6e6e6;
    padding: 6px;
    border-radius: 6px;
}

.checkbox-switches-container {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

.physical-check-in-reservation td {
    background-color: #ff9e6596;
}

.is-property-company-reservation td {
    background-color: #ffd70054;
}

.physical-check-in-reservation-legend {
    background-color: #ff9e6596;
    display: inline-block;
    width: 1rem;
    height: 1rem;
}


.is-folder td {
    background-color: #7b7b7b1c;
}

.is-property-company-reservation-legend {
    background-color: #ffd70054;
    display: inline-block;
    width: 1rem;
    height: 1rem;
}

.half-width-form-item {
    width: 50%;
}

.one-third-width-form-item {
    width: 33%;
}

.profile-card {
    min-width: 750px;
    min-height: 450px;
    margin: 50px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.back-to-home-button-btn:hover {
    background-color: #f3e8ff !important;
    transition: background-color 0.3s ease-in-out;
}

.ts-wrapper.form-select {
    padding: 0;
    border: none;
    box-shadow: none;
    min-width: 10em;
}

.ts-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    min-height: calc(1.5em + 0.75rem + 2px);
}

.ts-dropdown {
    border-radius: 0.375rem;
}

.ts-control .item {
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* white-space: nowrap; */
}

/* hide the real tag items but keep them in DOM */
.ts-control .item {
    display: none !important;
}

/* summary element styling */
.ts-summary-el {
    display: inline-block;
    margin-right: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    /* max-width: 70%; */
    overflow: hidden;
    color: #222;
    font-size: 14px;
}

/* input remains usable */
.ts-control input {
    min-width: 2ch;
}

.breadcrumb-item {
    max-width: 10%;
}

.file-storage-table td,
.file-storage-table th {
    text-align: left !important;
    padding-left: 2rem;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
}

.form-check-input:checked {
    background-color: #3fb93f;
    border-color: #3fb93f;
}

.form-switch .form-check-input:not(checked) {
    background-position: left center;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
}

.form-check-input:not(checked) {
    background-color: #b51c1c;
    border-color: #b51c1c;
}

.clear-date {
    cursor: pointer;
}

/* Custom Calendar Styling */
:root {
    --fc-border-color: #f1f3f5;
    --fc-daygrid-event-dot-width: 8px;
    --fc-button-bg-color: #ffffff;
    --fc-button-border-color: #e9ecef;
    --fc-button-text-color: #495057;
    --fc-button-active-bg-color: #f8f9fa;
    --fc-button-active-border-color: #dee2e6;
    --fc-today-bg-color: rgba(26, 115, 232, 0.04);

    --cell-warning-bg: #ffa1a1;

    --sidebar-width: 320px;
    --sidebar-collapsed-width: 60px;

    --bg-light: #f8f9fa;
    --text-muted: #8898aa;
    --purple-primary: #8e44ad;
    --border-color: #edf2f9;
}

/* Custom Calendar Styling */
.fc {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* Toolbar Customization */
.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1f36;
    width: 240px;
    text-align: center;
    white-space: nowrap;
}

.fc .fc-button {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px !important;
    text-transform: capitalize;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #f1f3f5;
    color: #1a73e8;
    border-color: #e9ecef;
}

.fc .fc-button-group>.fc-button:not(:first-child) {
    margin-left: 4px;
}

/* Grid & Lines */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--fc-border-color);
}

.fc .fc-timegrid-slot {
    height: 4.5em !important;
    border-bottom: 1px dashed #f1f3f5 !important;
}

.fc .fc-col-header-cell-cushion {
    padding: 12px 4px;
    font-weight: bolder;
    color: #000000;
    text-decoration: none;
}

/* Event Styling */
.fc-event {
    cursor: pointer;
    border: none !important;
    padding: 5px 8px;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease;
}

.fc-event:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.fc-event-title {
    font-weight: 700;
    font-size: 0.8rem;
}

.fc-v-event .fc-event-main-frame {
    padding: 2px;
}

.fc-event-title-container {
    text-align: left;
}

.fc .fc-daygrid-more-link {
    font-weight: bolder;
    font-size: 15px;
}

/* Popover Styling */
#eventPopover {
    display: none;
    position: absolute;
    width: 420px;
    z-index: 1050;
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.05);
    background: white;
    overflow: hidden;
    pointer-events: auto;
    animation: popIn 0.2s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-icon {
    color: #4f566b;
    border-radius: 10px;
    padding: 8px;
    transition: all 0.2s;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: #f7f9fc;
    color: #1a1f36;
}

.staff-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
    margin-left: -8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 18px;
    height: 18px;
    color: #697386;
    flex-shrink: 0;
}

.status-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 6px 10px;
    border-radius: 8px;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.bg-low {
    background-color: #e3f2fd;
    color: #1565c0;
}

.bg-med {
    background-color: #fff8e1;
    color: #f57f17;
}

.bg-high {
    background-color: #ffebee;
    color: #c62828;
}

.cell-has-unassigned {
    background-color: var(--cell-warning-bg) !important;
}

.cell-has-assigned {
    background-color: #c5dfd6 !important;
}

.cell-has-new-cleaning {
    background-color: #ffca76 !important;
}

.change-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #dee2e6;
}





.app-container {
    display: flex;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar-wrapper {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    z-index: 9;
    top: 5px;
}

.sidebar-collapsed .sidebar-wrapper {
    width: var(--sidebar-collapsed-width);
}

.sidebar-content {
    padding: 24px;
    opacity: 1;
    transition: opacity 0.2s;
    width: var(--sidebar-width);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
}

.sidebar-toggle {
    position: absolute;
    right: -15px;
    top: 30px;
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 110;
    transition: transform 0.3s;
}

.sidebar-collapsed .sidebar-toggle {
    transform: rotate(180deg);
    right: 15px;
}

/* Availability Elements */
.date-navigator {
    /* background: #f8f9fa; */
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
}

.cleaner-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: background 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.cleaner-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e7f1ff;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
}

.availability-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.dot-free {
    background-color: #28a745;
}

.dot-busy {
    background-color: #fd7e14;
}

.dot-off {
    background-color: #adb5bd;
}

.dot-unavailable {
    background-color: #690404;
}

.dot-full {
    background-color: #d60303;
}

.text-free {
    color: #28a745;
}

.text-busy {
    color: #fd7e14;
}

.text-off {
    color: #adb5bd;
}

.text-unavailable {
    color: #690404;
}

.text-full {
    color: #d60303;
}

.usage-bar {
    height: 4px;
    width: 100%;
    background: #eee;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: #1a73e8;
    transition: width 0.5s ease;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 24px 40px;
    transition: all 0.3s;
    min-width: 0;
}

.popover-cleaning-item {
    margin-top: 0.5rem;
}