/* ==========================================================================
   C&N Money Exchange - Fullscreen TV Board Specific CSS (LIGHT THEME)
   Aesthetics: Clean High-Contrast Board, Fluid Typography, Extreme Saliency
   ========================================================================== */

body.tv-body {
    background-color: #f1f5f9; /* Slate 100 - Clean, premium light canvas */
    color: #0f172a; /* Slate 900 - Pure deep dark */
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Header bar */
.tv-header {
    background: #ffffff;
    border-bottom: 4px solid var(--accent-cyan);
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

.tv-logo-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tv-logo-icon {
    width: 60px;
    height: 60px;
    border: 4px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    color: var(--accent-cyan);
    background: var(--accent-cyan-glow);
    box-shadow: 0 2px 8px var(--accent-cyan-glow);
}

.tv-time-area {
    text-align: right;
}

.tv-date {
    font-family: var(--font-heading);
    font-size: 1.8rem; /* Extremely large clock */
    font-weight: 800;
    color: #0f172a;
}

.tv-sub-date {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 800;
}

/* Table layout */
.tv-table-container {
    flex: 1;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.tv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 2.3rem; /* Enlarged for massive readability */
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--card-border);
}

.tv-table th {
    font-family: var(--font-heading);
    font-weight: 800;
    background: #0f172a; /* Deep black headers */
    color: #ffffff; /* Saturated high contrast text */
    padding: 1.25rem 1.5rem;
    text-transform: uppercase;
    font-size: 1.85rem;
}

.tv-table td {
    padding: 1.15rem 1.5rem;
    border-bottom: 2px solid var(--card-border);
    font-family: var(--font-heading);
    font-weight: 700;
    background: #ffffff;
    transition: all 0.3s ease;
}

.tv-table tr:nth-child(even) td {
    background: #f8fafc; /* Grid row alternate striping */
}

.tv-flag {
    font-size: 2.8rem;
    vertical-align: middle;
    margin-right: 1.5rem;
}

.tv-curr-name {
    font-size: 1.35rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 1rem;
    display: inline-block;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.tv-rate-cell {
    font-weight: 800;
    font-size: 2.8rem; /* Large font size */
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tv-rate-cell.buy-col {
    color: #047857; /* Saturated Emerald green */
}

.tv-rate-cell.sell-col {
    color: #b91c1c; /* Saturated crimson red */
}

/* Saturated Flash alerts for rate changes */
@keyframes flash-green {
    0% { background-color: #059669; color: #fff; }
    100% { background-color: transparent; }
}

@keyframes flash-red {
    0% { background-color: #dc2626; color: #fff; }
    100% { background-color: transparent; }
}

.flash-up {
    animation: flash-green 1.5s ease-out;
}

.flash-down {
    animation: flash-red 1.5s ease-out;
}

/* Page index indicator */
.tv-page-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--card-border);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--text-dim);
}

.dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan-glow);
    transform: scale(1.2);
}

/* Bottom Scrolling Marquee */
.tv-marquee-container {
    background: #0f172a;
    border-top: 3px solid var(--accent-cyan);
    height: 55px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tv-marquee-label {
    background: var(--accent-cyan);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    box-shadow: 5px 0 10px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.tv-marquee-content {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.tv-marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 28s linear infinite;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #cbd5e1;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
