body {
    background-color: #f8f9fa;
    font-family: 'Kanit', sans-serif;
    /* <-- เพิ่มบรรทัดนี้ */
}

.login-container,
.register-container,
.profile-container {
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

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

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

.password-rules {
    list-style: none;
    padding: 0;
    font-size: 0.9em;
}

.password-rules li {
    color: #6c757d;
}

.password-rules li.valid {
    color: green;
}

.password-rules li.invalid {
    color: red;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}


/* Style for the logo in the navbar */

.navbar-logo {
    height: 30px;
    /* กำหนดความสูงของโลโก้ */
    /* width: auto; */
    /* ความกว้างปรับตามอัตโนมัติ */
}


/* ... โค้ดเก่าทั้งหมด ... */


/* ========== Dashboard Styles ========== */

.dashboard-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 10px;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #212529;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.card-label {
    font-weight: 500;
    font-size: 0.9rem;
}


/* Custom background colors */

.bg-success {
    background-color: #198754 !important;
    /* สีเขียว */
}

.bg-warning {
    background-color: #ffc107 !important;
    /* สีส้ม */
}


/* ... โค้ดเก่าทั้งหมด ... */


/* Style for Card Footer action button */

.card-footer {
    background-color: #f8f9fa;
    /* สีพื้นหลังเทาอ่อน */
    border-top: 1px solid #e9ecef;
}


/* ========== Rating Stars Styles ========== */

.rating-group {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 0.25rem;
}

.rating-group>input {
    display: none;
}

.rating-group>label {
    font-size: 2rem;
    /* ขนาดดาว */
    color: #e4e5e9;
    /* สีดาวปกติ */
    cursor: pointer;
    transition: color 0.2s;
}

.rating-group>label:hover,
.rating-group>label:hover~label,
.rating-group>input:checked~label {
    color: #039e1d;
    /* สีดาวเมื่อ hover หรือ checked */
}


/* Labels below stars */

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0 0.5rem;
}

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

.btn-purple {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-purple:hover {
    color: #fff;
    background-color: #5a34a3;
    border-color: #533096;
}