:root {


    --border-color: #eaecef;


    --color-error-start: red;
    --color-error-middle: #800000;
    --color-error-end: red;

    --color-success-start: darkgreen;
    --color-success-middle: #00ca00;
    --color-success-end: darkgreen;

    --color-warning-start: #beb000;
    --color-warning-middle: #ffe500;
    --color-warning-end: #beb000;

    --color-primary-start: #02165b;
    --color-primary-middle: #0044cc;
    --color-primary-end: #002288;

    --color-info-start: #006f7d;
    --color-info-middle: #00e1ff;
    --color-info-end: #006f7d;

    --color-secondary-start: #434343;
    --color-secondary-middle: #b0b0b0;
    --color-secondary-end: #232323;

    --color-danger-start: #ed0000;
    --color-danger-middle: #d17575;
    --color-danger-end: #920000;



    --color-line: #00B900;
    --color-line-hover: #009900;
    --color-line-active: #007700;

    --color-purple: #6f42c1;
    --color-purple-hover: #5a3791;
    --color-purple-active: #4c2e78;

    --color-purple-pink: #ad57a2;
    --color-purple-pink-hover: #ad57a2; /* Use a darker shade if needed */
    --color-purple-pink-active: #ad57a2; /* Use a darker shade if needed */

    --color-thai-d: #0044cc;
    --color-thai-d-hover: #0033a1;
    --color-thai-d-active: #002288;
}




/* Hide border classes */
.border-none-sm { border: none !important; }
.border-none-md { border: none !important; }
.border-none-lg { border: none !important; }
.border-none-xl { border: none !important; }
.border-none-xxl { border: none !important; }

.border-start-none-sm { border-left: none !important; }
.border-start-none-md { border-left: none !important; }
.border-start-none-lg { border-left: none !important; }
.border-start-none-xl { border-left: none !important; }
.border-start-none-xxl { border-left: none !important; }

.border-end-none-sm { border-right: none !important; }
.border-end-none-md { border-right: none !important; }
.border-end-none-lg { border-right: none !important; }
.border-end-none-xl { border-right: none !important; }
.border-end-none-xxl { border-right: none !important; }

.border-top-none-sm { border-top: none !important; }
.border-top-none-md { border-top: none !important; }
.border-top-none-lg { border-top: none !important; }
.border-top-none-xl { border-top: none !important; }
.border-top-none-xxl { border-top: none !important; }

.border-bottom-none-sm { border-bottom: none !important; }
.border-bottom-none-md { border-bottom: none !important; }
.border-bottom-none-lg { border-bottom: none !important; }
.border-bottom-none-xl { border-bottom: none !important; }
.border-bottom-none-xxl { border-bottom: none !important; }

/* Show border classes */
@media (min-width: 576px) {
    .border-sm { border: 1px solid var(--border-color) !important; }
    .border-start-sm { border-left: 1px solid var(--border-color) !important; }
    .border-end-sm { border-right: 1px solid var(--border-color) !important; }
    .border-top-sm { border-top: 1px solid var(--border-color) !important; }
    .border-bottom-sm { border-bottom: 1px solid var(--border-color) !important; }
}
@media (min-width: 768px) {
    .border-md { border: 1px solid var(--border-color) !important; }
    .border-start-md { border-left: 1px solid var(--border-color) !important; }
    .border-end-md { border-right: 1px solid var(--border-color) !important; }
    .border-top-md { border-top: 1px solid var(--border-color) !important; }
    .border-bottom-md { border-bottom: 1px solid var(--border-color) !important; }
}
@media (min-width: 992px) {
    .border-lg { border: 1px solid var(--border-color) !important; }
    .border-start-lg { border-left: 1px solid var(--border-color) !important; }
    .border-end-lg { border-right: 1px solid var(--border-color) !important; }
    .border-top-lg { border-top: 1px solid var(--border-color) !important; }
    .border-bottom-lg { border-bottom: 1px solid var(--border-color) !important; }
}
@media (min-width: 1200px) {
    .border-xl { border: 1px solid var(--border-color) !important; }
    .border-start-xl { border-left: 1px solid var(--border-color) !important; }
    .border-end-xl { border-right: 1px solid var(--border-color) !important; }
    .border-top-xl { border-top: 1px solid var(--border-color) !important; }
    .border-bottom-xl { border-bottom: 1px solid var(--border-color) !important; }
}
@media (min-width: 1400px) {
    .border-xxl { border: 1px solid var(--border-color) !important; }
    .border-start-xxl { border-left: 1px solid var(--border-color) !important; }
    .border-end-xxl { border-right: 1px solid var(--border-color) !important; }
    .border-top-xxl { border-top: 1px solid var(--border-color) !important; }
    .border-bottom-xxl { border-bottom: 1px solid var(--border-color) !important; }
}


