:root {
    /*
        |--------------------------------------------------------------------------
        | GLOBAL HEADER COLORS
        |--------------------------------------------------------------------------
        */

    --topbar-bg: oklch(0.58 0.16 245);
    --topbar-color: #ffffff;

    --header-bg: #ffffff;

    --navbar-bg: oklch(0.58 0.16 245);
    --navbar-hover: oklch(0.58 0.16 245);
    --navbar-color: #ffffff;

    --dropdown-bg: #ffffff;
    --dropdown-color: #111827;

    --primary-color: oklch(0.58 0.16 245);
    --primary-hover: oklch(0.58 0.16 245);

    --booking-bg: oklch(0.58 0.16 245);
    --booking-color: #ffffff;

    --border-color: #e5e7eb;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background: var(--primary-color);
}

.bg-primary-hover:hover {
    background: var(--primary-hover);
}

.container-custom {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    padding: 0 15px;
}

.ck-editor__editable {
    min-height: 400px !important;
}

.ck-content figure.image {
    position: relative;
    display: inline-block;
}

.ck-content figure.image .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    display: none;
    z-index: 10;
}

.ck-content figure.image:hover .remove-btn {
    display: block;
}

figure {
    margin: 10px 0 !important;
}

.c-my-10 {
    margin: 20px 0 !important;
}

/* TOAST */
.custom-toast {
    border-radius: 18px !important;
    padding: 14px 16px !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(23, 128, 102, 0.15);
    min-width: 280px;
}

.custom-toast-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    margin: 0 !important;
}

.custom-toast-icon {
    margin: 0 10px 0 0 !important;
    border: none !important;
}

.custom-toast .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.35) !important;
    height: 3px !important;
}

.custom-toast .swal2-html-container {
    margin: 0 !important;
}

.custom-toast .swal2-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    margin: 0 !important;
}

.custom-toast .swal2-success-ring,
.custom-toast .swal2-success-fix,
.custom-toast .swal2-success-circular-line-left,
.custom-toast .swal2-success-circular-line-right {
    background: transparent !important;
}

.custom-toast.swal2-show {
    animation: toastShow 0.25s ease;
}

@keyframes toastShow {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }

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

/* Tùy chọn: giảm khoảng cách icon và text */
.swal2-icon {
    margin: 0 8px 0 0 !important;
}

.table-container {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.table-row:hover {
    background-color: #f9fafb;
}
.pagination-btn.active {
    background-color: #3b82f6;
    color: white;
}
.loading {
    display: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;

    background: #f3f4f6;
    color: #111827;

    padding: 12px 16px;
    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    transition: 0.2s;
}

.toast-close:hover {
    color: #111827;
}

/* 👉 sidebar thu nhỏ */
.sidebar-collapsed {
    width: 80px !important;
}

/* 👉 main co theo sidebar */
.main-collapsed {
    margin-left: 80px !important;
}

/* 👉 ẩn text sidebar */
.sidebar-collapsed span {
    display: none;
}

/* 👉 icon nằm giữa */
.sidebar-collapsed .menu-item {
    justify-content: center;
}

.sidebar-collapsed .sidebar-user div:not(:first-child) {
    display: none;
}

.sidebar-collapsed .logo span {
    display: none;
}

.sidebar-collapsed .menu-item {
    justify-content: center !important;
}

.sidebar-collapsed .menu-item > div {
    justify-content: center;
}

.sidebar-collapsed .menu-item .fa-chevron-down {
    display: none;
}

.sidebar-collapsed:hover span {
    opacity: 1;
    width: auto;
}

/* 👉 sidebar thu nhỏ */
.sidebar-collapsed {
    width: 80px !important;
}

/* 👉 text mượt, không vỡ */
.sidebar-collapsed span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* 👉 giữ layout icon chuẩn */
.sidebar-collapsed .menu-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

/* 👉 fix icon luôn nằm giữa */
.sidebar-collapsed .menu-item i {
    margin: 0 auto;
}

/* 👉 ẩn submenu luôn khi collapse */
.sidebar-collapsed .submenu {
    display: none;
}

.handle {
    cursor: move;
    font-size: 18px;
}

/* */

/* TOAST */
.modern-toast {
    width: 340px !important;

    border-radius: 20px !important;

    padding: 14px 16px !important;

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        0 2px 10px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    animation: toastShow 0.25s ease;
}

/* CONTENT */
.toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* MESSAGE */
.toast-message {
    flex: 1;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

    letter-spacing: 0.2px;
}

/* ICON */
.toast-icon {
    width: 42px;
    height: 42px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 20px;

    color: white;

    position: relative;
}

/* SUCCESS */
.toast-icon.success {
    background: linear-gradient(135deg, #14b8a6, #0f766e);

    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
}

/* ERROR */
.toast-icon.error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);

    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

/* WARNING */
.toast-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #b45309);

    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* INFO */
.toast-icon.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

/* PROGRESS */
.modern-toast .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.25) !important;
    height: 3px !important;
}

/* REMOVE DEFAULT */
.modern-toast .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* ANIMATION */
@keyframes toastShow {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }

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