* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f6f8;
}

/* HEADER */

.header {
    width: 100%;
    height: 75px;
    background-color: #071a33;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;
}

/* LOGO */

.logo {
    color: white;
    font-size: 25px;
    font-weight: bold;
}

/* NAVIGATION */

.navbar {
    display: flex;
    gap: 32px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.navbar a:hover {
    color: #f4b942;
}
/* NOTICE BAR */

.notice-bar {
    margin: 15px 25px 0;
    min-height: 52px;
    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 7px;

    display: flex;
    align-items: center;

    padding: 7px 10px;
}

.notice-title {
    background-color: #e91f2b;
    color: white;

    padding: 10px 20px;
    border-radius: 5px;

    font-size: 15px;
    font-weight: bold;
}

.notice-text {
    margin-left: 15px;
    font-size: 15px;
    color: #222222;
}

.notice-time {
    margin-left: auto;

    color: #e91f2b;
    font-size: 15px;
    font-weight: bold;

    padding-right: 10px;
}
/* RESULT CARDS */

.result-section {
    margin: 18px 25px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.result-card {
    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 8px;

    text-align: center;
    overflow: hidden;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-title {
    background-color: #071a33;
    color: white;

    padding: 11px;

    font-size: 16px;
    font-weight: bold;
}

.card-time {
    margin-top: 12px;

    color: #777777;
    font-size: 14px;
}

.card-number {
    margin: 8px 0;

    color: #e91f2b;
    font-size: 38px;
    font-weight: bold;
}

.card-status {
    background-color: #f5f6f8;

    padding: 9px;

    color: #555555;
    font-size: 13px;
}
/* TODAY HIGHLIGHT RESULT */

.highlight-section {
    margin: 20px 25px;

    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.highlight-heading {
    background-color: #071a33;
    color: white;

    text-align: center;

    padding: 12px;

    font-size: 17px;
    font-weight: bold;
}

.highlight-content {
    text-align: center;

    padding: 22px 15px;
}

.highlight-name {
    color: #071a33;

    font-size: 20px;
    font-weight: bold;
}

.highlight-time {
    margin-top: 5px;

    color: #777777;
    font-size: 14px;
}

.highlight-number {
    margin: 8px 0;

    color: #e91f2b;

    font-size: 65px;
    font-weight: bold;
    line-height: 1;
}

.highlight-date {
    color: #555555;
    font-size: 14px;
}
/* RESULT CHART */

.chart-section {
    margin: 20px 25px;

    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.chart-heading {
    background-color: #071a33;
    color: white;

    padding: 12px;

    text-align: center;
    font-size: 17px;
    font-weight: bold;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.result-table th {
    background-color: #f0f2f5;
    color: #071a33;

    padding: 13px 8px;

    border: 1px solid #dddddd;
    font-size: 14px;
}

.result-table td {
    padding: 13px 8px;

    border: 1px solid #dddddd;

    color: #333333;
    font-size: 15px;
    font-weight: bold;
}

.result-table td:first-child {
    color: #071a33;
    background-color: #f8f9fa;
}

.result-table tbody tr:hover {
    background-color: #fff7e6;
}
/* RESULT FILTER */

.filter-section {
    margin: 20px 25px;

    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.filter-title {
    background-color: #071a33;
    color: white;

    padding: 12px;

    text-align: center;
    font-size: 17px;
    font-weight: bold;
}

.filter-box {
    padding: 20px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    gap: 15px;
}

.filter-item {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.filter-item label {
    color: #333333;

    font-size: 14px;
    font-weight: bold;
}

.filter-item select {
    width: 180px;

    padding: 11px;

    border: 1px solid #cccccc;
    border-radius: 5px;

    background-color: white;
    font-size: 14px;

    outline: none;
}

.search-button {
    padding: 11px 22px;

    border: none;
    border-radius: 5px;

    background-color: #e91f2b;
    color: white;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}

.search-button:hover {
    background-color: #c91520;
}
/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    /* HEADER */

    .header {
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .navbar {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .navbar a {
        font-size: 14px;
    }


    /* NOTICE BAR */

    .notice-bar {
        margin: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;

        text-align: center;
    }

    .notice-title {
        padding: 8px;
    }

    .notice-text {
        margin-left: 0;
        font-size: 13px;
    }

    .notice-time {
        margin-left: 0;
        padding-right: 0;
        font-size: 13px;
    }


    /* RESULT CARDS */

    .result-section {
        margin: 15px 10px;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-number {
        font-size: 32px;
    }


    /* HIGHLIGHT */

    .highlight-section {
        margin: 15px 10px;
    }

    .highlight-number {
        font-size: 55px;
    }


    /* FILTER */

    .filter-section {
        margin: 15px 10px;
    }

    .filter-box {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item select {
        width: 100%;
    }

    .search-button {
        width: 100%;
    }


    /* RESULT CHART */

    .chart-section {
        margin: 15px 10px;
    }

    .result-table {
        min-width: 650px;
    }

}
/* =========================
   ADMIN PANEL
========================= */

.admin-section {
    width: 90%;
    max-width: 650px;

    margin: 50px auto;

    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}


/* ADMIN HEADING */

.admin-heading {
    background-color: #071a33;
    color: white;

    padding: 15px;

    text-align: center;

    font-size: 18px;
    font-weight: bold;
}


/* ADMIN FORM */

.admin-form {
    padding: 30px;
}


/* FORM FIELD */

.admin-field {
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.admin-field label {
    color: #333333;

    font-size: 14px;
    font-weight: bold;
}


/* SELECT AND INPUT */

.admin-field select,
.admin-field input {
    width: 100%;

    padding: 12px;

    border: 1px solid #cccccc;
    border-radius: 6px;

    background-color: white;

    font-size: 15px;

    outline: none;
}

.admin-field select:focus,
.admin-field input:focus {
    border-color: #071a33;
}


/* SAVE BUTTON */

.save-result-button {
    width: 100%;

    padding: 13px;

    border: none;
    border-radius: 6px;

    background-color: #e91f2b;
    color: white;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.save-result-button:hover {
    background-color: #c91520;
}


/* MESSAGE */

.admin-message {
    margin-top: 15px;

    text-align: center;

    font-size: 14px;
    font-weight: bold;
}
/* =========================
   RESULT HISTORY
========================= */

.history-section {
    width: 90%;
    max-width: 900px;

    margin: 30px auto 50px;

    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.history-heading {
    background-color: #071a33;
    color: white;

    padding: 14px;

    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.history-table-container {
    width: 100%;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.history-table th {
    background-color: #f0f2f5;
    color: #071a33;

    padding: 13px;

    border: 1px solid #dddddd;
}

.history-table td {
    padding: 13px;

    border: 1px solid #dddddd;

    color: #333333;
    font-weight: bold;
}
/* =========================
   LATEST RESULTS
========================= */

.latest-section {
    margin: 20px 25px 40px;

    background-color: white;
    border: 1px solid #dddddd;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.latest-heading {
    background-color: #071a33;
    color: white;

    padding: 13px;

    text-align: center;

    font-size: 17px;
    font-weight: bold;
}

.latest-table-container {
    width: 100%;
    overflow-x: auto;
}

.latest-table {
    width: 100%;

    border-collapse: collapse;
    text-align: center;
}

.latest-table th {
    background-color: #f0f2f5;
    color: #071a33;

    padding: 13px;

    border: 1px solid #dddddd;
}

.latest-table td {
    padding: 13px;

    border: 1px solid #dddddd;

    color: #333333;
}

.latest-table td:nth-child(2) {
    color: #e91f2b;

    font-size: 20px;
    font-weight: bold;
}

.latest-status {
    color: #16803c;
    font-weight: bold;
}
/* CHART DATE */

.chart-date {
    display: inline-block;

    min-width: 58px;

    padding: 5px 15px;

    background-color: #c4c9ff;
    color: #071a33;

    border-radius: 20px;

    font-weight: bold;
}
/* =========================
   MARKET MANAGEMENT
========================= */
.market-management-section {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    background-color: white;

    border: 1px solid #dddddd;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}


.market-management-form {
    padding: 25px;

    display: grid;

    grid-template-columns: 1fr 1fr auto;

    gap: 15px;

    align-items: end;
}


.add-market-button {
    height: 43px;

    padding: 0 25px;

    border: none;
    border-radius: 6px;

    background-color: #16803c;
    color: white;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}


.add-market-button:hover {
    background-color: #10652e;
}


/* MARKET TABLE */

.market-list-container {
    width: 100%;

    overflow-x: auto;
}


.market-list-table {
    width: 100%;

    border-collapse: collapse;

    text-align: center;
}


.market-list-table th {
    padding: 13px;

    background-color: #071a33;
    color: white;

    border: 1px solid #dddddd;
}


.market-list-table td {
    padding: 12px;

    border: 1px solid #dddddd;
}


/* EDIT BUTTON */

.edit-market-button {
    padding: 7px 15px;

    border: none;
    border-radius: 5px;

    background-color: #f0a500;
    color: white;

    font-weight: bold;

    cursor: pointer;

    margin-right: 5px;
}


/* DELETE BUTTON */

.delete-market-button {
    padding: 7px 15px;

    border: none;
    border-radius: 5px;

    background-color: #e91f2b;
    color: white;

    font-weight: bold;

    cursor: pointer;
}


/* MOBILE */

@media (max-width: 768px) {

    .market-management-form {
        grid-template-columns: 1fr;
    }

    .add-market-button {
        width: 100%;
    }

}
/* =========================
   ADMIN SIDEBAR
========================= */

.admin-sidebar {
    position: fixed;

    left: 0;
    top: 0;

    width: 250px;
    height: 100vh;

    background-color: #071a33;

    padding: 25px 15px;

    display: flex;
    flex-direction: column;
}


/* LOGO */

.admin-logo {
    color: white;

    font-size: 21px;
    font-weight: bold;

    text-align: center;

    padding-bottom: 25px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


/* MENU */

.admin-menu {
    margin-top: 25px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


.admin-menu-item {
    width: 100%;

    padding: 13px 15px;

    border: none;
    border-radius: 6px;

    background-color: transparent;
    color: #dce4ee;

    text-align: left;

    font-size: 15px;

    cursor: pointer;
}


.admin-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: white;
}


.admin-menu-item.active {
    background-color: #e91f2b;
    color: white;

    font-weight: bold;
}


/* VIEW WEBSITE */

.view-site-button {
    margin-top: auto;

    padding: 12px;

    background-color: white;
    color: #071a33;

    border-radius: 6px;

    text-decoration: none;
    text-align: center;

    font-weight: bold;
}

/* =========================================
   ADMIN MAIN LAYOUT
========================================= */

.admin-main {
    margin-left: 250px;
    padding: 25px;

    width: calc(100% - 250px);
    min-height: 100vh;

    display: block;
}


/* ALL ADMIN SECTIONS */

.admin-main .admin-page-section {
    display: none;

    position: static;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    transform: none;
}


/* SHOW SELECTED SECTION */

.admin-main .admin-page-section.active-section {
    display: block;
}


/* MARKET / RESULT / HISTORY */

.admin-main .market-management-section,
.admin-main .admin-section,
.admin-main .history-section,
.admin-main .dashboard-section {
    margin-top: 0;
}


/* =========================================
   MOBILE ADMIN
========================================= */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }


    /* SIDEBAR */

    .admin-sidebar {
        position: relative;

        width: 100%;
        height: auto;

        padding: 15px;
    }


    .admin-logo {
        padding: 5px 0 15px;

        text-align: center;
        font-size: 20px;
    }


    /* MENU */

    .admin-menu {
        margin-top: 15px;

        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }


    .admin-menu-item {
        padding: 11px 5px;

        text-align: center;
        font-size: 13px;
    }


    /* VIEW WEBSITE */

    .view-site-button {
        display: block;

        width: 100%;

        margin-top: 12px;
    }


    /* MAIN */

    .admin-main {
        margin-left: 0;

        width: 100%;
        min-height: auto;

        padding: 12px;
    }


    /* SECTIONS */

    .admin-main .admin-page-section {
        display: none;

        position: static;

        width: 100%;
        max-width: none;

        margin: 0;

        transform: none;
    }


    .admin-main .admin-page-section.active-section {
        display: block;
    }


    /* MARKET FORM */

    .market-management-form {
        padding: 15px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .add-market-button {
        width: 100%;
    }


    /* RESULT FORM */

    .admin-form {
        padding: 15px;
    }


    /* TABLE SCROLL */

    .market-list-container,
    .history-table-container {
        width: 100%;

        overflow-x: auto;
    }


    .market-list-table,
    .history-table {
        min-width: 550px;
    }

}
/* =========================================
   PUBLIC NOTICE BOX
========================================= */

.public-notice-box {
    width: 90%;
    max-width: 900px;

    margin: 30px auto;

    background-color: #ffffff;

    border: 1px solid #d9dee5;
    border-top: 5px solid #e91f2b;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 18px rgba(7, 26, 51, 0.12);

    text-align: center;
}


/* HEADING */

.public-notice-heading {
    background-color: #071a33;
    color: #ffffff;

    padding: 15px 20px;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.4;
}


/* MESSAGE */

.public-notice-message {
    padding: 22px 25px 15px;

    color: #263548;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.8;

    white-space: pre-line;
}


/* WHATSAPP BUTTON */

.public-whatsapp-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin: 5px 15px 22px;

    padding: 11px 22px;

    background-color: #25D366;
    color: #ffffff;

    border-radius: 7px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s;
}


.public-whatsapp-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}


/* WHATSAPP ICON */

.whatsapp-icon {
    width: 24px;
    height: 24px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.whatsapp-icon svg {
    width: 24px;
    height: 24px;
}


/* =========================================
   NOTICE BOX MOBILE
========================================= */

@media (max-width: 768px) {

    .public-notice-box {
        width: calc(100% - 24px);

        margin: 20px auto;

        border-radius: 8px;
    }


    .public-notice-heading {
        padding: 13px 12px;

        font-size: 17px;
    }


    .public-notice-message {
        padding: 17px 15px 12px;

        font-size: 14px;

        line-height: 1.7;
    }


    .public-whatsapp-button {
        width: calc(100% - 30px);

        margin: 5px 15px 18px;

        padding: 12px 10px;

        font-size: 14px;
    }

}
/* =========================================
   NOTICE STATUS
========================================= */

.notice-status-container {
    padding: 15px 20px;

    background-color: #f5f7fa;

    border-bottom: 1px solid #dddddd;

    display: flex;

    align-items: center;

    gap: 10px;
}


.notice-status-label {
    color: #071a33;

    font-size: 14px;
    font-weight: 700;
}


.notice-status {
    padding: 6px 12px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 800;
}


/* LIVE */

.notice-status.live {
    background-color: #e5f8eb;
    color: #16803c;
}


/* HIDDEN */

.notice-status.hidden {
    background-color: #fde8ea;
    color: #e91f2b;
}
.admin-logout-button {
    display: block;

    margin-top: 10px;
    padding: 11px 15px;

    background-color: #e91f2b;
    color: white;

    border-radius: 6px;

    text-align: center;
    text-decoration: none;

    font-size: 14px;
    font-weight: bold;
}


.admin-logout-button:hover {
    background-color: #c81722;
}