:root{
  --bg:#f4f6f9;
  --card:#ffffff;
  --primary:#0d6efd;
  --secondary:#20c997;
  --accent:#ffc107;
  --text:#1f2937;
  --muted:#6b7280;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Montserrat',sans-serif;
}

.card-soft{
  background:var(--card);
  border-radius:18px;
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.text-muted{
  color:var(--muted)!important;
}

.sidebar{
  width:240px;
  position:fixed;
  height:100vh;
  background:#fff;
  padding:20px;
}

.sidebar a{
  display:block;
  padding:12px 14px;
  border-radius:10px;
  color:#333;
  margin-bottom:6px;
  text-decoration:none;
}

.sidebar a:hover{
  background:#eef2ff;
}

/* ================= ANIMATION ================= */
.section {
  animation: fadeSlide .35s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= CARD EFFECT ================= */
.card, .card-soft {
  transition: all .25s ease;
}

.card:hover, .card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* ===== LIVE DOT ===== */
.live-dot{
  width:10px;
  height:10px;
  background:#2ecc71;
  border-radius:50%;
  animation:pulse 1.5s infinite;
}

@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(46,204,113,.7)}
  70%{box-shadow:0 0 0 10px rgba(46,204,113,0)}
  100%{box-shadow:0 0 0 0 rgba(46,204,113,0)}
}

/* ===== BADGE ===== */
.badge-status{
  display:inline-block;
  padding:8px 16px;
  border-radius:20px;
  font-weight:700;
}
.badge-on{background:#e74c3c;color:#fff}
.badge-off{background:#2ecc71;color:#fff}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .sidebar{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:60px;
    display:flex;
    justify-content:space-around;
    z-index:999;
  }
  .content{
    margin-left:0;
    padding-bottom:80px;
  }
}

/* ===== GLOBAL DARK MODE VARIABLES ===== */
body.dark{
  --bg:#121212;
  --card:#1f1f1f;
  --text:#eeeeee;
  --muted:#aaaaaa;
}
