/* ================== Global ================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    color: #fff;
    overflow: hidden;
}

header {
    height: 80px;
    background: #111;
    color: #eb9635;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    /*text-shadow: 0 0 10px #eb9635, 0 0 20px #ffb347;*/
}

/* ================== TV Layout ================== */
.tv-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    height: calc(100vh - 140px); /* header + ticker */
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .tv-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
}

/* ================== Chart ================== */
.chart-section {
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    /*box-shadow: 0 0 20px rgba(235,150,53,0.2);*/
}

#all-drinks-chart {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

/* ================== Table ================== */
.table-section {
    background: #111;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-radius: 12px;
}

.table-section h2 {
    color: #eb9635;
    font-size: 2rem;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.8rem;
}

thead {
    background: #222;
}

th, td {
    padding: 12px;
    text-align: left;
}

tbody tr:nth-child(odd) {
    background: #1a1a1a;
}

tbody tr:hover {
    background: #333;
}

/* ================== Trend arrows ================== */
.arrow-up { color: #f44336; font-weight: bold; /*text-shadow: 0 0 5px #f44336;*/ }
.arrow-down { color: #4caf50; font-weight: bold; /*text-shadow: 0 0 5px #4caf50; */}
.arrow-stable { color: #aaa; font-weight: bold; }

.change-percent {
    margin-left: 8px;
    font-weight: bold;
    font-size: 1.4rem;
}

/* ================== Ticker ================== */
.ticker {
    height: 60px;
    background: #111;
    overflow: hidden;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

#ticker-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: ticker linear infinite 30s;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================== Scrollbar ================== */
.table-section::-webkit-scrollbar {
    width: 12px;
}

.table-section::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
}

.table-section::-webkit-scrollbar-track {
    background: #111;
}

/* ================== Price update pulse ================== */
@keyframes pulse {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(235,150,53,0.2); }
}

.price-updated {
    animation: pulse 1s;
}
