/* Custom styles for result_display.html and other pages */

html.dark #main-result, html.dark #main-result h1, html.dark #main-result th, html.dark #main-result td, html.dark #main-result div, html.dark #main-result span {
    color: #f3f4f6 !important;
}
html.dark #main-result { background: #18181b !important; }
html.dark .search-form, html.dark .search-form input, html.dark .search-form button {
    background: #27272a !important;
    color: #f3f4f6 !important;
    border-color: #52525b !important;
}
table, th, td {
    border-left: 1px solid #cccccc;
    color: #000000;
    padding: 8px 8px;
    text-align: left;
    vertical-align: middle;
    cursor: pointer;
}
.highlight-number {
    background: #facc15 !important;
    color: #b91c1c !important;
    border-radius: 4px;
}
html.dark .highlight-number {
    background: #2563eb !important; /* blue-600 */
    color: #fff !important;
}
html.dark body { background: #18181b !important; }
html.dark #main-container { background: #18181b !important; }
html.dark table, html.dark th, html.dark td { color: #f3f4f6 !important; }

#main-result {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

#date-search-bar {
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 12px 0;
    background: #fff;
    display: flex;
    justify-content: center;
}
.date-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    justify-content: center;
    width: 100%;
}
.chosen-text {
    font-size: 14px;
    margin-right: 8px;
}
.btn-select-lottery {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 20px 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    position: relative;
    cursor: pointer;
}
.btn-select-lottery::after {
    content: '\25BC';
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #111;
}
.items-container {
    display: flex;
    align-items: center;
}
.items {
    display: flex;
    gap: 6px;
}
.item {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 13px 8px 13px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}
.item:after {
    padding: 8px 18px 8px 13px;
}
.item:hover {
    background: #b1d3e7;
    color: #0000ff;
}
.item.active {
    background: #e5e5e5;
    color: #0047ff;
    border: 1px solid #e5e5e5;
}
.item.active::before {
    content: '\2713';
    color: #0047ff;
    font-size: 14px;
    margin-right: 5px;
}
.item.date-choosen {
    position: relative;
}
.item.date-choosen.down-triangle-symbol::after {
    content: '\25BC';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #111;
}
/* Style for block-lottery-today */
.block-lottery-today {
    background: #fcf7e8;
    border-radius: 8px;
    padding-top: 10px;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.block-lottery-today .caption {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}
.block-lottery-today .tbldata {
    width: 100%;
    border-spacing: 0;
    background: #fff;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
}
.block-lottery-today .tbldata td {
    padding: 18px 12px;
    vertical-align: top;
    font-size: 1.25rem;
    background: #fff;
}
.block-lottery-today .tbldata tr:hover td {
    background: #ffffcf !important;
    transition: background 0.2s;
}
.block-lottery-today .tbldata .tr-header td {
    font-weight: bold;
    font-size: 1rem;
    color: #0000ff;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
}
.block-lottery-today a {
    display: block;
    color: #0026c7;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.2s;
    text-align: center;
}
.block-lottery-today a:hover {
    color: #0047ff;
    text-decoration: underline;
}
.block-lottery-today a::before {
    content: '• ';
    color: #0026c7;
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 2px;
}

#table-container table tr:hover td {
    background: #ffffcf !important;
    transition: background 0.2s;
}
#lotteryOptions {
    max-height: 220px; /* 5 option x 44px (padding + line-height) */
    overflow-y: auto;
}
#lotteryOptions .option {
    padding:8px 16px;
    cursor:pointer;
    transition: background 0.2s, color 0.2s;
}
#lotteryOptions .option:hover {
    background: #e0f7fa;
    color: #00796b;
}
#table-container table {
    border-bottom: none !important;
}