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;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 14px;

    background: rgba(22, 163, 74, 0.95);
    color: white;
    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);

    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.35s ease;
}

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

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
