﻿@font-face {
    font-family: 'DBHeavent';
    src: url('/fonts/DB Heavent Li v3.2.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'DBHeavent';
    src: url('/fonts/DB Heavent v3.2.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'DBHeavent';
    src: url('/fonts/DB Heavent Med v3.2.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'DBHeavent';
    src: url('/fonts/DB Heavent Bd v3.2.ttf') format('truetype');
    font-weight: 700;
}

body {
    font-family: 'DBHeavent', sans-serif;
    font-size: 18px;
}
body,
button,
input,
textarea,
select,
.swal2-popup,
.swal2-title,
.swal2-html-container,
.swal2-confirm,
.swal2-cancel {
    font-family: 'DBHeavent', sans-serif !important;
}
* {
    box-sizing: border-box;
}

.text-12 { font-size: 12px; }
.text-14 { font-size: 14px; }
.text-16 { font-size: 16px; }
.text-18 { font-size: 18px; }
.text-20 { font-size: 20px; }
.text-22 { font-size: 22px; }
.text-24 { font-size: 24px; }
.text-28 { font-size: 28px; }
.text-30 { font-size: 30px; }
.text-32 { font-size: 32px; }


.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary {
    background: linear-gradient(90deg, #00CCCC, #0064FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/*===============================================================*/

/* ===============================================================
   SWEETALERT STYLE - VERSION แบบรูปที่ 2
=============================================================== */

.app-swal-popup {
    border-radius: 26px !important;
    padding: 28px 28px 34px !important;
    width: 460px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18) !important;
}

.app-swal-title {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1f2937 !important;
    margin: 12px 0 8px !important;
    padding: 0 !important;
}

.app-swal-text {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #111827 !important;
    margin: 0 auto 26px !important;
    padding: 0 !important;
    max-width: 320px !important;
}

/* ระยะ icon */
.swal2-icon {
    margin: 6px auto 10px !important;
}

/* success icon ให้เหมือนรูปที่ 2 */
.swal2-success {
    width: 88px !important;
    height: 88px !important;
    border: none !important;
    background: #14c8c4 !important;
    border-radius: 50% !important;
}

    .swal2-success [class^='swal2-success-circular-line'],
    .swal2-success [class^='swal2-success-fix'] {
        display: none !important;
    }

.swal2-success-ring {
    display: none !important;
}

.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: #ffffff !important;
    height: 6px !important;
    border-radius: 6px !important;
}

.swal2-success-line-tip {
    width: 22px !important;
    left: 20px !important;
    top: 45px !important;
}

.swal2-success-line-long {
    width: 38px !important;
    right: 18px !important;
    top: 40px !important;
}

/* error / warning / info ยังใช้ได้ปกติ แต่ขนาดบาลานซ์ขึ้น */
.swal2-error,
.swal2-warning,
.swal2-info,
.swal2-question {
    transform: scale(0.92) !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* actions */
.swal2-actions {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 12px !important;
}

/* ปุ่ม confirm แบบรูปที่ 2 */
.app-swal-confirm {
    width: 72% !important;
    min-width: 220px !important;
    height: 56px !important;
    margin: 0 auto !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 24px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(75.03deg, #00CCCC 43.13%, #0064FF 185.85%) !important;
    box-shadow: none !important;
}

    .app-swal-confirm:hover {
        filter: brightness(1.03) !important;
        transform: none !important;
    }

    .app-swal-confirm:focus {
        box-shadow: none !important;
    }

/* ปุ่ม cancel เผื่อ confirm dialog */
.app-swal-cancel {
    min-width: 120px !important;
    height: 56px !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* responsive */
@media (max-width: 576px) {
    .app-swal-popup {
        width: calc(100vw - 32px) !important;
        padding: 24px 20px 28px !important;
        border-radius: 22px !important;
    }

    .app-swal-title {
        font-size: 24px !important;
    }

    .app-swal-text {
        font-size: 15px !important;
        max-width: 100% !important;
    }

    .app-swal-confirm {
        width: 100% !important;
    }
}