/* bg-success transparent levels */
.bg-success-t-1 { background-color: rgba(25, 135, 84, 0.1); }
.bg-success-t-2 { background-color: rgba(25, 135, 84, 0.2); }
.bg-success-t-3 { background-color: rgba(25, 135, 84, 0.3); }
.bg-success-t-4 { background-color: rgba(25, 135, 84, 0.4); }
.bg-success-t-5 { background-color: rgba(25, 135, 84, 0.5); }
.bg-success-t-6 { background-color: rgba(25, 135, 84, 0.6); }
.bg-success-t-7 { background-color: rgba(25, 135, 84, 0.7); }
.bg-success-t-8 { background-color: rgba(25, 135, 84, 0.8); }
.bg-success-t-9 { background-color: rgba(25, 135, 84, 0.9); }

/* bg-primary transparent levels */
.bg-primary-t-1 { background-color: rgba(13, 110, 253, 0.1); }
.bg-primary-t-2 { background-color: rgba(13, 110, 253, 0.2); }
.bg-primary-t-3 { background-color: rgba(13, 110, 253, 0.3); }
.bg-primary-t-4 { background-color: rgba(13, 110, 253, 0.4); }
.bg-primary-t-5 { background-color: rgba(13, 110, 253, 0.5); }
.bg-primary-t-6 { background-color: rgba(13, 110, 253, 0.6); }
.bg-primary-t-7 { background-color: rgba(13, 110, 253, 0.7); }
.bg-primary-t-8 { background-color: rgba(13, 110, 253, 0.8); }
.bg-primary-t-9 { background-color: rgba(13, 110, 253, 0.9); }

/* bg-info transparent levels */
.bg-info-t-1 { background-color: rgba(13, 202, 240, 0.1); }
.bg-info-t-2 { background-color: rgba(13, 202, 240, 0.2); }
.bg-info-t-3 { background-color: rgba(13, 202, 240, 0.3); }
.bg-info-t-4 { background-color: rgba(13, 202, 240, 0.4); }
.bg-info-t-5 { background-color: rgba(13, 202, 240, 0.5); }
.bg-info-t-6 { background-color: rgba(13, 202, 240, 0.6); }
.bg-info-t-7 { background-color: rgba(13, 202, 240, 0.7); }
.bg-info-t-8 { background-color: rgba(13, 202, 240, 0.8); }
.bg-info-t-9 { background-color: rgba(13, 202, 240, 0.9); }

/* bg-danger transparent levels */
.bg-danger-t-1 { background-color: rgba(220, 53, 69, 0.1); }
.bg-danger-t-2 { background-color: rgba(220, 53, 69, 0.2); }
.bg-danger-t-3 { background-color: rgba(220, 53, 69, 0.3); }
.bg-danger-t-4 { background-color: rgba(220, 53, 69, 0.4); }
.bg-danger-t-5 { background-color: rgba(220, 53, 69, 0.5); }
.bg-danger-t-6 { background-color: rgba(220, 53, 69, 0.6); }
.bg-danger-t-7 { background-color: rgba(220, 53, 69, 0.7); }
.bg-danger-t-8 { background-color: rgba(220, 53, 69, 0.8); }
.bg-danger-t-9 { background-color: rgba(220, 53, 69, 0.9); }

/* bg-warning transparent levels */
.bg-warning-t-1 { background-color: rgba(255, 193, 7, 0.1); }
.bg-warning-t-2 { background-color: rgba(255, 193, 7, 0.2); }
.bg-warning-t-3 { background-color: rgba(255, 193, 7, 0.3); }
.bg-warning-t-4 { background-color: rgba(255, 193, 7, 0.4); }
.bg-warning-t-5 { background-color: rgba(255, 193, 7, 0.5); }
.bg-warning-t-6 { background-color: rgba(255, 193, 7, 0.6); }
.bg-warning-t-7 { background-color: rgba(255, 193, 7, 0.7); }
.bg-warning-t-8 { background-color: rgba(255, 193, 7, 0.8); }
.bg-warning-t-9 { background-color: rgba(255, 193, 7, 0.9); }

