/* === ROOT COLOR THEME (Deep Purple: #4b1182) === */
:root {
    --primary-color: #FF9800;
    /* Orange */
    --secondary-color: #388E3C;
    /* Dark Green for CTA/Success */
    --background-light: #f6f8fa;
    --card-background: #ffffff;
    --text-dark: #333;
    --button-hover: #F57C00;
    --active-red: #E65100;
    --header-bg: #111;
    --font-main: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-light);
    color: var(--text-dark);
    margin: 0;
    padding-top: 140px;
    /* Adjusted padding to unhide ticker */
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* === FIXED HEADER BAR (COMPACT) === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: #fbcc1e;
    padding: 6px 0;
    text-align: center;
}

.header-top a {
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.header-top img {
    display: block;
    margin: 0 auto;
}

/* === NAVIGATION BUTTONS (Mobile Fix) === */
.navbar {
    background-color: var(--primary-color);
    padding: 5px 8px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    border-bottom: 1px solid #ddd;
    gap: 5px;
}

.nav-btn {
    background-color: transparent;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-btn.active {
    background-color: var(--active-red);
    color: #fff;
}

/* === Mobile Navigation Squeeze Fix === */
@media screen and (max-width: 480px) {
    body {
        padding-top: 140px;
        /* Adjust for logo height to not hide ticker */
    }

    .nav-btn {
        padding: 5px 8px;
        font-size: 0.7em;
    }
}


/* === Ticker FIX: Visible and Smooth Scroll === */
.ticker-container {
    background-color: var(--active-red) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 25px;
}

.live-label {
    background-color: var(--active-red) !important;
    color: #fff;
    padding: 0 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    z-index: 2;
    flex-shrink: 0;
    font-size: 0.9em;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.ticker-content-wrapper {
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* FIX: Continuous scrolling text */
.ticker-text-inner {
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    /* Start off-screen */
    animation: ticker-scroll 15s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* === Results Table (Structure Fix) === */
.result-table-wrapper {
    padding: 0 10px;
    /* Added padding for mobile view */
    margin-bottom: 10px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.result-table th,
.result-table td {
    border: 1px solid #ddd;
    padding: 5px 2px;
    font-size: 0.88em;
    font-weight: bold;
    width: 12.5%;
    box-sizing: border-box;
    position: relative;
    /* Needed for absolute button positioning */
}

.result-table th {
    background-color: var(--primary-color) !important;
    color: #333;
    padding: 6px 0;
    font-size: 1em;
}

/* Unify Heading Tags (H3/H4) styling inside the table */
.result-table th h3 {
    color: #333 !important;
    margin: 0;
    font-weight: bold;
    font-size: 1em;
}

.result-table td h4 {
    margin: 0;
    font-weight: bold;
    line-height: 1.2;
}

/* --- FINAL FIX: Both Patti and Single numbers are BIG, BOLD & Deep Purple --- */
.result-table td h4,
.result-table td h4 strong {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #444444 !important;
    white-space: nowrap;
}

/* Adjustments for the Time Table layout */
.time-table th {
    padding: 8px 0 !important;
}

.time-table td {
    padding: 5px 2px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #444444 !important;
}

/* Mobile Table Fixes */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .result-table-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .result-table {
        width: 100%;
    }

    /* Mobile Typography Adjustments */
    h1 { font-size: 1.5rem !important; }
    h2, .tips-page-title { font-size: 1.25rem !important; }
    
    /* Bazi Times Adjustments */
    .time-table td, .time-table th {
        font-size: 0.9rem !important;
        padding: 4px 1px !important;
    }
}

/* Red Blinking Dot for Table Header */
.blink-dot-red {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #D32F2F;
    border-radius: 50%;
    margin-right: 8px;
    animation: blinker 1.5s linear infinite;
}

/* App Button Animations */
/* App Button Animation and Mobile Styling */
/* App Button Animation Removed */
.animate-subtle-float {
    /* Removed floating animation */
    padding: 6px 14px !important;
    border-radius: 8px !important;
    gap: 8px !important;
}

@media (max-width: 768px) {
    .animate-subtle-float img {
        width: 25px !important;
        height: 25px !important;
    }

    .animate-subtle-float div div:first-child {
        font-size: 8px !important;
    }

    .animate-subtle-float div div:last-child {
        font-size: 11px !important;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(200%);
    }
}

.group-hover-animate-shine:hover {
    animation: shine 0.75s ease-in-out;
}

.group:hover .group-hover-animate-shine {
    animation: shine 0.75s ease-in-out;
}

.site-footer {
    background-color: #333;
    /* गहरा ग्रे बैकग्राउंड */
    color: #fff;
    /* सफेद टेक्स्ट */
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info p {
    margin: 5px 0 0;
    font-size: 0.9em;
}

/* Dynamic Button Styles */
.btn-dynamic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    /* Reduced from 4px 10px */
    border-radius: 9999px;
    font-size: 0.7rem;
    /* Reduced from 0.75rem */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Reduced shadow */
}

@media (max-width: 480px) {
    .btn-dynamic {
        padding: 0px 4px !important;
        font-size: 9px !important;
        border-radius: 2px;
        line-height: 14px;
        height: 16px;
    }
}

.btn-tips {
    background-color: #FBBF24;
    /* yellow-400 */
    color: #000;
}

.btn-tips:hover {
    background-color: #F59E0B;
    /* yellow-500 */
}

.btn-refresh {
    background-color: #EF4444;
    /* red-500 */
    color: #fff;
}

.btn-refresh:hover {
    background-color: #D32F2F;
    /* red-600 */
}

/* Keyframes for animations */
/* Pulse Animation Removed */
.custom-pulse {
    /* Animation removed */
}

/* Lightweight Bounce for Refresh Button */
@keyframes bounce-custom {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.custom-bounce {
    animation: bounce-custom 2s infinite;
    /* Slower, less CPU intensive */
}

/* === TIPS PAGE STYLES === */
.tips-page-title {
    margin-top: 20px;
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.6em;
    font-weight: bold;
}
.tips-table-container {
    margin: 10px auto;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}
.tips-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.tips-table th, .tips-table td {
    padding: 12px 10px;
    border: 1px solid #eee;
    font-size: 0.95em;
}
.tips-table th {
    background-color: #F39C12;
    color: #333;
    text-align: center;
    font-weight: bold;
    font-size: 1.05em;
}
.tips-table th:first-child {
    border-right: 1px solid rgba(255,255,255,0.7);
}
.tips-table td:first-child {
    font-weight: bold;
    font-size: 1.15em;
    color: #444;
    padding-left: 15px;
}
.tips-table td:nth-child(2) {
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}
.tips-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* === VOTE SECTION === */
#voteForm {
    margin: 15px auto;
    max-width: 500px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0 10px;
}
.vote-number-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Hide Radio Button */
input[type="radio"] {
    display: none;
}
/* Style Label as Button */
input[type="radio"] + label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #333;
    transform: scale(1.1);
}
#submitVote {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
#submitVote:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#voteMessage {
    grid-column: 1 / -1;
    margin-top: 5px;
    font-size: 0.9em;
}

/* --- Vote Results --- */
#voteResults {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 5px;
    margin: 15px auto 30px;
    max-width: 600px;
    padding: 10px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.vote-item {
    display: flex;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Reduced shadow */
}

@media (max-width: 480px) {
    .btn-dynamic {
        padding: 0px 4px !important;
        font-size: 9px !important;
        border-radius: 2px;
        line-height: 14px;
        height: 16px;
    }
}

.btn-tips {
    background-color: #FBBF24;
    /* yellow-400 */
    color: #000;
}

.btn-tips:hover {
    background-color: #F59E0B;
    /* yellow-500 */
}

.btn-refresh {
    background-color: #EF4444;
    /* red-500 */
    color: #fff;
}

.btn-refresh:hover {
    background-color: #D32F2F;
    /* red-600 */
}

/* Keyframes for animations */
/* Pulse Animation Removed */
.custom-pulse {
    /* Animation removed */
}

/* Lightweight Bounce for Refresh Button */
@keyframes bounce-custom {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.custom-bounce {
    animation: bounce-custom 2s infinite;
    /* Slower, less CPU intensive */
}

/* === TIPS PAGE STYLES === */
.tips-page-title {
    margin-top: 40px;
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.6em;
    font-weight: bold;
}
.tips-table-container {
    margin: 10px auto;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}
.tips-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.tips-table th, .tips-table td {
    padding: 12px 10px;
    border: 1px solid #eee;
    font-size: 0.95em;
}
.tips-table th {
    background-color: #F39C12;
    color: #333;
    text-align: center;
    font-weight: bold;
    font-size: 1.05em;
}
.tips-table th:first-child {
    border-right: 1px solid rgba(255,255,255,0.7);
}
.tips-table td:first-child {
    font-weight: bold;
    font-size: 1.15em;
    color: #444;
    padding-left: 15px;
}
.tips-table td:nth-child(2) {
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}
.tips-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* === VOTE SECTION === */
#voteForm {
    margin: 15px auto;
    max-width: 500px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0 10px;
}
.vote-number-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Hide Radio Button */
input[type="radio"] {
    display: none;
}
/* Style Label as Button */
input[type="radio"] + label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #333;
    transform: scale(1.1);
}
#submitVote {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
#submitVote:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#voteMessage {
    grid-column: 1 / -1;
    margin-top: 10px;
    font-size: 0.95em;
    text-align: center;
    font-weight: 500;
}

/* --- Vote Results --- */
#voteResults {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 5px;
    margin: 15px auto 30px;
    max-width: 600px;
    padding: 10px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.vote-item {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #fefefe;
    border-radius: 4px;
}
.vote-number-circle {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    background-color: #FFCC80; /* lighter shade of theme color */
    color: #333;
    border-radius: 50%;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 10px;
}
.top-vote .vote-number-circle {
    background-color: var(--primary-color);
    color: #fff;
}
.vote-content {
    flex-grow: 1;
}
.vote-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 0.85em;
    font-weight: bold;
}
.vote-bar-container {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}
.vote-bar {
    height: 100%;
    background-color: #FFE0B2; /* light orange shade */
    width: 0%;
    transition: width 0.5s ease-out;
}
.top-vote .vote-bar {
    background-color: var(--primary-color);
}

