/* Retro Design for Rocky Satta Matka - Refined */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&display=swap');

body.retro-theme {
    background-color: #000;
    /* Main background remains black as per previous context, but table is white */
    color: #fff;
    font-family: 'Times New Roman', serif;
    margin: 0;
    padding: 0;
}

.retro-container {
    background-color: #fff;
    /* Container white to match the chart area */
    border: 2px solid #0000ff;
    /* Blue Default */
    max-width: 900px;
    margin: 0 auto;
}

.retro-container.purple-theme {
    border: 2px solid #800080;
    /* Purple Border */
}

.retro-header,
.retro-footer {
    background-color: #000;
    color: #fff;
    text-align: center;
}

/* Table container */
.retro-table-container {
    background-color: #fff;
    overflow-x: auto;
}

table.retro-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000;
    background-color: #fff;
    font-family: 'Times New Roman', serif;
}

table.retro-table th {
    background-color: #ffe4e1;
    /* MistyRose */
    color: #000080;
    /* Dark Blue */
    font-size: 1.2rem;
    border: 1px solid #000;
    padding: 5px;
}

table.retro-table td {
    border: 1px solid #000;
    padding: 0;
    /* Important: Padding 0 to let inner tables fill the cell */
    vertical-align: top;
    color: #000;
}

/* Week Column Style */
td.week-col {
    padding: 5px !important;
    font-size: 1.0rem;
    font-weight: bold;
    text-align: center;
    vertical-align: middle !important;
    width: 80px;
    line-height: 1.4;
    font-style: italic;
}

/* Inner Cell Layout (The Panna-Jodi-Panna structure) */
.inner-table {
    width: 100%;
    border-collapse: collapse;
    height: 100%;
}

.inner-table td {
    border: none;
    /* Reset default cell borders */
    text-align: center;
    padding: 0;
    vertical-align: top;
}

/* Left and Right Panna Columns */
.panna-col {
    width: 25%;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
    padding-top: 2px !important;
}

/* Borders separating Panna from Jodi */
.border-right {
    border-right: 1px solid #000 !important;
}

.border-left {
    border-left: 1px solid #000 !important;
}

/* Center Jodi Column */
.jodi-col {
    width: 50%;
    font-size: 1.8rem;
    /* Large Jodi */
    font-weight: 900;
    vertical-align: middle !important;
    line-height: 1;
    font-style: italic;

    /* The Yellow Shadow Effect */
    text-shadow: 2px 2px 0px #ffff00, -1px -1px 0 #fff;
}

/* Red Jodi Color */
.text-red {
    color: #ff0000 !important;
}

/* Black Jodi Color */
.text-black {
    color: #000000 !important;
}

/* Panna Digits */
.panna-digit {
    display: block;
}

/* Navigation Buttons */
.nav-buttons {
    background-color: #000;
    padding: 5px;
    text-align: center;
}

.btn-retro {
    background-color: #ffff00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #000;
}