/* bg-dark transparent levels */
.bg-dark-t-1 { background-color: rgba(33, 37, 41, 0.1); }
.bg-dark-t-2 { background-color: rgba(33, 37, 41, 0.2); }
.bg-dark-t-3 { background-color: rgba(33, 37, 41, 0.3); }
.bg-dark-t-4 { background-color: rgba(33, 37, 41, 0.4); }
.bg-dark-t-5 { background-color: rgba(33, 37, 41, 0.5); }
.bg-dark-t-6 { background-color: rgba(33, 37, 41, 0.6); }
.bg-dark-t-7 { background-color: rgba(33, 37, 41, 0.7); }
.bg-dark-t-8 { background-color: rgba(33, 37, 41, 0.8); }
.bg-dark-t-9 { background-color: rgba(33, 37, 41, 0.9); }

/* bg-secondary transparent levels */
.bg-secondary-t-1 { background-color: rgba(108, 117, 125, 0.1); }
.bg-secondary-t-2 { background-color: rgba(108, 117, 125, 0.2); }
.bg-secondary-t-3 { background-color: rgba(108, 117, 125, 0.3); }
.bg-secondary-t-4 { background-color: rgba(108, 117, 125, 0.4); }
.bg-secondary-t-5 { background-color: rgba(108, 117, 125, 0.5); }
.bg-secondary-t-6 { background-color: rgba(108, 117, 125, 0.6); }
.bg-secondary-t-7 { background-color: rgba(108, 117, 125, 0.7); }
.bg-secondary-t-8 { background-color: rgba(108, 117, 125, 0.8); }
.bg-secondary-t-9 { background-color: rgba(108, 117, 125, 0.9); }


@keyframes colorErrorChange {
    0% { color: var(--color-error-start); }
    50% { color: var(--color-error-middle); }
    100% { color: var(--color-error-end); }
}
.error-message {
    animation: colorErrorChange 1s infinite;
}

@keyframes colorSuccessChange {
    0% { color: var(--color-success-start); }
    50% { color: var(--color-success-middle); }
    100% { color: var(--color-success-end); }
}
.success-message {
    animation: colorSuccessChange 1s infinite;
}

@keyframes colorWarningChange {
    0% { color: var(--color-warning-start); }
    50% { color: var(--color-warning-middle); }
    100% { color: var(--color-warning-end); }
}
.warning-message {
    animation: colorWarningChange 1s infinite;
}

@keyframes colorPrimaryChange {
    0% { color: var(--color-primary-start); }
    50% { color: var(--color-primary-middle); }
    100% { color: var(--color-primary-end); }
}
.primary-message {
    animation: colorPrimaryChange 1s infinite;
}

@keyframes colorInfoChange {
    0% { color: var(--color-info-start); }
    50% { color: var(--color-info-middle); }
    100% { color: var(--color-info-end); }
}
.info-message {
    animation: colorInfoChange 1s infinite;
}

@keyframes colorSecondaryChange {
    0% { color: var(--color-secondary-start); }
    50% { color: var(--color-secondary-middle); }
    100% { color: var(--color-secondary-end); }
}
.secondary-message {
    animation: colorSecondaryChange 1s infinite;
}

@keyframes colorDangerChange {
    0% { color: var(--color-danger-start); }
    50% { color: var(--color-danger-middle); }
    100% { color: var(--color-danger-end); }
}
.danger-message {
    animation: colorDangerChange 1s infinite;
}



/* Line */
.btn-line {
    background-color: var(--color-line);
    color: white;
}

.btn-line:hover {
    background-color: var(--color-line-hover);
    color: white;
}

.btn-line:focus, .btn-line:active {
    background-color: var(--color-line-active);
    color: white;
}

.text-line {
    color: var(--color-line);
}

/* Purple */
.bg-purple {
    background-color: var(--color-purple);
    color: white;
}

.text-purple {
    color: var(--color-purple);
}

.btn-purple {
    background-color: var(--color-purple);
    color: white;
}

.btn-purple:hover {
    background-color: var(--color-purple-hover);
    color: white;
}

.btn-purple:focus, .btn-purple:active {
    background-color: var(--color-purple-active);
    color: white;
}

/* Purple Pink */
.bg-purple-pink {
    background-color: var(--color-purple-pink);
    color: white;
}

.text-purple-pink {
    color: var(--color-purple-pink);
}

.btn-purple-pink {
    background-color: var(--color-purple-pink);
    color: white;
}

.btn-purple-pink:hover {
    background-color: var(--color-purple-pink-hover);
    color: white;
}

.btn-purple-pink:focus, .btn-purple-pink:active {
    background-color: var(--color-purple-pink-active);
    color: white;
}

/* Thai D */
.btn-thai-d {
    background-color: var(--color-thai-d);
    color: white;
}

.btn-thai-d:hover {
    background-color: var(--color-thai-d-hover);
    color: white;
}

