@keyframes colorErrorChange {
    0% { color: red; }
    50% { color: #800000; }
    100% { color: red; }
}
.error-message {
    animation: colorErrorChange 1s infinite;
}

@keyframes colorSuccessChange {
    0% { color: darkgreen; }
    50% { color: #00ca00; }
    100% { color: darkgreen; }
}
.success-message {
    animation: colorSuccessChange 1s infinite;
}


@keyframes colorWarningChange {
    0% { color: #beb000; }
    50% { color: #ffe500; }
    100% { color: #beb000; }
}
.warning-message {
    animation: colorWarningChange 1s infinite;
}


@keyframes colorInfoChange {
    0% { color: #006f7d; }
    50% { color: #00e1ff; }
    100% { color: #006f7d; }
}
.info-message {
    animation: colorInfoChange 1s infinite;
}

@keyframes colorSecondaryChange {
    0% { color: #434343; }
    50% { color: #b0b0b0; }
    100% { color: #232323; }
}
.secondary-message {
    animation: colorSecondaryChange 1s infinite;
}


@keyframes colorDangerChange {
    0% { color: #ed0000; }
    50% { color: #d17575; }
    100% { color: #920000; }
}
.danger-message {
    animation: colorDangerChange 1s infinite;
}




.btn-line {
    background-color: #00B900;
    color: white;
}

.btn-line:hover {
    background-color: #009900;
    color: white;
}

.btn-line:focus, .btn-line:active {
    background-color: #007700;
    color: white;
}

.text-line {
    color: #00B900;
}



.bg-purple {
    background-color: #6f42c1; /* Bootstrap purple */
    color: white; /* Ensure text is readable */
}

.text-purple {
    color: #6f42c1; /* Bootstrap purple */
}

.btn-purple {
    background-color: #6f42c1; /* Bootstrap purple */
    color: white;
}

.btn-purple:hover {
    background-color: #5a3791; /* Darker purple for hover */
    color: white;
}

.btn-purple:focus, .btn-purple:active {
    background-color: #4c2e78; /* Even darker purple for focus/active */
    color: white;
}




.btn-thai-d {
    background-color: #0044cc; /* Replace with the actual color of ThaiD app */
    color: white;
}

.btn-thai-d:hover {
    background-color: #0033a1; /* Slightly darker color for hover effect */
    color: white;
}

.btn-thai-d:focus, .btn-thai-d:active {
    background-color: #002288; /* Even darker color for focus/active effect */
    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;*/
/*}*/
