.ti-cauloto-container {
}

.ti-cauloto-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 10px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: white;
    display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
}

.form-row {
    display: inline-block;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row select {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 150px;
}
.form-row select option {
    color: #333;
}
.ti-btn-cauloto {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.ti-btn-cauloto:hover {
    background: #8f3e20;
}

#ti-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.ti-cauloto-summary {
    margin-bottom: 30px;
}

#ti-cauloto-list {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    margin-bottom: 10px;
}
.cauloto-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cauloto-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.cauloto-item:hover {
    border-color: #f6a33b;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}
.cauloto-item:hover::before {
    transform: scaleX(1);
}
.cauloto-pair {
    font-size: 24px;
    text-align: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: 600;
    display: flex;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    align-items: center;
    justify-content: center;
}

.cauloto-info {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.cauloto-count {
    color: #a72828;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.ti-cauloto-detail {
    background: #f8f9fa;
    border-radius: 8px;
    padding:10px;
    margin-top: 20px;
}

.detail-day {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.detail-header {
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.digits-display {
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    word-break: break-all;
}

.highlight-digit {
    background: #ffc107;
    color: #000;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

.found-results {
    margin-top: 10px;
}

.found-item {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 8px;
    margin: 5px 0;
    font-size: 14px;
}

.ti-cauloto-note {
    margin: 20px 0;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    
    .form-row {
        display: block;
        margin-right: 0;
    }
    
    .ti-btn-cauloto {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .ti-cauloto-list {
        grid-template-columns: 1fr;
    }
}

/* Thêm vào cuối file */

/* Styling cho phần ngày tiếp theo */
.next-day-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.next-day-table {
    margin-top: 10px;
}

/* Styling cho số trùng khớp */
.matched-number {
    background-color: #28a745;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    cursor: help;
}
.highlight-position {
    background: #ff6b6b;
    color:#fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    cursor: help;
}
/* Thông tin trùng khớp */
.match-info {
    padding: 10px;
}

.match-info.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.match-info.no-match {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.match-info ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

.match-info li {
    margin: 0 !important;
}


/* Bảng kết quả gộp */
.combined-lottery-table-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.table-legend {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.highlight-position-demo {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 2px;
}

.matched-number-demo {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #51cf66;
    border-radius: 2px;
}

.combined-table {
    margin: 0 !important;
    border-radius: 0 !important;
}

.combined-table thead th {
    color: white;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #bdc3c7;
}

.giải-col {
    /*width: 60px;*/
    /*min-width: 60px;*/
}

.current-day-col {
    background: #3498db !important;
    position: relative;
}
.current-day-col div, .next-day-col  div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.current-day-col .note, .next-day-col .note {
    font-size:9px;
}
.next-day-col {
    background: #27ae60 !important;
    position: relative;
}

.combined-table .current-day {
    background: rgba(52, 152, 219, 0.1);
    border-right: 2px solid #3498db;
}

.combined-table .next-day {
    background: rgba(39, 174, 96, 0.1);
}

.combined-table .txt-giai {
    background: #ecf0f1;
    font-weight: bold;
    text-align: center;
    padding: 6px;
    border: 1px solid #bdc3c7;
}

.combined-table .v-giai {
    padding: 6px;
    text-align: center;
    border: 1px solid #bdc3c7;
}

.combined-table .db .txt-giai {
    background: #e74c3c;
    color: white;
}

.combined-table .db .v-giai {
    color: red;
    font-size: 24px;
    font-weight: 600;
}

.combined-table .bg_ef .txt-giai {
}

/* Responsive cho bảng gộp */
@media (max-width: 768px) {
    .combined-table {
        font-size: 12px;
    }
    
    .combined-table .v-giai {
        padding: 6px 4px;
    }
    
    .table-legend {
        padding: 8px 10px;
        gap: 15px;
    }
    
    .legend-item {
        font-size: 11px;
    }
    
    .current-day-col::after,
    .next-day-col::after {
        font-size: 8px;
    }
}

.detail-item {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.detail-item h4 {
    color: #007cba;
    margin-bottom: 10px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 5px;
}