/* ===================================
   TODAY'S RESULT SECTION
   =================================== */
.kff-today-only {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fde047;
    /* deep yellow */
    border-radius: 12px;
    overflow: hidden;
}

.kff-date-today {
    margin: 0;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: #dc2626;
    /* red */
    color: white;
    letter-spacing: 0.8px;
}

/* ===================================
   RESULT TABLE - Clean & Minimal
   =================================== */
.kff-result-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: white;
}

/* Table Header - Red */
.kff-result-table thead {
    background: #ffe166;
}

.kff-result-table th {
    width: 12.5%;
    color: #000000;
    /* padding: 12px 8px; */
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    border: 1px solid rgb(0 0 0 / 30%);
}



.kff-result-table th .time {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #000000;
    /* light yellow tint */
    margin-top: 5px;
}



/* Table Body - Three Digit Row */
.kff-result-table .three-digit td {
    background: #fff9db;
    /* deep yellow */
    color: #7c2d12;
    /* very dark red-brown â€” readable on bright yellow */
    padding: 10px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-right: 1px solid #d7d6d3;
    border-bottom: 1px solid #d7d5d2;
    height: 44px;
    vertical-align: middle;
    border-left: 1px solid #d7d6d3;
}



/* Table Body - Single Digit Row */
.kff-result-table .single-digit td {
    background: #fffaed;
    /* amber â€” slightly darker yellow for contrast */
    color: #431407;
    /* near-black dark brown, fully readable */
    /* padding: 14px 8px; */
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border-right: 1px solid #d5d5d5;
    border-bottom: 1px solid #c5c5c5;
    height: 35px;
    vertical-align: middle;
    border-left: 1px solid #d7d6d3;
}



/* Links in Table */
.kff-result-table a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 900;
}


/* ===================================
   REFRESH BUTTON
   =================================== */
.kff-refresh-btn {
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #991b1b;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kff-refresh-btn:hover {
    background: #b91c1c;
}

.kff-refresh-btn.kff-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
   OLD RESULTS CHART SECTION
   =================================== */
.kff-recent-chart {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
}

.chart-title {
    text-align: center;
    background: #dc2626;
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

/* Reason Text Styling */
.kff-reason-text {
    text-align: center;
    padding: 40px 20px;
    font-size: 22px;
    font-weight: bold;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 12px;
    margin: 20px auto;
}

/* Chart Block */
.kff-chart-block {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #fecaca;
}

.kff-chart-block h3 {
    margin: 0;
    background: #4f3030;
    color: white;
    font-size: 17px;
    font-weight: 700;
    padding: 12px;
    display: block;
    text-align: center;
}

/* ===================================
   ANIMATIONS - Only fadeIn kept if needed
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.chart-date {
    font-size: 16px;
    font-weight: 600;
    /* space before LIVE */
}

.live-text-blink {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b6b;
    display: inline-block;
    vertical-align: middle;
    animation: pulse-live-visible 2s ease-in-out infinite;
}

@keyframes pulse-live-visible {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(255, 107, 107, 0);
    }

    50% {
        opacity: 0.4;
        text-shadow: 0 0 8px rgba(255, 107, 107, 0.7);
    }
}


/* Date container for today chart â€” 3-column flex: LIVE | Date | Countdown */
/* Countdown bar — sits between the dark header and the result table */
.kff-countdown-bar {
    background: #f5f5f5;
    text-align: center;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.3px;
    height: 32px;
    line-height: 32px;
    overflow: hidden;
}

.kff-countdown-bar #kff-countdown:empty {
    display: none;
}

.date-live-container {
    background: #4f3030;
    padding: 10px 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Each column takes equal width so the date stays perfectly centered */
.date-live-container .kff-live-left,
.date-live-container .kff-date-center,
.date-live-container .kff-countdown-right {
    flex: 1;
}

.date-live-container .kff-live-left {
    text-align: left;
}

.date-live-container .kff-date-center {
    text-align: center;
}

.date-live-container .kff-countdown-right {
    text-align: right;
}

.date-live-container .chart-date {
    font-size: 17px;
    font-weight: 700;
    color: white;
}

/* Mobile (≤480px): switch to column layout — LIVE top, date center, countdown below */
@media (max-width: 480px) {
    .date-live-container {
        flex-direction: column;
        align-content: space-around;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 8px 10px;
        gap: 2px;
    }

    .date-live-container .kff-live-left,
    .date-live-container .kff-date-center,
    .date-live-container .kff-countdown-right {
        text-align: center;
        flex: unset;
        width: 100%;
    }

    .date-live-container .chart-date {
        font-size: 14px;
    }

    .date-live-container .kff-countdown-right,
    .date-live-container .live-text-blink {
        font-size: 12px;
    }
}


/* Tips mini button — in the 3-digit (patti) cell */
.three-digit .blink-tips {
    display: inline-block;
    padding: 1px 5px;
    background: #1a1a2e;
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
    font-size: 9px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #ffd700;
    animation: tipsPulse 1.8s ease-in-out infinite;
}

@keyframes tipsPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 6px 3px rgba(255, 215, 0, 0.25);
    }
}

/* ===================================
   MOBILE RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {


    .kff-date-today {
        font-size: 20px;
        padding: 12px;
    }

    .kff-result-table th {
        font-size: 13px;
        padding: 10px 4px;
    }

    .kff-result-table th .time {
        font-size: 7px;
    }

    .kff-result-table .three-digit td {
        font-size: 13px;
        padding: 8px 4px;
    }

    .kff-result-table .single-digit td {
        font-size: 16px;
        padding: 12px 4px;
    }

    .kff-refresh-btn {
        padding: 10px 25px;
        font-size: 15px;
    }

    .chart-title {
        font-size: 20px;
        padding: 14px;
    }

    .kff-chart-block h3 {
        font-size: 16px;
        display: block;
    }

    .kff-reason-text {
        font-size: 20px;
        padding: 30px 15px;
    }

    /* Make table scrollable on small screens */
    .kff-result-table {
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .kff-date-today {
        font-size: 18px;
    }

    .kff-result-table th {
        font-size: 12px;
        padding: 4px 2px;
    }

    .kff-result-table .three-digit td {
        font-size: 12px;
    }

    .kff-result-table .single-digit td {
        font-size: 15px;
    }

    .chart-title {
        font-size: 18px;
    }

    .kff-reason-text {
        font-size: 18px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.kff-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}