html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1; /* This makes the content area take up remaining space */
}

#footer {
    flex-shrink: 0;
    position: relative; /* or fixed */
    /* bottom: 0;
    width: 100%; */
    background-color: #f8f9fa; /* Light background color */
}

body {
    background-color: #f8f9fa;
}

main > .container {
    padding: 70px 15px 20px;
}

#footer a {
    transition: color 0.2s ease-in-out;
}

#footer a:hover {
    color: #0056b3 !important;
}

#footer .flag {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    #footer .language-picker {
        margin-top: 1rem;
    }
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
}

form div.required label.form-label:after {
    content:" * ";
    color:red;
}

.breadcrumbs-container {
    display: flex; /* ใช้ flexbox สำหรับการจัดเรียง */
    justify-content: space-between; /* จัดเรียงให้ช่องว่างระหว่างสององค์ประกอบ */
    align-items: center; /* จัดให้อยู่กลางแนวตั้ง */
}

.language-picker {
    margin-left: auto; /* ผลัก language picker ไปทางขวา */
}

.flag {
    width: 24px; /* ขนาดของธง */
    height: auto;
    margin-right: 5px; /* ระยะห่างระหว่างภาพธงกับข้อความ */
}

.language-picker .lang-muted {
    color: #aaa; /* ทำให้ข้อความจางลง */
    pointer-events: none; /* ป้องกันการคลิก */
}

.flag.lang-muted {
    opacity: 0.5; /* ทำให้ธงจางลง */
}

.code-block{
    background-color: #f8f9fa;
    /* padding: 20px; */
}

.toggle-password {
    cursor: pointer; /* Change to hand icon on hover */
}

.toggle-password:hover {
    color: #007bff; /* Optional: Change color on hover */
}

/* .input-group-text {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
} */

.scroll-progress-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

.progress-ring {
    transform: rotate(-90deg);
    cursor: pointer;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.1s;
    transform-origin: 50% 50%;
}

.progress-ring-circle-bg {
    opacity: 0.3;
}

.percentage-text {
    transform: rotate(90deg);
}

.bi-arrow-up-short {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2196F3;
    pointer-events: none;
    font-size: 26px;
}

.no-wrap {
    white-space: nowrap;
}

.json-code {
    white-space: pre-wrap;
    tab-size: 4;
}

.navbar-nav .nav-link {
    color: #fff;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    opacity: 0.85;
    /* font-weight:600; */
}

/* เส้นพื้นฐาน เริ่มต้นไม่โชว์ */
.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* แสดงเส้นเมื่อ hover */
.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* แสดงเส้นตลอดเมื่อ active */
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* เมนู active (ตัวหนาและไม่จาง) */
.navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
}
