/* XSMB Core Styling - Matching xoso.com.vn & Flatsome Theme */

.xsmb-wrapper {
    font-family: Arial, Roboto, sans-serif;
    color: #222;
    background: #fff;
    max-width: 100%;
    margin: 0 auto;
}

/* Nav Panel (Days of Week) */
.xsmb-nav-panel {
    display: table;
    width: 100%;
    list-style: none;
    margin: 0 0 15px 0;
    padding: 0;
    border-bottom: 2px solid #ed1c25;
    background: #f8f9fa;
}

.xsmb-nav-panel li {
    display: table-cell;
    text-align: center;
    font-size: 14px;
    border-left: 1px solid #dddfe2;
    vertical-align: middle;
}

.xsmb-nav-panel li:first-child {
    border-left: none;
}

.xsmb-nav-panel a.xsmb-tab-link {
    display: block;
    padding: 10px 4px;
    color: #222;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.xsmb-nav-panel a.xsmb-tab-link:hover,
.xsmb-nav-panel a.xsmb-tab-link.active {
    color: #fff;
    background: #ed1c25;
}

.p-xs { display: block; }
.m-xs { display: none; }

@media (max-width: 768px) {
    .p-xs { display: none; }
    .m-xs { display: block; }
}

/* Section Container */
.xsmb-section {
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.xsmb-section-header {
    background: #f4f4f4;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.xsmb-title {
    font-size: 17px;
    font-weight: 800;
    color: #d90429;
    margin: 0;
    text-transform: uppercase;
}

.xsmb-site-link {
    font-size: 13px;
    color: #555;
}

.xsmb-site-link a {
    color: #d90429;
    text-decoration: none;
    margin-right: 5px;
    font-weight: bold;
}

.xsmb-site-link a:hover {
    text-decoration: underline;
}

/* Result Table */
.xsmb-table-result {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.xsmb-table-result td,
.xsmb-table-result th {
    border: 1px solid #e2e2e2;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
}

.name-prize {
    width: 12%;
    background: #f8f9fa;
    font-weight: bold;
    color: #444;
    font-size: 14px;
}

.name-prize.red-label {
    color: #d90429;
    font-size: 15px;
    font-weight: 800;
}

.number-prize {
    width: 88%;
}

.special-prize {
    font-size: 32px;
    font-weight: 900;
    color: #d90429;
    letter-spacing: 3px;
}

.prize1 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    letter-spacing: 1px;
}

.prize-row {
    display: grid;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.prize-row span {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
}

.red-prizes span {
    color: #d90429;
}

/* Code DB Badges */
.xsmb-code-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.code-DB6 {
    background: #eef2f5;
    color: #1a252f;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #dcdfe3;
}

/* Loto Table */
.xsmb-section-loto {
    margin-top: 15px;
    padding: 0 10px 10px 10px;
}

.xsmb-loto-title {
    font-size: 14px;
    font-weight: bold;
    color: #d90429;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.xsmb-table-loto {
    width: 100%;
    border-collapse: collapse;
}

.xsmb-table-loto th,
.xsmb-table-loto td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 14px;
    text-align: center;
}

.xsmb-table-loto thead th {
    background: #f1f1f1;
    font-weight: bold;
}

.loto-num-col {
    background: #f8f9fa;
    width: 10%;
    font-weight: bold;
    color: #d90429;
}

.red-bold {
    color: #d90429;
    font-weight: bold;
}

/* Load More Button Styling - Exact Competitor Red Pill */
.xsmb-load-more-wrap {
    text-align: center;
    margin: 25px 0 35px 0;
}

.xsmb-btn-load-more {
    background: #ed1c25;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(237, 28, 37, 0.35);
    transition: all 0.25s ease;
    display: inline-block;
    outline: none;
}

.xsmb-btn-load-more:hover {
    background: #c80505;
    box-shadow: 0 6px 16px rgba(200, 5, 5, 0.5);
    transform: translateY(-2px);
}

.xsmb-btn-load-more:disabled {
    background: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Date Filter Box Sidebar */
.xsmb-date-filter-box {
    background: #fdfdfd;
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.xsmb-filter-title {
    font-size: 16px;
    font-weight: bold;
    color: #d90429;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #d90429;
    padding-bottom: 5px;
}

.xsmb-date-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xsmb-date-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.xsmb-date-link {
    color: #2b6cb0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.xsmb-date-link:hover {
    color: #d90429;
    text-decoration: underline;
}