.btn-thai-d:focus, .btn-thai-d:active {
    background-color: var(--color-thai-d-active);
    color: white;
}


.fw-200 {
    font-weight: 200 !important;
}
.fw-300 {
    font-weight: 300 !important;
}
.fw-400 {
    font-weight: 400 !important;
}
.fw-500 {
    font-weight: 500 !important;
}
.fw-600 {
    font-weight: 600 !important;
}
.fw-700 {
    font-weight: 700 !important;
}
.fw-800 {
    font-weight: 800 !important;
}
.fw-900 {
    font-weight: 900;
}





.fs-7 {
    font-size: 0.9rem !important;
}


.w-30 {
    width: 30% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}



tr[data-href] {
    cursor: pointer;
}

.divs-hover div:hover {
    background-color: #f5f5f5; /* สีพื้นหลังเมื่อ hover */
    transition: background-color 0.3s; /* เพิ่มเอฟเฟกต์การเปลี่ยนสี */
}

.div-hover:hover {
    background-color: #f5f5f5; /* สีพื้นหลังเมื่อ hover */
    transition: background-color 0.3s; /* เพิ่มเอฟเฟกต์การเปลี่ยนสี */
}





.custom-legend {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.custom-legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}
.vis-label {
    position: absolute;
    background-color: white;
    border: 1px solid gray;
    padding: 2px;
    font-size: 12px;
    pointer-events: none;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1050; /* Ensure it's above other elements */
    visibility: hidden; /* Initially hidden */
}

.loading-container.show {
    visibility: visible; /* Show when needed */
}


.notify-screen {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.notify-screen.show {
    opacity: 1;
}


.text-justify {
    text-align: justify;
}


.text-indent {
    text-align: justify;
    text-indent: 3em;
}









.cover-clip {
    position: relative;
    width: 300px; /* Adjust as needed */
    height: 300px; /* Adjust as needed */
    overflow: hidden;
    background-color: transparent;
}

.cover-clip-1 img {
    width: 100%;
    height: auto;
    clip-path: path("M 0 0 Q 150 100 300 0 L 300 300 L 0 300 Z"); /* Adjust the path as needed */
}

.cover-clip-2 img {
    width: 100%;
    height: auto;
    clip-path: path("M 0 0 Q 100 150 0 300 L 300 300 L 300 0 Z"); /* Adjust the path as needed */
}

.cover-clip-3 img {
    width: 100%;
    height: auto;
    clip-path: ellipse(150px 75px at 50% 50%);
}

.cover-clip-4 img {
    width: 100%;
    height: auto;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.cover-clip-5 img {
    width: 100%;
    height: auto;
    clip-path: polygon(0% 0%, 100% 0%, 75% 50%, 100% 100%, 0% 100%, 25% 50%);
}

.cover-clip-6 img {
    width: 100%;
    height: auto;
    clip-path: path("M 0 0 C 100 100, 200 100, 300 0 L 300 300 L 0 300 Z");
}

.cover-clip-7 img {
    width: 100%;
    height: auto;
    clip-path: polygon(0% 0%, 100% 0%, 80% 50%, 100% 100%, 0% 100%, 20% 50%);
}




.square-image {
    width: 400px; /* กำหนดขนาดความกว้างที่ต้องการ */
    height: 400px; /* กำหนดขนาดความสูงที่ต้องการ */
    object-fit: cover; /* ให้รูปภาพครอบคลุมพื้นที่ทั้งหมดโดยไม่เสียสัดส่วน */
    border-radius: 5px; /* เพิ่มมุมโค้งถ้าต้องการ */
    overflow: hidden; /* ซ่อนส่วนที่เกินจากขอบ */
}













/*replace main template*/
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
/*.bg-danger {*/
/*    background-color: #a74b9c !important;*/
/*}*/

.btn-danger {
    background-color: #ad57a2 !important;
    border-color: #ad57a2 !important;
}

.btn-danger:hover {
    background-color: #943186 !important;
    border-color: #820974 !important;
}

.btn-outline-danger{
    border-color: #943186 !important;
    color: #943186 !important;
}

.btn-outline-danger:hover{
    background-color: #943186 !important;
    color: #fff !important;
}

a {
    text-decoration: none;
    color: #820974;
}

.my-account-main-page-sidebar .nav-link i {
    background: #ffede8;
    color: #943186;
}

.my-account-main-page-sidebar .nav-link.active {
    color: #943186;
    background: none !important;
}

.my-account-main-page-sidebar .nav-link:hover i, .my-account-main-page-sidebar .nav-link.active i {
    background: #943186;
    color: #ffffff;
}
