/* ===== FONT ===== */
@font-face {
    font-family: 'KhmerOSBattambang';
    src: url('/fonts/KhmerOSBattambang.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KhmerOSBattambang';
    src: url('/fonts/KhmerOSBattambang-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'KhmerOSBattambang', Arial, sans-serif;
    background: #ffffff;
    color: #222;
}

/* ===== PAGE ===== */
.lottery-page {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 12px;
}

/* ===== TITLE ===== */
.page-title {
    text-align: center;
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #222;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 20px;
}

.filter-bar input,
.filter-bar button {
    padding: 10px 16px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'KhmerOSBattambang';
    background: #fff;
}

.filter-bar input[disabled] {
    width: 180px;
    text-align: center;
    background: #f7f7f7;
    font-weight: bold;
}

.filter-bar button {
    cursor: pointer;
    font-weight: bold;
    background: #e9e9e9;
    color: #222;
}

.filter-bar button:hover {
    background: #ddd;
}

/* ===== RESULT CARD ===== */
.result-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

/* ===== DATE ===== */
.result-date-only {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    color: #222;
    background: #fafafa;
}

/* ===== TABLE ===== */
.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th,
.result-table td {
    border: 1px solid #ddd;
    padding: 14px;
    text-align: center;
    font-size: 16px;
}

/* HEADER */
.result-table th {
    background: #f2f2f2;
    font-weight: bold;
    color: #333;
}

/* BODY */
.result-table td {
    font-weight: normal;
    color: #222;
}

/* TIME */
.time-hour {
    font-weight: bold;
}

.time-ampm {
    font-weight: bold;
    margin-left: 4px;
}

/* ROW STYLE */
.result-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.result-table tbody tr:hover {
    background: #f0f0f0;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .page-title {
        font-size: 26px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar input,
    .filter-bar button {
        width: 100%;
    }

    .result-table th,
    .result-table td {
        padding: 10px;
        font-size: 15px;
    }
}
