/* File: assets/troy-lottery.css */

.troy-lottery-container  {
	max-width: 1000px;
	margin: 0 auto 30px auto;
	border-radius: 8px;
	padding: 20px;
	background: #fff;
}

/* Tiêu đề tỉnh */
.province-title {
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	color: #cc0000;
	margin-bottom: 15px;
	text-transform: uppercase;
}

.lottery-north-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.lottery-button {
    display: block;
    margin: 20px auto;
    padding: 2px 20px;
    font-size: 14px;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	height: 40px;
}

.lottery-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.lottery-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
	table-layout: fixed;
}

.lottery-table td, .lottery-table th {
    border: solid 1px #dddfe2;
    padding: 5px 5px !important;
    color: black;
    text-transform: inherit;
    letter-spacing: normal;
    font-size: 14px;
    font-weight: normal;
	text-align: center;
}

.lottery-table th {
	background-color: #f5f5f5;
}

.lottery-table tbody th {
	width: 60px;
}


.lottery-table tr:nth-of-type(2n) {
    background-color: #f0f8ff;
}

.lottery-table td {
	text-align: center;
	font-weight: bold;
	font-size: 20px !important;
	color: black;
}

.lottery-results #special, .lottery-results #eighth, td[data-prize="special"], td[data-prize="eighth"] {
    font-size: 26px !important;
    font-weight: bolder;
    color: #f44336 !important;
}

.lottery-table td:nth-child(2):hover {
    background-color: #fff4c3;
}

.display-options {
    margin: 0 !important;
    text-align: center;
    display: flex;
    background: #f1f1f1;
    padding: 12px 0 0;
}

.display-options label {
    margin: 0 15px;
    cursor: pointer;
}

.display-options input[type="radio"] {
    margin-right: 5px;
}

/* Styling cho grid số */
.number-compare {
    margin: 0;
}

.number-grid {
    display: flex;
    justify-content: center;
}

.number-cell {
    flex: 0 0 10%;
    height: 45px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.number-cell:hover {
    background-color: #f0f0f0;
}

.number-cell.highlighted {
    background-color: #ffeb3b;
    border-color: #fdd835;
}

.loto-section .title, .head-tail-section .title {
	background-color: #fff0c1;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
}

/* Styling cho số được highlight */
.lottery-table td .highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
}

.lottery-table .number .highlight {
    background-color: #ffeb3b;
    border-radius: 2px;
    padding: 0 2px;
}

.lottery-table .number {
    display: inline-block;
    padding: 2px 5px;
    margin: 0 3px;
    border-radius: 3px;
}

/* Styles cho bảng lô tô */
.loto-section {
    margin: 0px 0;
}

.loto-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    border-radius: 4px;
}

.loto-number {
    background: white;
    padding: 5px 10px;
    border: 1px solid #ddd;
    width: 10%;
	text-align: center;
	font-weight: bold;
}

/* Số đặc biệt màu đỏ */
.loto-number.special-number {
    color: #f44336;
    font-weight: bolder;
}

/* Số đặc biệt trong bảng đầu-đuôi */
.head-tail-table span.special-number {
    color: #f44336;
    font-weight: bolder;
}

/* Styles cho bảng đầu - đuôi */
.head-tail-section {
    margin: 30px 0;
}

.head-tail-section>div:nth-child(1) {
	font-weight: bold;
	text-align: center;
	font-size: 18px;
	margin-bottom: 10px;
}

.head-tail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
	table-layout: fixed;
}

.head-tail-table th:first-child {
	width: 60px;
	padding: 8px !important;
}
.head-tail-table th,
.head-tail-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.head-tail-table thead th {
    background-color: #fff0c1;
    font-weight: bold;
	text-transform: inherit;
}


/* Styles cho bảng xổ số miền Trung */
.lottery-central-container .lottery-table {
    width: 100%;
    margin-bottom: 20px;
}

.lottery-central-container .lottery-table th:first-child {
    width: 100px;
}

.lottery-central-container .lottery-table td {
    text-align: center;
}

.lottery-central-container .number {
    display: inline-block;
    padding: 2px 5px;
    margin: 2px;
    border-radius: 3px;
}

