﻿@import "../fonts.css";

:root {
    --primary-color: #143c6d;
    --secondary-color: #ff914d;
    --thirt-color: #ffbd59;
    --gray-color1: #d9d9d9;
    --gray-color2: #a6a6a6;
    --gray-color3: #efefef;
    --gray-color4: #ececec;
    --gray-color5: #737373;
    --gray-color6: #bfbfbf;
    --gray-color7: #434343;
    --orange-color1: #ff873e;
    --red-color: #e60012;
    --background-color1: #143c6d;
    --text-color: #2c3e50;
    --header-color: #34495e;
    --footer-color: #95a5a6;
}


html {
    font-size: 12px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
@media only screen and (max-width: 600px) {
    .container-xl .headerLogo {
        height: 35px !important;
    }
}
.container-xl .headerLogo {
    height: 40px;
    width: auto;
}
html {
  position: relative;
  min-height: 100%;
}
.logoutbtn {
    display: flex;
    align-items: center;
    margin-left: 10px;
    background: #BFBFBF;
    border-radius: 8px;
    padding: 3px 8px;
}
.logoutbtn a{
    margin: auto;
    color: white;
    font-family: psuStidi-Bold;
    font-size: 0.8rem;
}
.logoutbtn a:hover{
    color: white;
    font-family: psuStidi-Bold;
}
body {
    background-color: var(--primary-color) !important;
    margin-bottom: 60px;
    font-family: 'psuStidi-Regular' !important;
    color: black;
}

.navbar {
    box-shadow: unset !important;
    justify-content: flex-end !important;
}
.navbar .nav-item {
        border-radius: 9px;
        padding: 0px 0px !important;
        margin: 0px 8px;
}
.navbar .nav-active {
    box-shadow: 0px 4px 4px 0px #00000040;
}
.navbar .nav-active.h {
    background-color: #BAD9FF;
}
.navbar .nav-active.d {
    background-color: #FFC38F;
}
.navbar .nav-active.e {
    background-color: #D4FFD7;
}
.navbar .nav-active.s {
    background-color: #FFD3EE;
}
.navbar .nav-active.a {
    background-color: #EAB4FF;
}
.navbar span{
    border-left: solid 2px black;
    height: 80%;
}

.navbar .nav-link {
    color: black !important;
    font-size: 0.9rem;
    display: flex;
    padding: 5px 15px !important ;
    font-family: psuStidi-Bold;
}
.navbar li:hover a {
opacity: 0.9;
color: gray !important; /* Ensure anchor text changes color */
}

.pagenav {
    align-items:flex-end;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 10px 0px;
    margin: 10px 0px;
    font-family: psuStidi-Bold;
    color: white;
}
.pagenav img {
    width: auto;
    height: 50px;
}
.pagenav .page-item{
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 4px 0px #00000040;
    cursor: pointer;
}
    .pagenav .page-item.evote {
        font-family: psuStidi-Bold;
        background: linear-gradient(90deg, #0542DA 12%, #00CAD9 55.5%);
        padding: 10px 25px;
        color: #FFFFFF;
        text-decoration: none;
        border: 1px solid #2A008C;
    }
.pagenav .page-item.d{
    background: #CE7B07;
}
.pagenav .page-item.e{
    background: #009D41;
    border: unset;
    color: white !important;
}

.container-xl .dropdown.ms-2 {
    width: 20px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container-xl .dropdown.ms-2 svg{
    width: 100%;
    height: auto;
}



.eborder-top {
    color: white !important;
    padding-top: 20px;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none !important;
}

.eborder-top img {
  margin-bottom: 10px;
  padding: 10px 10px;
  background-color: white;
  border-radius: 10px;
}

.eborder-top .logo {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid white;
  margin-bottom: 20px;
  padding-bottom: 20px;
  color: white !important;
}
.classchat .chat-head.active {
    display: none !important;
}
.classchat .chat-head,
.classchat .side-tab {
    transition: all 0.3s ease;
}

.classchat .side-tab {
    opacity: 0.8;
    writing-mode: vertical-rl; /* Set vertical text from bottom to top */
    text-orientation: upright; /* Keep each character upright */
    transform-origin: left top; /* Set the origin for rotation */
    position: fixed;
    bottom: 0px;
    right: 0;
    transform: translateY(-50%);
    background-color: var(--secondary-color); /* Set the background color */
    color: white;
    padding: 10px 0px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 0 0 8px;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
    transition: 200ms;

}
.side-tab.active {
    display: none;
}
.classchat .side-tab:hover {
    transition: 200ms;
    background-color: #ff6b0f; /* Darken on hover */
}

.eborder-top .copyright {
  text-align: center;
  color: white !important;
  padding-bottom: 20px;
}
.classchat .chat-head {
    font-size: 1.2rem;
    opacity: 0.6;
    position: fixed;
    display: flex;
    flex-direction: column;
    bottom: 20px;
    right: 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 500;
    font-family: psuStidi-Bold;
    color: #ffff;
    align-items: flex-start;
    transition: ease-in-out 0.1s;
}

    .classchat .chat-head:hover {
        opacity: 1;
    }

    .classchat .chat-head img {
        padding-top: 5px;
        width: 150px;
    }

    .classchat .chat-head .closebtn {
        position: absolute;
        top: -20px;
        right: 0px;
        border-radius: 50%;
        background-color: red;
    }
.classchat .chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

    .classchat .chat-container .helpful-buttons {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

        .classchat .chat-container .helpful-buttons button {
            min-width:100px;
            border-radius: 10px;
            padding: 2px 5px !important;
           border: none;
        }

    .classchat .chat-container .question-item {
        text-decoration: underline; 
        margin-top: 4px; 
        margin-bottom: 4px;
        cursor: pointer; 
    }

    .classchat .chat-container .show-more {
        text-decoration: underline; 
        margin-top: 10px; 
        cursor: pointer; 
    }

.chat-container .topchat-header img {
    z-index: 300;
    height: 80px;
    position: absolute;
    bottom: -7px;
    margin-left: 0px;
}
.chat-container .topchat-header .close-button {
    background: #cf8544;
    border: none;
    color: white;
    font-family: psuStidi-Regular;
    font-size: 1.2rem;
    height: auto;
    width: auto;
    border-radius: 50%;
}


.chat-container .topchat-header {
    padding: 5px 10px;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    font-family: psuStidi-Bold;
    font-size: 1.5rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
    height: 50px;
}

    .chat-container .topchat-header button {
        border-radius: 50%;
        padding: 0.2em 0.6em !important;
        background-color: var(--gray-color2);
    }

.chat-container .chat-messages {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    overflow-y: scroll; 
}

    .chat-container .chat-messages .botlogo {
        width: 20px;
        align-self: flex-end;
        margin-right: 5px;
    }

.chat-container .chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

    .chat-container .chat-input input {
        font-size: 0.9rem;
        color: black;
        flex: 1;
        padding: 3px 8px;
        background-color: var(--gray-color1);
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .chat-container .chat-input button {
        margin-left: 10px;
        padding: 8px 12px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

.classchat .chat-container .chat-messages::-webkit-scrollbar {
    display: none; 
}

.classchat .chat-container .chat-messages {
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.chat-container .chat-message {
    padding: 5px 12px;
    border-radius: 15px;
    max-width: 70%;
    word-wrap: break-word;
    text-align: left;
}

.chat-container .user-message {
    align-self: self-end;
    background-color: var(--secondary-color);
    color: white;
    border-bottom-right-radius: 0;
}

.chat-container .bot-message {
    align-self: flex-start;
    background-color: #f0f0f0;
    color: black;
    border-bottom-left-radius: 0;
}
.chat-container .chat-message ul {
    padding-left: 1rem
}

.chat-container .suggestions {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
}

.chat-container .suggestion-item {
    padding: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .chat-container .suggestion-item:hover {
        background-color: #f0f0f0;
    }


.autocomplete-suggestions {
    border: 1px solid #ccc;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    width: calc(100% - 20px);
}

    .autocomplete-suggestions li {
        padding: 10px;
        cursor: pointer;
    }

        .autocomplete-suggestions li:hover {
            background-color: #f0f0f0;
        }

.ui-autocomplete {
    font-size: 0.9rem;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    scrollbar-width: thin; /* ปรับ scrollbar ให้ผอม */
    scrollbar-color: #aaa #f5f5f5; /* สีของ scrollbar และพื้นหลัง */
}
}

.ui-menu-item {
    padding: 3px 5px;
    cursor: pointer;
}
    .ui-menu-item:hover {
        background-color: #f5f5f5;
    }

.ui-autocomplete::-webkit-scrollbar {
    width: 6px; /* ความกว้างของ scrollbar */
    height: 6px; /* ความสูงของ scrollbar (สำหรับ scrollbar แนวนอน) */
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: #f5f5f5; /* สีพื้นหลังของ scrollbar */
    border-radius: 4px; /* มุมโค้งของ track */
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background-color: #aaa; /* สีของ scrollbar */
    border-radius: 4px; /* มุมโค้งของ scrollbar */
    border: 1px solid #ddd; /* ขอบรอบ scrollbar */
}

    .ui-autocomplete::-webkit-scrollbar-thumb:hover {
        background-color: #888; /* สีเมื่อ hover */
    }

.ui-autocomplete {
    position: fixed;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#autoscrollchat {
    overflow-y: auto;
    max-height: 300px; /* Adjust the height as per your design */
    scroll-behavior: smooth; /* Smooth scrolling for a better user experience */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #eee;
    font-size: 18px;
}

    .calendar-header button {
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
    }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ddd;
}

    .calendar-grid div {
        background: #fff;
        padding: 16px;
        text-align: center;
        position: relative;
        cursor: pointer;
    }

        .calendar-grid div.highlight {
            background: #ff9800;
            color: #fff;
        }

            .calendar-grid div.highlight span {
                display: block;
                margin-top: 8px;
                font-size: 12px;
            }

.day-name {
    background: #eee;
    font-weight: bold;
}
.hidden {
    max-height: 0;
    opacity: 0;
}

.visible {
    max-height: 3000px; /* กำหนดขนาดสูงสุดที่รองรับ */
    opacity: 1;
}
.custom-hidden {
    display: none;
}

.chat-message .spinner-grow {
    /* ให้ใช้คอนโทรล animation ตัวเดียวกับ bootstrap แต่เปลี่ยน timing และความยาวได้ */
    animation: spinner-grow 2s ease-in-out infinite;
    background-color: var(--secondary-color);
    width: 0.8rem;
    height: 0.8rem;
}
.chat-message .spinner-grow:nth-child(1) { animation-delay: 0s;    }
.chat-message .spinner-grow:nth-child(2) { animation-delay: 0.16s; }
.chat-message .spinner-grow:nth-child(3) { animation-delay: 0.32s; }
.chat-message .spinner-grow:nth-child(4) { animation-delay: 0.48s; }
.chat-message .spinner-grow:nth-child(5) { animation-delay: 0.64s; }
.btn.econ-submit {
    background-color: #008040;
    color: white;
}
.full-screen .d-flex {
    min-height: calc(100vh - 120px);
    font-family: Prompt;
    color: #422800;
}

.register-page.ann {
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
}

    .register-page.ann .header {
        padding: 15px 15px 5px 15px;
        background: #FFE9FF;
        border-radius: 6px;
    }

        .register-page.ann .header h2 {
            font-size: 1.2rem;
            font-weight: bold;
            margin: 0;
            margin-bottom: 0px !important; 
        }

    .register-page.ann .btn-register {
        background-color: #ff0080;
        color: #fff;
        font-weight: bold;
        padding: 3px 10px;
        border-radius: 5px;
    }
    .register-page.ann .meta {
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 14px;
        color: #333;
    }
    .register-page.ann .meta .author {
        margin-right: 1.5rem;
    }

    .register-page.ann .content {
        min-height: 50vh;
        margin-top: 20px;
        padding: 15px;
        background: linear-gradient(to bottom, #fdeaff, #f9f5ff, #f5f5f5);
        border-radius: 8px;
        font-size: 16px;
        color: #222;
    }

.register-page.ann .content iframe{
    height: 800px;
}

@media (max-width: 768px) {
    .register-page.ann .meta {
    flex-direction: column;
    align-items: flex-start
    }
    .register-page.ann .meta span {
        font-size: 1rem;
    }
    .register-page.ann .content iframe {
        height: 500px;
    }
}
@media (max-width: 992px) {
    .full-screen .d-flex {
        min-height: calc(100vh - 60px);
    }
}
    .button-74 {
        background-color: #fbeee0;
        border: 2px solid #422800;
        border-radius: 30px;
        box-shadow: #422800 4px 4px 0 0;
        color: #422800;
        cursor: pointer;
        display: inline-block;
        font-weight: 600;
        font-size: 18px;
        padding: 0 18px;
        line-height: 50px;
        text-align: center;
        text-decoration: none;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }

        .button-74:hover {
            background-color: #fff;
        }

        .button-74:active {
            box-shadow: #422800 2px 2px 0 0;
            transform: translate(2px, 2px);
        }

    @media (min-width: 768px) {
        .button-74 {
            min-width: 120px;
            padding: 0 25px;
        }
    }
.distaga {
    color: unset;
}
.distaga:hover{
    color: unset;
}