/* ── Page background ── */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ── Clickable card lift ── */
.pump-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pump-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25) !important;
}

/* ── Pump header accent border ── */
.pump-header {
    border-bottom: 3px solid #e0e0e0;
}
.pump-header.primary  { border-bottom-color: #4CAF50; }
.pump-header.secondary { border-bottom-color: #2196F3; }

/* ── Status indicator dot ── */
.status-indicator {
    font-size: 1.8em;
    animation: blink 2s infinite;
}
.status-indicator.active   { color: #4CAF50; }
.status-indicator.inactive { color: #ccc; }
.status-indicator.alert    { color: #ff6b6b; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ── Big power number ── */
.power-value {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}
.power-value .unit {
    font-size: 0.45em;
    color: #666;
}

/* ── Stat items ── */
.stat-item  { background: #f8f9fa; }
.stat-label { color: #666; font-size: 0.85em; margin-bottom: 2px; }
.stat-value { font-size: 1.05em; font-weight: 700; color: #333; }

/* ── Water level bar ── */
.level-bar {
    height: 50px;
    background: #e0e0e0;
    border-radius: 25px;
    overflow: visible;
    position: relative;
    margin: 28px 0 8px;
}
.level-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #00BCD4);
    border-radius: 25px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}
.level-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.level-markers {
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    pointer-events: none;
}
.marker {
    font-size: 0.8em;
    font-weight: bold;
    color: #999;
    position: absolute;
    transform: translateX(-50%);
}

/* ── Level value number ── */
.level-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}
.level-value .unit {
    font-size: 0.5em;
    color: #666;
}

/* ── Level status badge ── */
.level-status {
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
}
.level-status.normal   { background: #e8f5e9; color: #2e7d32; }
.level-status.warning  { background: #fff3e0; color: #e65100; }
.level-status.critical { background: #ffebee; color: #c62828; }
.level-status.danger   { background: #ef5350; color: white; animation: pulse 1.5s infinite; }

/* ── Alert banner pulse ── */
#alertBanner { animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.8; }
}

/* ── Chart container ── */
.chart-container { height: 400px; }

