@font-face {
    font-family: 'LINE Seed Sans TH';
    src: url('assets/font/WOFF2/LINESeedSansTH_W_Rg.woff2') format('woff2'),
        url('font/TTF/LINESeedSansTH_W_Rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LINE Seed Sans TH';
    src: url('assets/font/WOFF2/LINESeedSansTH_W_Bd.woff2') format('woff2'),
        url('assets/font/TTF/LINESeedSansTH_W_Bd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --color1: #2D336B;
    --color2: #7886C7;
    --color3: #A9B5DF;
    --color4: #FFF2F2;

}
a {
    text-decoration: none;
}


/* ใช้ฟอนต์กับทั้งเว็บไซต์ */
body {
    font-family: 'LINE Seed Sans TH', sans-serif;
    background-color: #E6E6E6;
}

.navbar {
    background-color: var(--color1);
    ;
    color: white;
}

.icon-fixed {
    width: 20px; /* กำหนดขนาดไอคอนให้เท่ากัน */
    text-align: center; /* จัดให้อยู่ตรงกลาง */
    margin-right: 10px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
}


#sidebar {
    width: 250px;
    height: 100vh;
    /* Make sidebar full height */
    position: fixed;
    /* Fix sidebar position */
    top: 0;
    left: 0;
    transition: all 0.3s;
    white-space: nowrap;
    background-color: #fff;
    color: #9F9498;
}

.collapsed-sidebar {
    width: 0;
    overflow: hidden;
    padding: 0;
    display: none;
}

/* Default hide sidebar only on small screens */
@media (max-width: 768px) {
    #sidebar {
        display: none;
    }
}

.content-wrapper {
    margin-left: 250px;
    transition: margin-left 0.3s;
    width: calc(100% - 250px);
}

.content-wrapper.full-width {
    margin-left: 0;
    width: 100%;
}

.content-wrapper {
    background-color: #E6E6E6;
    min-height: 100vh;
    padding-bottom: 30px;
    /* Make sidebar full height */
}



.pagination-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination-item {
    padding: 8px 12px;
    border: 1px solid var(--color4);
    background-color: var(--color4);
    cursor: pointer;
    text-decoration: none;
    color: black;
    display: inline-block;
}

.pagination-item.active {
    background-color: var(--color2);
    color: white;
    font-weight: bold;
}

.pagination-item.disabled {
    color: #ccc;
    pointer-events: none;
}


.textcolor1{
    color: var(--color1);
}

.btn-primary{background-color: var(--color2); border-color:  var(--color2);}
.btn-primary:hover{background-color: var(--color1); }


.table-primary {
    background-color: var(--color2) !important; /* ปรับสีให้เป็นม่วงเข้ม */
    color: white !important;
}
.table-primary th, .table-primary td {
    background-color: var(--color2) !important;
    border-color: #fff;
    color: white
}