/* ============================================================
   A.V DP Boss — Frontend Styles
   White minimalist, clean, premium design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --white:        #ffffff;
    --bg:           #f5f6f8;
    --bg-card:      #ffffff;
    --text:         #1a1a2e;
    --text-2:       #4a4a68;
    --text-muted:   #9ca3af;
    --accent:       #4f46e5;
    --accent-light: #eef2ff;
    --accent-dark:  #3730a3;
    --border:       #e5e7eb;
    --border-light: #f0f1f3;
    --green:        #10b981;
    --red:          #ef4444;
    --amber:        #f59e0b;
    --shadow-xs:    0 1px 2px rgba(0,0,0,.03);
    --shadow-sm:    0 1px 3px rgba(0,0,0,.05);
    --shadow-md:    0 4px 12px rgba(0,0,0,.06);
    --shadow-lg:    0 10px 30px rgba(0,0,0,.08);
    --radius:       8px;
    --radius-lg:    12px;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition:   all .2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    background: var(--text);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
}

.site-logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    text-transform: uppercase;
}
.site-logo span { color: #a78bfa; }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee-bar {
    background: var(--accent);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 7px 0;
    font-size: 13px;
    font-weight: 400;
}

.marquee-bar .track {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left var(--speed, 20s) linear infinite;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ── Controls Bar ──────────────────────────────────────────── */
.controls-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.controls-bar input[type="date"] {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}
.controls-bar input[type="date"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); border-color: var(--text-muted); }

/* ── Live Clock ────────────────────────────────────────────── */
.live-clock {
    padding: 8px 16px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
    min-width: 100px;
    text-align: center;
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.date-heading {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    letter-spacing: .3px;
}

/* ── Result Table ──────────────────────────────────────────── */
.result-table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.result-table thead th {
    background: var(--text);
    color: #fff;
    padding: 11px 14px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    text-align: center;
    white-space: nowrap;
}

.result-table tbody td {
    padding: 9px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    transition: background .15s ease;
}

.result-table tbody tr:nth-child(even) { background: #fafbfc; }
.result-table tbody tr:hover { background: var(--accent-light); }

.result-table .sno  { font-weight: 600; color: var(--text-muted); width: 42px; }
.result-table .time { font-weight: 500; color: var(--text-2); white-space: nowrap; }
.result-table .res  { font-weight: 700; color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.result-table .res.empty { color: var(--text-muted); font-weight: 400; font-size: 14px; }

/* Column separators */
.result-table thead th:nth-child(3),
.result-table thead th:nth-child(5) {
    border-right: 1px solid rgba(255,255,255,.15);
}
.result-table tbody td.col-sep {
    border-right: 1px solid var(--border-light);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 18px 24px;
    text-align: center;
}

.disclaimer {
    font-size: 12px;
    color: var(--red);
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto;
}

/* ── Chart Page ────────────────────────────────────────────── */
.chart-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 24px;
}

.chart-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-month-label {
    font-size: 18px;
    font-weight: 700;
    min-width: 180px;
    text-align: center;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.chart-table th {
    background: var(--bg);
    padding: 8px 10px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-2);
    border: 1px solid var(--border);
    text-align: center;
}

.chart-table td {
    padding: 6px 8px;
    border: 1px solid var(--border-light);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.chart-table .date-cell {
    font-weight: 600;
    background: #fafbfc;
    white-space: nowrap;
}

.chart-table .result-cell {
    font-weight: 600;
    color: var(--accent);
}

.chart-table .result-cell.empty {
    color: var(--text-muted);
    font-weight: 400;
}

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
    animation: fadeUp .35s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .7; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .controls-bar { padding: 8px 12px; gap: 6px; }
    .site-logo { font-size: 20px; }
    .main-content { padding: 16px 8px 32px; }
    .result-table { font-size: 12px; }
    .result-table thead th { padding: 8px 6px; font-size: 10px; }
    .result-table tbody td { padding: 7px 4px; }
    .result-table .res { font-size: 13px; }
    .date-heading { font-size: 14px; padding: 8px; }
}

@media (max-width: 480px) {
    .result-table { font-size: 11px; }
    .result-table .res { font-size: 12px; }
    .btn { padding: 6px 12px; font-size: 12px; }
    .live-clock { font-size: 12px; padding: 6px 10px; }
}
