*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Kanit',sans-serif;
}

body{
    background:#f3f5f8;
}

header{
    background:#0057c2;
    padding:3px 35px;
}

.header-wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.brand{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#0057c2;
    font-size:38px;
    font-weight:700;
}

.brand-text h1{
    color:#fff;
    font-size:34px;
}

.brand-text p{
    color:#dce8ff;
    font-size:18px;
}

.header-buttons{
    display:flex;
    gap:18px;
}

.header-buttons button{
    background:#fff;
    border:none;
    padding:16px 30px;
    border-radius:16px;
    color:#0057c2;
    font-size:18px;
    cursor:pointer;
    font-weight:500;
}

.hero img{
    width:100%;
    display:block;
}

.container{
    max-width:1400px;
    margin:auto;
    padding:25px;
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:22px;
}

.card{
    background:#fff;
    border-radius:18px;
    padding:22px;
    box-shadow:0 5px 18px rgba(0,0,0,0.08);
}

.card h3{
    color:#0057c2;
    margin-bottom:18px;
    font-size:28px;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#0057c2;
    color:#fff;
    padding:14px;
}

table td{
    padding:14px;
    border-bottom:1px solid #ddd;
}

footer{
    background:#0057c2;
    color:white;
    padding:20px 30px;
    margin-top:20px;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
}

.footer-right{
    display:flex;
    gap:25px;
}

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
}

.modal-content{
    background:#fff;
    width:90%;
    max-width:420px;
    margin:8% auto;
    padding:28px;
    border-radius:18px;
    position:relative;
}

.close{
    position:absolute;
    top:12px;
    right:16px;
    font-size:28px;
    cursor:pointer;
}

input{
    width:100%;
    padding:14px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:10px;
}

.login-btn{
    width:100%;
    padding:14px;
    background:#0057c2;
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

@media(max-width:900px){
    .container{
        grid-template-columns:1fr;
    }
}
/* ทำให้ select2 เท่ากับ input */
.select2-container .select2-selection--single {
    height: 48px !important;
    border-radius: 10px !important;
    border: 1px solid #ccc !important;
}

.select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 12px !important;
}

.select2-selection__arrow {
    height: 48px !important;
}

/* input ให้สูงเท่ากัน */
input {
    height: 48px;
    padding: 0 12px;
}

/* เว้นระยะเท่ากัน */
#userSelect {
    margin-bottom: 10px;
}
/* =========================
   📱 RESPONSIVE MOBILE
========================= */
@media screen and (max-width: 768px) {

    /* header */
    .header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .brand-text h1 {
        font-size: 16px;
    }

    .brand-text p {
        font-size: 12px;
    }

    .header-buttons {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    /* hero image */
    .hero img {
        width: 100%;
        height: auto;
    }

    /* container */
    .container {
        padding: 10px;
    }

    /* cards */
    .card {
        padding: 15px;
    }

    /* ตารางให้เลื่อนแนวนอนได้ */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    table th, table td {
        font-size: 13px;
        padding: 8px;
    }

    /* modal */
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }

    /* ปุ่มใหญ่ขึ้นกดง่าย */
    button, .login-btn {
        font-size: 16px;
        padding: 10px;
    }
}