
body {
    font-family: 'Kanit', sans-serif !important;
}

/* ===== Responsive เพิ่ม ===== */

/* ทำ container ไม่ติดขอบ */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* ปรับ card ให้ดูดีขึ้น */
.card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ปุ่มในมือถือกดง่ายขึ้น */
@media (max-width: 768px) {

    .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    h3, h4 {
        font-size: 20px;
    }

}

/* ===== ตาราง responsive ===== */
.table-responsive {
    overflow-x: auto;
}

/* มือถือ → แปลง table เป็น card */
@media (max-width: 600px) {

    table thead {
        display: none;
    }

    table, table tbody, table tr, table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 10px;
        background: #fff;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    table td {
        text-align: left;
        padding: 5px 0;
    }

    table td::before {
        font-weight: bold;
        display: block;
        color: #666;
    }

    table td:nth-child(1)::before { content: "ID"; }
    table td:nth-child(2)::before { content: "ชื่อ"; }
    table td:nth-child(3)::before { content: "จัดการ"; }

}

.navbar-brand img {
    border-radius: 6px;
}

.card {
transition: all 0.25s ease;
}

.card:hover{
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.badge:hover{
background:#4e73df !important;
color:#fff !important;
cursor:pointer;
}



.title-main{
    color:#1a2c6b;
}


