/* นำเข้า Google Font: Kanit */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background-color: #f8fafc;
}

/* คุมโทนสีหลักของ อบจ. (Midnight Blue) */
.bg-pao-main {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

#login-logo{
    width: 100px;
    margin-bottom: 10px;
}

.text-pao {
    color: #1e3a8a !important;
}

.btn-pao {
    background-color: #1e3a8a;
    color: #ffffff;
}

.btn-pao:hover {
    background-color: #172554;
    color: #ffffff;
}

/* สไตล์พื้นฐานของ Sidebar */
.sidebar-wrapper {
    background-color: #222b8c;
    transition: all 0.3s;
}

.sidebar-link {
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: #2b36b2;
    border-left-color: #0284c7;
}
.sidebar-link.active {
    color: #ffffff;
    background-color: #f15411;
    border-left-color: #ffe625;
}

/* ==========================================================================
   SIDEBAR LAYOUT FOR DESKTOP (หน้าจอคอมพิวเตอร์ขนาดใหญ่)
   ========================================================================== */
@media (min-width: 768px) {
    .sidebar-wrapper {
        position: fixed;
        top: 76px;        /* ปรับให้อยู่ใต้ Navbar ที่ขยายเพราะรูปโลโก้พอดี */
        bottom: 0;
        left: 0;
        z-index: 1000;
        background-color: #222b8c; /* คุมสีพื้นหลังให้ตรงกับโทนที่พี่ตั้งไว้ด้านบน */
        transition: all 0.3s;
        padding: 0;
    }
}

/* ==========================================================================
   SIDEBAR LAYOUT FOR MOBILE (หน้าจอมือถือและแท็บเล็ต)
   ========================================================================== */
@media (max-width: 767.98px) {
    .sidebar-wrapper {
        position: fixed;
        top: 76px;        /* ปรับให้เท่ากับฝั่งเดสก์ท็อป */
        left: -250px;     /* ดันเมนูไปหลบอยู่ฝั่งซ้ายสุดนอกจอ */
        bottom: 0;
        width: 250px;
        z-index: 1040;    /* อยู่เหนือเนื้อหาหลัก */
        background-color: #222b8c; /* คุมสีพื้นหลังบนมือถือให้เหมือนกัน */
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        transition: left 0.3s ease-in-out; /* อนิเมชันเวลาสไลด์เข้า-ออก */
    }

    /* เมื่อกดปุ่ม Hamburger -> JavaScript จะเติมคลาส .show เข้ามา สั่งให้สไลด์ออกมาทันที */
    .sidebar-wrapper.show {
        left: 0 !important;
    }
}

/* เมื่อ Input ถูก Focus (มี Cursor อยู่ข้างใน) ให้เปลี่ยนสีข้อความ Placeholder เป็นโปร่งใส */
.form-control:focus::placeholder {
    color: transparent;
    transition: color 0.2s ease; /* เพิ่มอนิเมชันให้หายไปแบบนุ่มนวล */
}