/* Styles cho bảng phân tích đầu số */
.head-analysis-section {
    margin-top: 30px;
}

.head-analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.head-analysis-table th,
.head-analysis-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: black;
}

.head-analysis-table th {
    background-color: #fff0c1;
    font-weight: bold;
}

/* Highlight styles */
.highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

/* ===== SELECT VÀ BUTTON CÙNG HÀNG ===== */
.troy-lottery-menu {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.troy-lottery-select {
    flex: 1;
    font-size: 16px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    margin-bottom: 0;
}

.troy-lottery-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

.troy-lottery-select option {
    padding: 10px;
}

/* Button trong menu (cùng hàng với select) */
.troy-lottery-menu .lottery-button {
    margin: 0;
    white-space: nowrap;
    height: 40px;
}

/* Styles cho tab panel ngày trong tuần */
.tab-panel {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-panel li {
    margin: 0 !important;
}

.tab-panel li a {
    display: block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
}

.tab-panel li a:hover {
    background: #f5f5f5;
    border-color: #cc0000;
}

.tab-panel li.active a {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

/* ===== STYLES CHO BẢNG NHIỀU TỈNH ===== */
.lottery-multi-table {
    width: 100%;
    border-collapse: collapse;
}

.lottery-multi-table th {
    background-color: #f5f5f5;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.lottery-multi-table thead th {
    font-size: 18px;
	font-weight: bold;
	padding: 10px 5px !important;
}

.lottery-multi-table th:first-child {
    width: 60px;
    font-size: 16px !important;
}

.lottery-multi-table .province-cell {
    text-align: center;
    vertical-align: middle;
}

#fourth .number-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    justify-content: center;
}

#fourth .number-wrap .number {
    width: calc(25% - 15px); /* 4 số hàng đầu */
    text-align: center;
}

#fourth .number-wrap .number:nth-child(n+5) {
    width: calc(33.33% - 15px); /* 3 số kế xuống hàng dưới */
}

#third .number-wrap, #fifth  .number-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    justify-content: center;
}

#third .number-wrap .number, #fifth .number-wrap .number {
    width: calc(33% - 15px); /* 4 số hàng đầu */
    text-align: center;
}

#third .number-wrap .number:nth-child(n+5), #fifth  .number-wrap .number:nth-child(n+5) {
    width: calc(33.33% - 15px); /* 3 số kế xuống hàng dưới */
}



.lottery-multi-table .province-cell .number {
    display: block;
    margin: 2px 0;
}


.lottery-multi-province-container .head-tail-table td {
    text-align: left;
    padding-left: 10px;
}

.list-unstyle {
    list-style: none outside none;
    margin: 0 0 0 0!important;
    padding: 0;
	columns: 1 !important;
    -webkit-columns: 1 !important;
	border: 1px solid #eee;
}

.list-dau-db li {
    padding: 8px 5px;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    float: left;
    text-align: center;
    width: 20%;
	margin: 0 !important;
	font-weight: bold;
}

.title-bor {
	background: #b00;
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 5px 0;
    margin: 5px 0 0;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
	.lottery-table tbody th {
		width: 40px;
	}
	
    .troy-lottery-container {
        padding: 15px;
    }
    
    .province-title {
        font-size: 20px;
    }
    
    .lottery-table td, .lottery-table th {
        padding: 5px !important;
        font-size: 13px;
    }
    
    .number-cell {
        font-size: 16px;
    }
    
    .loto-number {
        width: 20%;
    }
    
    .lottery-multi-table {
        font-size: 12px;
    }
    
    .lottery-multi-table th:first-child {
        width: 40px;
    }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .troy-lottery-container {
        padding: 15px;
    }
    
    .province-title {
        font-size: 20px;
    }
    
    .lottery-table td, .lottery-table th {
        padding: 5px !important;
        font-size: 13px;
    }
    
    .number-cell {
        font-size: 16px;
    }
    
    .loto-number {
        width: 20%;
    }
    
    .lottery-multi-table {
        font-size: 12px;
    }
    
    .lottery-multi-table th:first-child {
        width: 40px;
    }
	
	.lottery-table td {
		font-size: 18px;
	}
}


.loader {
    width: 15px;
    height: 15px;
    border: 2px solid #22a627;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 