/* Rajdhani Matka Scraper - style.css v2.2 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ── Wrapper ─────────────────────────────────────────── */
.rajdhani-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 8px 32px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* ── Day block ───────────────────────────────────────── */
.rajdhani-day-block {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: 1px solid #e5e7eb;
    background: #fff;
}

/* ── Date header ─────────────────────────────────────── */
.rajdhani-date-header {
    background: #22c55e;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    padding: 13px 10px;
    letter-spacing: 0.4px;
}

/* ── Tables wrap — side by side on desktop ───────────── */
.rajdhani-tables-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* ── Each split table takes half the width ───────────── */
.rajdhani-split-table {
    width: 50%;
    border-collapse: collapse;
    table-layout: fixed;
}

.rajdhani-split-table:first-child {
    border-right: 2px solid #e5e7eb;
}

/* Time slot header row */
.rajdhani-split-table tr:nth-child(1) th,
.rajdhani-split-table tr:nth-child(1) td {
    background: #f3f4f6 !important;
    color: #666 !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    padding: 9px 4px;
    border-bottom: 1px solid #e5e7eb !important;
    border-right: 1px solid #ececec !important;
    white-space: nowrap;
}
.rajdhani-split-table tr:nth-child(1) th:last-child,
.rajdhani-split-table tr:nth-child(1) td:last-child {
    border-right: none !important;
}

/* 3-digit results row */
.rajdhani-split-table tr:nth-child(2) td {
    background: #fff !important;
    color: #111 !important;
    font-weight: 800;
    font-size: 1.25rem;
    text-align: center;
    padding: 16px 4px 8px;
    border: none !important;
    border-right: 1px solid #f0f0f0 !important;
}
.rajdhani-split-table tr:nth-child(2) td:last-child {
    border-right: none !important;
}

/* Single digit row */
.rajdhani-split-table tr:nth-child(3) td {
    background: #fff !important;
    color: #555 !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    padding: 4px 4px 16px;
    border: none !important;
    border-top: 1px solid #f3f4f6 !important;
    border-right: 1px solid #f0f0f0 !important;
}
.rajdhani-split-table tr:nth-child(3) td:last-child {
    border-right: none !important;
}

/* ── Links disabled ──────────────────────────────────── */
.rajdhani-container a {
    pointer-events: none;
    text-decoration: none;
    color: inherit;
}

/* ── Error box ───────────────────────────────────────── */
.rajdh-error-box {
    background: #fff8f0;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 20px 24px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin: 16px 0;
}
.rajdh-error-box p { color: #92400e; margin: 0 0 8px; font-size: 0.95rem; }
.rajdh-error-box button {
    margin-top: 10px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}
.rajdh-error-box button:hover { background: #16a34a; }

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 600px) {

    .rajdhani-container {
        padding: 6px 4px 20px;
    }

    .rajdhani-date-header {
        font-size: 0.88rem;
        padding: 12px 8px;
    }

    /* Stack the two tables vertically on mobile */
    .rajdhani-tables-wrap {
        flex-direction: column;
    }

    .rajdhani-split-table {
        width: 100%;
    }

    .rajdhani-split-table:first-child {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
    }

    /* Time header */
    .rajdhani-split-table tr:nth-child(1) th,
    .rajdhani-split-table tr:nth-child(1) td {
        font-size: 0.72rem;
        padding: 8px 4px;
        white-space: normal;
        word-break: break-word;
    }

    /* 3-digit numbers — big and readable */
    .rajdhani-split-table tr:nth-child(2) td {
        font-size: 1.1rem;
        padding: 14px 4px 6px;
    }

    /* Single digit */
    .rajdhani-split-table tr:nth-child(3) td {
        font-size: 0.9rem;
        padding: 4px 4px 14px;
    }
}