@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
body {
    font-family: 'Prompt', sans-serif;
}

/* 🌟 Animation Fade-in สำหรับ Modal แจ้งเตือน */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* 🌟 ปรับแต่ง Scrollbar สำหรับ Dropdown และกล่องพรีวิวรูปภาพให้ดูสวยงาม */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Shared presentation for normal Admin Backoffice dialogs only. */
.admin-modal-backdrop {
    background-color: rgb(0 0 0 / 0.4);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.admin-modal-close,
.admin-modal-backdrop button[aria-label="Close"] {
    display: inline-flex;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0;
    font-weight: 700;
    line-height: 1;
    transition: background-color 150ms ease, color 150ms ease;
}

.admin-modal-close::before,
.admin-modal-backdrop button[aria-label="Close"]::before {
    content: "×";
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-0.5px);
}

.admin-modal-close:hover,
.admin-modal-backdrop button[aria-label="Close"]:hover {
    background-color: #f1f5f9;
    color: #dc2626;
}

.admin-modal-close:focus-visible,
.admin-modal-backdrop button[aria-label="Close"]:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}
