
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
    line-height: 1.4;
}

.top-black-bar {
    background-color: #111;
    color: #fff;
    padding: 8px 0;
}
.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #ffcc00;
}
.top-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    margin-left: 10px;
}

.main-nav {
    background-color: #ff5722;
    padding: 6px 0;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
}
.btn-yellow {
    background-color: #ffeb3b;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 5px;
}

.wrapper {
    max-width: 1200px;
    margin: 12px auto;
    display: flex;
    gap: 12px;
    padding: 0 5px;
}

.sidebar-left {
    width: 200px;
    flex-shrink: 0;
}
.sidebar-right {
    width: 260px;
    flex-shrink: 0;
}
.main-content {
    flex-grow: 1;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    min-width: 0;
}


.widget-box {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}
.widget-box.no-padding {
    padding: 0;
}
.widget-header-red {
    background-color: #cb0506;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 10px;
}
.widget-header-black {
    background-color: #000;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 10px;
}
.widget-menu {
    list-style: none;
}
.widget-menu li {
    border-bottom: 1px solid #eee;
    padding: 6px 10px;
    font-size: 12px;
}
.widget-menu li a {
    color: #333;
    text-decoration: none;
}
.grid-2-col {
    display: flex;
    flex-wrap: wrap;
}
.grid-2-col li {
    width: 50%;
}


.section-header-red {
    background: linear-gradient(to right, #cb0506, #880000);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px 3px 0 0;
}
.site-tag {
    font-size: 12px;
    font-weight: normal;
}
.margin-top-15 {
    margin-top: 15px;
}
.text-info-box {
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 13px;
    background-color: #fafafa;
}

.lottery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    color: #000;
}
.lottery-table th, .lottery-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    background-color: #fff;
    font-weight: bold;
}
.lottery-table td {
    width: 100px;
}
.hide-header thead {
    display: none;
}
#resultDB, #resultG7_1, #resultG7_2, #resultG7_3, #resultG7_4,
#resultDNew, #resultG7_1New, #resultG7_2New, #resultG7_3New, #resultG7_4New {
    color: red;
    font-weight: 800;
    font-size: 22px;
}
#resultG1, #resultG1New {
    color: #000;
    font-weight: 800;
    font-size: 20px;
}


.custom-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.custom-table {
    width: 49%;
    border-collapse: collapse;
}
.custom-table th, .custom-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
    background-color: #fff;
    font-size: 13px;
}
.custom-table th {
    background-color: #CB0506;
    color: #fff;
    font-weight: bold;
}
.custom-table td span {
    color: red;
    font-weight: bold;
}

 
#datePickerNew {
    padding: 8px;
    font-size: 14px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    width: 100%;
    margin-bottom: 8px;
    margin-top: 8px;
}

.loading, .loading-new {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top: 2px solid red;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.article-box {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}
.article-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
}
.article-img, .full-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 5px 0;
}

@media (max-width: 900px) {
    .wrapper { flex-direction: column; }
    .sidebar-left, .sidebar-right { width: 100%; }
}