﻿[data-theme=material][data-theme-colors=purple] {
    --vz-primary: #26506C;
    --vz-primary-rgb: 38, 80, 108;
    --vz-primary-bg-subtle: rgba(38, 80, 108, 0.15);
    --vz-primary-border-subtle: rgba(38, 80, 108, 0.3);
    --vz-primary-text-emphasis: #4E7087;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    width: 100%;
    z-index: 1200;
}

.loading-progress {
    position: relative;
    display: block;
    width: 10rem;
    height: 8rem;
    margin: 45vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.3rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--vz-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    color: var(--vz-primary);
    text-align: center;
    font-weight: bold;
    inset: calc(45vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

input.invalid, textarea.invalid {
    border: 1px solid #ced4da !important;
}

.validation-message {
    width: 100%;
    margin-top: .25rem;
    font-size: 85%;
    color: #f06548;
}

/*Error*/
.error-page {
    padding-top: 100px;
}

/*LoadingScreen*/
.loading-screen {
    position: fixed;
    display: block;
    z-index: 1200;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1160;
    opacity: 1;
    background: white;
}

/* Logo hiệu ứng */
/* Giữ logo đứng yên */
.loading-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo không xoay */
.loading-logo {
    width: 110px;
    height: auto;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

/* Vòng tròn quay */
.loading-wrapper::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Nền viền mờ hơn */
    border-top-color: #D3D3D3; /* Xám nhạt tinh tế cho phần trên */
    border-bottom-color: #D3D3D3; /* Xám nhạt cho phần dưới */
    border-left-color: #D3D3D3; /* Xám nhạt cho bên trái */
    border-right-color: transparent; /* Trong suốt để giữ hiệu ứng quay */
    animation: spin 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(211, 211, 211, 0.3); /* Glow nhẹ nhàng hơn với xám nhạt */
}

/*Loading*/
.loading {
    position: fixed;
    display: block;
    z-index: 1160;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1159;
    background: rgba(255, 255, 255, 0.7);
}

.spinner-gradient {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #ecf0f1; /* Xám trắng nhạt */
    border-right: 4px solid var(--vz-primary);
    border-bottom: 4px solid #ecf0f1; /* Xám trắng nhạt */
    border-left: 4px solid #ecf0f1; /* Xám trắng nhạt */
    animation: spin 0.8s linear infinite;
}

.dashboard-content {
    height: calc(100vh - 162px);
    text-align: center;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-size: 60%;
}

/*****Fix CSS*****/
.navbar-header {
    padding: 0 calc(1.5rem* .5) 0 calc(1.5rem* .5);
}

.page-content {
    padding: calc(45px + 2rem) calc(1.5rem* .5) 0px calc(1.5rem* .5);
}

a {
    cursor: pointer;
}

.table-head-fixed thead tr:nth-child(1) th {
    border-bottom: 0;
    box-shadow: inset 0 1px 0 #dee2e6, inset 0 -1px 0 #dee2e6;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

.daterangepicker .ranges li {
    font-weight: bold;
    background-color: #f3f6f9;
    border: 1px solid #f3f6f9;
    border-radius: 4px;
    margin: 5px;
}

.form-group {
    margin-bottom: 0.4rem !important;
}

.form-label {
    font-weight: 600 !important;
    color: var(--vz-heading-color);
    margin-bottom: 0.1rem !important;
}

.ql-container {
    height: 85px;
}

.bootstrap-select .dropdown-toggle {
    min-height: calc(1.5em + 0.5rem + calc(var(--vz-border-width, 1px) * 2));
    border: var(--vz-border-width) solid var(--vz-input-border-custom);
    box-shadow: none;
}

.daterangepicker .ranges li.active {
    background-color: var(--vz-primary) !important;
}

td.active {
    background-color: var(--vz-primary) !important;
}

.col-form-label {
    font-weight: 600;
    padding-top: calc(0.3rem + var(--vz-border-width));
}

.dropdown-item.active, .dropdown-item:active {
    color: white;
    background-color: var(--vz-primary) !important;
}

.navbar-menu .navbar-nav .nav-link {
    font-weight: 500;
}

.form-icon.right i {
    right: 8px;
}

.search-box .search-icon {
    left: 8px;
}

.search-box .form-control {
    padding-left: 25px;
}

.search-box .form-control-lg {
    padding-left: 30px;
}

.monthselect, .yearselect {
    border: var(--vz-border-width) solid var(--vz-input-border-custom);
    border-radius: var(--vz-border-radius);
}

div:where(.swal2-container) {
    z-index: 1165;
}

.form-control-sm, .input-group-sm .form-control-sm, .input-group-sm > .input-group-text {
    font-size: var(--vz-font-13);
}

.btn-sm {
    font-size: var(--vz-font-13);
}

.table-sm {
    font-size: var(--vz-font-12);
}

.table-sm td input {
    font-size: var(--vz-font-12);
}

.input-step {
    height: 29.5px;
}

.square-td {
    font-weight: bold;
    padding: 0 2px !important;
    min-width: 50px;
}

.table.table-head-fixed tbody th:first-child {
    background-color: #f3f6f9;
    position: sticky;
    left: 0;
    z-index: 2;
}

.table.table-head-fixed thead th:first-child {
    left: 0;
    z-index: 15 !important;
}

.dutyroster-input {
    text-align: center;
    font-weight: bold;
    padding: 1px;
    border: 0;
    outline: 0;
    font-size: var(--vz-font-12);
}

.profile-setting-img {
    height: 170px;
}

.actions-btn {
    font-weight: bold;
}

.blazored-typeahead__active-item, .blazored-typeahead__result:hover, .blazored-typeahead__result:focus {
    background-color: var(--vz-primary) !important;
    border-top: 1px solid var(--vz-primary);
    border-bottom: 1px solid var(--vz-primary);
}

.blazored-typeahead__active-item .text-info {
    color: #fff !important;
}

.blazored-typeahead__result:hover .text-info {
    color: #fff !important;
}

.none-border {
    border: 0;
    outline: 0;
}

.table .form-check {
    text-align: center;
}

.table-card td:first-child, .table-card th:first-child {
    padding-left: 4px;
}

.table-card td:last-child, .table-card th:last-child {
    padding-right: 4px;
}

.card {
    margin-bottom: 8px;
}

.btn-app {
    border-radius: 3px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    padding: 5px 5px 10px 5px;
    position: relative;
    text-align: center;
    min-width: 144px;
    height: 102px;
    margin: 0px 8px 10px 8px;
    font-weight: bold;
}

.btn-app > .badge {
    font-size: 12px;
    font-weight: 500;
    top: -2px;
    line-height: 16px;
}

.form-control.form-control-border.border-width-2 {
    border-bottom-width: 2px;
}

.form-control.form-control-border {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: inherit;
}

.active_btnPMode {
    background-color: var(--vz-primary) !important;
    color: white !important;
}

.info-box {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    background-color: #fff;
    display: flex;
    min-height: 60px;
    padding: .5rem;
    position: relative;
    width: 100%;
}

.info-box .info-box-icon {
    border-radius: 0.25rem;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    font-size: 1.875rem;
    justify-content: center;
    text-align: center;
    width: 50px;
}

.info-box .info-box-content {
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    justify-content: center;
    line-height: 1.8;
    flex: 1;
    padding: 0 10px;
    overflow: hidden;
}

.bg-primary, .bg-primary > a {
    color: #fff !important;
}

.blazored-typeahead__results {
    z-index: 20;
}

.table .sticky-top {
    z-index: 3 !important;
}

input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.bg-saturday-header {
    background-color: #fff3cd !important;
}

.bg-saturday {
    background-color: #FFFCF5 !important;
}

.bg-sunday-header {
    background-color: #f8d7da !important;
}

.bg-sunday {
    background-color: #FDF7F7 !important;
}

.bg-holiday-header {
    background-color: #FACCE5 !important;
}

.bg-holiday {
    background-color: #FEF4F9 !important;
}

/* Hiển thị từ QuillJS - chuẩn hóa margin/padding */
.quill-note-view p {
    margin: 0;
    padding: 0;
}

.quill-note-view ul,
.quill-note-view ol {
    margin: 0;
    padding-left: 1.2rem;
}

.quill-note-view br {
    line-height: 1.2;
}

.quill-note-view {
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}

/*progress new version*/
.progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    background: #f3f6f9;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 12px;
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 8px rgba(0, 114, 255, 0.5);
}

.progress-complete {
    background: linear-gradient(90deg, #28a745, #218838);
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
}

/* Hiệu ứng ánh sáng chạy trên thanh tiến trình */
.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-25deg);
    animation: light-wave 1.5s infinite linear;
}

@keyframes light-wave {
    0% {
        left: -50px;
    }

    100% {
        left: 100%;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 221, 0, 0.4);
    }

    100% {
        box-shadow: 0 0 25px rgba(255, 221, 0, 0.8);
    }
}

@keyframes ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70%, 100% {
        transform: rotate(0);
    }
}

.bell-shake {
    display: inline-block;
    animation: ring 1s ease-in-out infinite;
    transform-origin: top center;
}

/*fullcalendar*/
.fc-event-main-frame {
    overflow: hidden;
}

.fc-event-main-frame .badge {
    flex-shrink: 0;
}

.fc-event-main-frame small:not(.ms-auto) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.fc-event-main-frame small.ms-auto {
    flex-shrink: 0;
}

/*booking-popover*/
.booking-popover .popover-body {
    padding: 8px !important;
}

.booking-popover {
    min-width: 350px !important;
}

/*occupancy*/
.occ i.fa-circle-check,
.occ i.fa-circle-question {
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.occ i.fa-triangle-exclamation {
    animation: warningPulse 1.5s infinite ease-in-out;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.occ i.fa-circle-check:hover,
.occ i.fa-circle-question:hover {
    transform: scale(1.1);
}