
/* กำหนดฟอนต์ให้กับภาษาไทย */
.la {
    font-family: 'Noto Sans lao', sans-serif;
}

/* กำหนดฟอนต์ให้กับภาษาอังกฤษ */
.en {
    font-family: 'Prompt', sans-serif;
    font-weight: 500;
}

*{
    font-family: 'Noto Sans Lao', 'Prompt',sans-serif;

}
header {
    font-family: 'Noto Sans Lao', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* allow header to grow on small screens */
    background-color: rgb(252, 0, 159);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 10px 20px; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-bottom: 2px solid #000000;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    width: 64px;
    height: 64px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

header .logo .logo-text {
    display: flex;
    align-items: center;
    gap: 12px; /* reasonable spacing between logo and text */
}

header .logo h1 {
    font-family: 'Noto Sans Lao', sans-serif;
    color: #fff;
    font-size: 20px;
    margin: 0;
}

header .nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}


header .nav-bar nav a {
    text-decoration: none;
    color: #fff;
    margin-left: 0;
    font-weight: 700;
    padding: 6px 10px; /* เพิ่มพื้นที่ในแต่ละลิงก์ */
    transition: background-color 0.2s ease;
    border-radius: 4px;
    font-size: 16px;
}

header .nav-bar nav a:hover {
    background-color: rgba(255,255,255,0.08);
}



main {
    margin-left: 250px;
    margin-top: 70px; /* leave room for fixed header */
    padding: 20px;
    width: calc(100% - 250px);
    background-color: #f4f4f4;
    overflow-y: auto;
    min-height: calc(100vh - 70px);
}

main h1 {
    color: rgb(252, 0, 159);
}

.pagination button {
    background-color: rgb(252, 0, 159);
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 5px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.pagination button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination button:hover:not(.disabled) {
    background-color: rgb(255, 204, 0);
}

/* Responsive rules */
@media (max-width: 1024px) {
    header .logo img {
        width: 56px;
        height: 56px;
    }
    header .logo h1 {
        font-size: 18px;
    }
    main {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    /* Stack header vertically on small screens */
    header {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
    }

    header .logo {
        margin-left: 0 !important;
    }

    header .nav-bar {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    header .nav-bar nav a {
        font-size: 15px;
        padding: 8px 10px;
    }

    main {
        margin-left: 0;
        margin-top: 140px; /* account for stacked header + content spacing */
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    header .logo img {
        width: 48px;
        height: 48px;
    }
    header .logo h1 {
        font-size: 16px;
    }
    header .nav-bar nav a {
        font-size: 14px;
        padding: 6px 8px;
    }

    main {
        margin-top: 130px;
    }
}


