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

header {
    background-color: #fff;
    text-align: center;
    border-bottom: 2px solid #0056a8;
}
.header-top {
    padding: 15px 0;
    background: #ffffff;
}
.logo-box {
    display: inline-block;
    background-color: #d9232d;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    padding: 8px 25px;
    letter-spacing: 1px;
    border-radius: 2px;
}
.nav-bar {
    background-color: #1b75ba;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.nav-bar a {
    color: #fff;
    text-decoration: none;
    margin: 0 6px;
    font-weight: bold;
}
.nav-bar a:hover {
    text-decoration: underline;
}


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


.sidebar {
    width: 250px;
    flex-shrink: 0;
}
.sidebar-box {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    border-radius: 3px;
    overflow: hidden;
}
.sidebar-box.no-padding {
    padding: 0;
}
.widget-title-blue {
    background-color: #1b75ba;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
}
.widget-title-red {
    background-color: #0072bc;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
    text-align: center;
}
.widget-content {
    padding: 10px;
    font-size: 12px;
}
.red-subtitle {
    background-color: #d9232d;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 3px;
    margin-bottom: 5px;
}
.jackpot-numbers {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 8px 0;
}
.jackpot-numbers span {
    border: 1px solid red;
    color: red;
    padding: 2px 6px;
    font-weight: bold;
}
.jackpot-prize {
    font-size: 11px;
    margin-top: 3px;
}
.jackpot-prize .price {
    color: red;
    font-weight: bold;
}
.sidebar-menu {
    list-style: none;
    padding: 5px 0;
}
.sidebar-menu li {
    padding: 5px 10px;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
}
.sidebar-menu li a {
    color: #333;
    text-decoration: none;
}
.sidebar-menu li a:hover {
    color: #1b75ba;
}
.sidebar-banner {
    width: 100%;
    height: auto;
    display: block;
}


.main-content {
    flex-grow: 1;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    min-width: 0;
}
.top-ad-banner {
    margin-bottom: 10px;
}
.full-width-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Table Styling */
.table-title-header {
    background-color: #1b75ba;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 8px;
    font-size: 16px;
}
.lottery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    color: #000;
    margin-bottom: 15px;
}
.lottery-table th, 
.lottery-table td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
    background-color: #fff;
    font-weight: bold;
}
.lottery-table td {
    width: 90px;
}
.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: 26px;
}
#resultG1, #resultG1New {
    color: #000000;
    font-weight: 800;
    font-size: 22px;
}

/* Middle Lottery Balls Section */
.lottery-container {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
}
.lottery-title {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}
.lottery-result-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
    position: relative;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.lottery-ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    font-size: 16px;
    color: #000;
    font-weight: bold;
    border: 1px solid #bbb;
}
.lottery-highlight {
    background-color: red;
    color: white;
    border-color: red;
}
.lottery-more-info {
    position: absolute;
    right: 0;
    background-color: #eee;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 12px;
    cursor: pointer;
}
.lottery-description {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Date Picker Styling */
#datePickerNew {
    padding: 6px;
    font-size: 15px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    width: 100%;
    margin-bottom: 10px;
}

/* Loading Spinners */
.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); }
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #ccc;
    padding: 15px 0;
    margin-top: 20px;
    text-align: center;
}
.footer-container {
    font-size: 12px;
    color: #666;
}
.footer-logos {
    display: inline-block;
    margin-left: 10px;
}
.logo-tag {
    border: 1px solid #ccc;
    padding: 2px 6px;
    margin: 0 2px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
}