/* CSS khusus untuk halaman Analisis Togel */

/* Container utama dengan max-width konsisten */
.analisis-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 20px;
}

.analisis-header {
    text-align: center;
    color: #ffd700;
    margin: 20px 0;
}

/* Filter container */
.filter-container {
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 10px 15px;
}

.pasaran-container {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    text-align: center;
}

.pasaran-container::after {
    content: "";
    display: block;
    height: 1px;
    width: 80%;
    max-width: 400px;
    background: linear-gradient(to right, transparent, rgba(255,215,154,0.3), transparent);
    margin: 15px auto 5px;
}

/* Filter select */
.filter-select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background-color: #3e2a0e;
    color: #ffd79a;
    border: 1px solid #5e4a2e;
    border-radius: 4px;
    cursor: pointer;
}

/* Tab Menu */
.tab-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 10px auto 15px;
    max-width: 1200px;
}

.tab-item {
    flex: 1;
    min-width: 80px;
    padding: 12px 10px;
    text-align: center;
    background-color: #3e2a0e;
    color: #ffd79a;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tab-item:hover {
    background-color: #5e4a2e;
}

.tab-item.active {
    background-color: #ffd700;
    color: #201505;
}

/* Subtab Menu */
.subtab-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 auto 15px;
    max-width: 1200px;
}

.subtab-item {
    flex: 1;
    min-width: 70px;
    padding: 10px;
    text-align: center;
    background-color: #3e2a0e;
    color: #ffd79a;
    text-decoration: none;
    border-radius: 4px;
}

.subtab-item.active {
    background-color: #ffd700;
    color: #201505;
}

/* Table Wrapper dengan max-width konsisten */
.table-wrapper {
    max-width: 1200px;
    margin: 0 auto 20px;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #3e2a0e;
    background: rgba(255,255,255,0.03);
}

/* Analysis Table */
.analysis-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.analysis-table th {
    padding: 12px 8px;
    background-color: #3e2a0e;
    color: #ffd700;
    font-weight: bold;
    border-bottom: 2px solid #201505;
    position: sticky;
    top: 0;
    z-index: 10;
}

.analysis-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #3e2a0e;
}

.analysis-table tr:nth-child(odd) {
    background-color: rgba(62, 42, 14, 0.3);
}

.analysis-table tr:hover td {
    background: rgba(255,215,0,0.03);
}

/* Indicator styling */
.indicator {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: #3e2a0e;
    color: #ffd79a;
    font-weight: bold;
    margin: 0 2px;
}

.indicator.active {
    background-color: #ffd700;
    color: #201505;
}

/* Result styling */
.result {
    font-weight: bold;
    font-size: 16px;
    color: #ffd700;
}

/* Styling untuk Colok-Jitu */
.colok-table th:nth-child(n+5),
.colok-table td:nth-child(n+5) {
    width: 5.8% !important;
}

/* Styling untuk hasil analisis */
.besar-text {
    color: #ffd700;
    font-weight: bold;
}

.kecil-text {
    color: #00bfff;
    font-weight: bold;
}

.ganjil-text {
    color: #ff6347;
    font-weight: bold;
}

.genap-text {
    color: #32cd32;
    font-weight: bold;
}

.kembang-text {
    color: #ff9900;
    font-weight: bold;
}

.kempis-text {
    color: #9370db;
    font-weight: bold;
}

.kembar-text {
    color: #ff69b4;
    font-weight: bold;
}

.silang-text {
    color: #20b2aa;
    font-weight: bold;
}

.homo-text {
    color: #da70d6;
    font-weight: bold;
}

.tengah-text {
    color: #1e90ff;
    font-weight: bold;
}

.tepi-text {
    color: #ff4500;
    font-weight: bold;
}

.shio-text {
    color: #ffd700;
    font-weight: bold;
}

/* PERBAIKAN Z-INDEX UNTUK MOBILE NAVIGATION */
@media (max-width: 900px) {
    /* Turunkan z-index filter elements saat mobile */
    .filter-container {
        position: relative !important;
        z-index: 100 !important;
    }
    
    .pasaran-container {
        z-index: 100 !important;
    }
    
    .filter-select {
        z-index: 100 !important;
    }
    
    /* Sembunyikan filter saat menu mobile terbuka */
    body.menu-open .filter-container {
        visibility: hidden !important;
    }
    
    body.menu-open .pasaran-container {
        visibility: hidden !important;
    }
    
    /* Turunkan z-index content saat menu terbuka */
    body.menu-open .analisis-container {
        z-index: 50 !important;
    }
    
    body.menu-open .tab-menu {
        z-index: 50 !important;
    }
    
    body.menu-open .subtab-menu {
        z-index: 50 !important;
    }
    
    body.menu-open .table-wrapper {
        z-index: 50 !important;
    }
}

/* Mobile Responsive untuk Analisis */
@media (max-width: 768px) {
    .analisis-container {
        padding: 0 10px 10px;
    }
    
    .filter-container {
        padding: 10px;
        position: relative !important;
        z-index: 100 !important;
    }
    
    .tab-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin: 10px 0 15px;
    }
    
    .tab-item {
        min-width: 70px;
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .subtab-menu {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        margin: 0 0 15px;
    }
    
    .section-subtab-menu {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .subtab-item {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .analysis-table th,
    .analysis-table td {
        padding: 8px 3px;
        font-size: 11px;
    }
}

/* Layar sangat kecil */
@media (max-width: 414px) {
    .analysis-table {
        font-size: 9px;
    }
    
    .analysis-table th {
        padding: 8px 2px;
        font-size: 9px;
    }
    
    .analysis-table td {
        padding: 6px 2px;
    }
    
    .colok-table th,
    .colok-table td {
        padding: 4px 1px;
        font-size: 9px;
    }
    
    .colok-table .indicator {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 9px;
    }
}