/* General Body Styles */
body {
    background: linear-gradient(to bottom right, #c0e0fd, #c7dfff);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    color: #065a87;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
}



/* Header Title Styles */
.header-title {
    color: #ffffff;
    background: linear-gradient(to right, #065a87, #0b80d4);
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.8rem;
    font-weight: bold;
}

.header-title small {
    font-size: 1.3rem;
}

/* Card Styles */
.card {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #0b80d4, #065a87);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Table Styles */
.table th {
    background: linear-gradient(135deg, #0f97f2, #0b80d4);
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid #ffffff;
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 85px;
}

.table th:hover {
    background: linear-gradient(135deg, #0b80d4, #0f97f2);
    transform: scale(1.05);
    cursor: pointer;
}

.table img {
    width: 40px;
    height: auto;
    margin-right: 10px;
    border-radius: 3px;
}

.table td {
    text-align: center;
    vertical-align: middle;
    color: #065a87;
    font-size: 1rem;
}

/* เพิ่มเอฟเฟกต์ hover สำหรับแถว */
.table-hover tbody tr:hover {
    background-color: #c0e0fd; /* สีพื้นหลังเมื่อ hover */
    transition: background-color 0.3s ease; /* เพิ่มความนุ่มนวล */
    cursor: pointer; /* เปลี่ยนเป็นลูกศร */
}

/* กำหนดเอฟเฟกต์เมื่อคลิกที่แถว */
.table-hover tbody tr:active {
    background-color: #0f97f2; /* สีพื้นหลังเมื่อคลิก */
    color: #fff; /* สีข้อความเมื่อคลิก */
    transition: background-color 0.1s ease; /* เพิ่มเอฟเฟกต์การเปลี่ยนแปลง */
}
/* Empty Data Styles */
.empty {
    color: #999;
    font-style: italic;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(to right, #0b80d4, #065a87);
    padding: 10px 15px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: #ffffff;
    font-size: 1rem;
    padding: 10px 15px;
    transition: background 0.3s, color 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Desktop Adjustments */
@media (min-width: 992px) {
    .container {
        max-width: 750px;
    }
}