@charset "UTF-8";

@font-face {
    font-family: "UTMThuPhapThienAn";
    src:
        url("/fonts/UTM-ThuPhap-Thien-An.woff") format("woff"),
        url("/fonts/UTM-ThuPhap-Thien-An.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    fallback: serif;
}

.font-thuphap {
    font-family: "Lora", "UTMThuPhapThienAn", cursive, serif;
}

.font-thuphap-card {
    font-family: "Lora", "UTM ThuPhap Thien An", cursive, serif;
    letter-spacing: 1px;
}

.font-thuphap-sub {
    font-family: "Lora", "UTM ThuPhap Thien An", cursive, serif;
    letter-spacing: 1px;
    line-height: 1.8;
}

/* font-sans now uses Lora for Vietnamese support */
.font-sans {
    font-family: "Lora", "UTMThuPhapThienAn", system-ui, cursive, serif;
}



.font-sans-sub {
    font-family: "Lora", "UTM ThuPhap Thien An", cursive, serif;
    letter-spacing: 1px;
    line-height: 1.8;
}
.font-mystic-list {
    font-family: "Lora", "UTM ThuPhap Thien An", cursive, serif;
    letter-spacing: 1.2px;
    line-height: 1.8;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.font-mystic-btn {
    font-family: "Lora", "UTM ThuPhap Thien An", cursive, serif;
    letter-spacing: 1.5px;
}

.font-mystic-note {
    font-family: "Lora", "UTM ThuPhap Thien An", cursive, serif;
    letter-spacing: 1px;
}

/* hiệu ứng năng lượng nhẹ quanh nút */

.magic-btn {
    position: relative;
    overflow: hidden;
}

.magic-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;

    background: linear-gradient(
        120deg,
        rgba(255, 210, 140, 0),
        rgba(255, 210, 140, 0.4),
        rgba(255, 210, 140, 0)
    );

    opacity: 0;
    filter: blur(8px);
    transition: 0.4s;
}

.magic-btn:hover::before {
    opacity: 1;
}



body {
    background-color: #fafafa !important;
}

.bg-header {
    background: linear-gradient(135deg, #0a1d56, #007bff);
}

.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;
}

.bg-system {
    background: linear-gradient(135deg, #106a9e 0%, #1e7bb8 100%);
}

.border-color-system {
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #106a9e, #1e7bb8) border-box;
    transition: all 0.5s ease;
    overflow: hidden;
    z-index: 0;
}

.color-system {
    background: linear-gradient(135deg, #106a9e 0%, #1e7bb8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.4s ease;
}

/* Tạo lớp nền động khi hover */
.border-color-system::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #106a9e, #1e7bb8);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
    border-radius: 12px;
}

/* Hover: nền chạy từ trái sang phải */
.border-color-system:hover::before {
    transform: translateX(0);
}

/* Khi hover: đổi màu chữ/icon thành trắng */
.border-color-system:hover .color-system {
    -webkit-text-fill-color: white;
}

.btn-active {
    background: linear-gradient(135deg, #106a9e, #1e7bb8) border-box;
}

.btn-active > .color-system {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.4s ease;
}

/* Giảm kích thước tổng thể */
.custom-toast {
    min-height: 40px !important;
    padding: 8px 14px !important;
}

/* Chữ nhỏ hơn, canh giữa đẹp hơn */
.custom-toast-title {
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

/* Icon nhỏ lại */
.custom-toast-icon {
    transform: scale(0.8);
    margin-right: 3px;
}

/* 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;
}

.dotted-line {
    border-bottom: 2px dotted #e5e7eb;
    flex-grow: 1;
    margin: 0 0.75rem;
    height: 1px;
    transform: translateY(-8px);
}

.dark .dotted-line {
    border-bottom-color: #485563;
}

/* Ensure UTF-8 for all text elements */
* {
    -webkit-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

/* Serif font stack for Vietnamese */
.font-serif {
    font-family:
        "Cambria", "Georgia", "Garamond", "Times New Roman", serif !important;
}

/* Ensure body and html use UTF-8 */
html,
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
}
