:root { 
    --primary: #2c3e50; 
    --secondary: #27ae60; 
    --danger: #e74c3c; 
    --warning: #f1c40f;
    --bg: #f4f7f6; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

header { 
    width: 100%; 
    background: var(--primary); 
    color: white; 
    padding: 1rem; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
}

.container { 
    width: 90%; 
    max-width: 1000px; 
    margin-top: 20px; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
}

.card { 
    background: white; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.card h2 { margin-top: 0; border-bottom: 2px solid var(--bg); padding-bottom: 10px; }

.status-indicator { display: flex; align-items: center; gap: 10px; margin: 15px 0; font-weight: bold; }
.led { width: 12px; height: 12px; border-radius: 50%; }
.led-on { background: var(--secondary); box-shadow: 0 0 8px var(--secondary); }
.led-off { background: var(--danger); }

.btn { padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; margin-right: 5px; }
.btn-trigger { background: var(--primary); color: white; }
.btn-toggle { background: #eee; }
.btn:hover { opacity: 0.8; }

.stats-list { list-style: none; padding: 0; }
.stats-list li { padding: 8px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }

.last-run { font-size: 0.85rem; color: #666; }

/* Barra de progreso */
.progress-container {
    width: 100%;
    background-color: #eee;
    border-radius: 10px;
    margin-top: 8px;
    height: 18px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--secondary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }