/* static/style.css */
:root {
    --bg-color: #1a1a2e;
    --card-bg-color: #16213e;
    --primary-color: #0f3460;
    --secondary-color: #e94560;
    --text-color: #e0e0e0;
    --green-light: #2ecc71;
    --red-light: #e74c3c;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1800px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

header h1 {
    margin: 0;
    color: var(--secondary-color);
}

.card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.status-panel {
    text-align: center;
}

.status-light {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 10px auto;
    transition: background-color 0.5s;
    border: 3px solid #fff;
}

.status-light.on {
    /* Změna ze zelené na červenou pro stav "zapnuto" */
    background-color: var(--red-light);
    box-shadow: 0 0 20px var(--red-light);
}

.status-light.off {
    /* Změna z červené na šedou pro stav "vypnuto" */
    background-color: #808080; /* Standardní šedá barva */
    box-shadow: 0 0 15px #808080;
}

#status-text {
    font-size: 1.5em;
    font-weight: bold;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric {
    text-align: center;
}

.metric h3 {
    margin-top: 0;
    color: #a0a0a0;
}

.metric p {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0;
}

.date-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.date-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.date-inputs input {
    background-color: #1a1a2e;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 8px;
    border-radius: 5px;
}
.date-inputs button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.date-inputs button:hover {
    opacity: 0.9;
}

.chart-container {
    position: relative;
    height: 800px;
    max-height: 1008px; /* Toto je klíčová oprava proti zvětšování */
}

.history-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.history-panel li {
    padding: 8px;
    border-bottom: 1px solid var(--primary-color);
}

.history-panel li:last-child {
    border-bottom: none;
}