:root {
    --primary: #2c3e50;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --bg: #f4f7f9;
    --card-bg: #ffffff;
    --text: #333;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    margin: 0; 
    padding: 20px;
    color: var(--text);
    line-height: 1.6;
}

.container { 
    max-width: 600px; 
    background: var(--card-bg); 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: var(--shadow); 
    margin: 0 auto; 
}

h2 { text-align: center; color: var(--primary); margin-bottom: 25px; }
h3 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 30px; }

.status-header { text-align: center; margin-bottom: 30px; }

.grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
    margin-bottom: 25px; 
}

@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; }
}

.card { 
    background: #f8fafc; 
    padding: 15px; 
    border-radius: 8px; 
    text-align: center; 
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.card h4 { margin: 0 0 8px 0; color: #64748b; font-size: 0.9rem; text-transform: uppercase; }
.card p { margin: 0; font-size: 1.25rem; font-weight: bold; color: var(--primary); }

.status-badge { 
    display: inline-flex;
    align-items: center;
    padding: 10px 20px; 
    border-radius: 50px; 
    font-weight: bold; 
    color: var(--primary); 
    background: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.led-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #333;
    background-color: #4a5568;
}

.RUNNING .led-indicator { 
    background-color: #2ecc71; 
    box-shadow: 0 0 12px #2ecc71; 
    animation: led-blink-green 0.8s infinite; 
}

.OFF .led-indicator { 
    background-color: #e74c3c; 
    box-shadow: 0 0 12px #e74c3c; 
    animation: led-blink-red 2s infinite; 
}

@keyframes led-blink-green {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes led-blink-red {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.btn-push-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background: #333;
    border-radius: 12px;
    margin-bottom: 20px;
    border-bottom: 4px solid #111;
}

.btn-push {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 6px solid #222;
    color: white;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #000, 0 8px 15px rgba(0,0,0,0.5);
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.btn-push:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #000;
}

.btn-push.start { background: radial-gradient(circle, #2ecc71 0%, #27ae60 100%); }
.btn-push.stop { background: radial-gradient(circle, #e74c3c 0%, #c0392b 100%); }

.GET_V { background: var(--warning); }

.pending {
    opacity: 0.7;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); opacity: 0.8; }
    100% { transform: scale(1); }
}

.btn { 
    border: none; 
    padding: 15px; 
    font-size: 1rem; 
    font-weight: bold; 
    border-radius: 8px; 
    cursor: pointer; 
    color: white; 
    width: 100%; 
    margin-bottom: 12px; 
    transition: opacity 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-start { background: var(--success); }
.btn-stop { background: var(--danger); }
.btn-req { background: var(--warning); }
.btn-sub { background: var(--primary); margin-top: 10px; }

label { font-weight: bold; display: block; margin: 15px 0 5px 0; font-size: 0.9rem; }
input[type="datetime-local"] { 
    width: 100%; padding: 12px; box-sizing: border-box; 
    border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; 
}