/* === SEO CONTENT SECTION === */
.content-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    padding: 20px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}
.content-container h3 {
    color: #4b1182;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
}
.content-container p {
    margin-bottom: 15px;
}
.content-container ul {
    margin-bottom: 15px;
    padding-left: 20px;
}
.content-container li {
    margin-bottom: 8px;
}

/* === LUCKY NUMBER STYLES === */
.lw-container { max-width: 42rem; margin: 0 auto; padding: 2rem 1rem; text-align: center; }
.lw-title { font-size: 1.5rem; line-height: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; color: #0f172a; margin-bottom: 0.5rem; }
.lw-subtitle { font-size: 0.875rem; color: #475569; margin-bottom: 2rem; font-weight: 500; }
.lw-wheel-wrapper { position: relative; width: 16rem; height: 16rem; margin: 0 auto 2rem; user-select: none; }
@media (min-width: 768px) {
    .lw-title { font-size: 1.875rem; line-height: 2.25rem; }
    .lw-wheel-wrapper { width: 20rem; height: 20rem; }
}
.lw-btn {
    background-color: var(--primary-color); color: #000; font-weight: bold; font-size: 1.125rem;
    padding: 1rem 2rem; border-radius: 0.5rem; border: none; cursor: pointer;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}
.lw-btn:hover { transform: scale(1.05); }
.lw-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.lw-result-box { animation: fadeIn 0.5s ease-in; }
.lw-result-num { font-size: 3.75rem; font-weight: 900; color: #0f172a; line-height: 1; margin: 10px 0; }
.lw-result-msg { color: #16a34a; font-size: 0.75rem; font-weight: bold; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === OLD RESULTS ARCHIVE STYLES === */
.btn-premium {
    background-color: var(--primary-color);
    color: #000 !important;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0,0,0,0.15);
    background-color: var(--primary-color);
    filter: brightness(0.9);
}

/* === RESULT NUMBER STYLES === */
.field1-val, .field2-val {
    font-size: 1.6rem; /* Bigger size */
    color: #444444; /* Darker grey */
    font-weight: 800; /* Little bold */
    margin: 0;
}
.field1-val strong {
    font-weight: 900;
}


/* PLAY Button Highlight */
.btn-highlight {
    background-color: #D32F2F !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 8px #D32F2F, 0 0 15px #D32F2F;
    animation: play-pulse 1.5s infinite;
}
@keyframes play-pulse {
    0% { transform: scale(1); box-shadow: 0 0 8px #D32F2F, 0 0 15px #D32F2F; }
    50% { transform: scale(1.08); box-shadow: 0 0 15px #F44336, 0 0 25px #F44336; }
    100% { transform: scale(1); box-shadow: 0 0 8px #D32F2F, 0 0 15px #D32F2F; }
}

