/* ═══════════════════════════════════════════════════════════════
   IrriSmart — 智慧灌溉系統  |  Dark Theme CSS
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #1a1f2e;
  --bg-dark:   #111520;
  --surface:   #232b3e;
  --surface2:  #2d3650;
  --border:    #3a4560;
  --accent:    #00c896;
  --accent2:   #0099ff;
  --red:       #ff3b4e;
  --yellow:    #ffb82e;
  --text:      #e8edf5;
  --text2:     #8a9bbf;
  --text3:     #5a6a8a;
  --sidebar-w: 240px;
  --topbar-h:  60px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══ SIDEBAR ═════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease, width 0.3s ease;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.logo-sub {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 8px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav-item { margin-bottom: 2px; }

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text2);
  transition: all 0.2s;
  position: relative;
}

.sidebar-nav-link:hover {
  background: var(--surface2);
  color: var(--text);
}

.sidebar-nav-item.active .sidebar-nav-link {
  background: rgba(0,200,150,0.12);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-nav-link i { font-size: 18px; flex-shrink: 0; }

.badge-dot {
  margin-left: auto;
  background: var(--red);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  flex-shrink: 0;
}

.user-details { flex: 1; min-width: 0; }
.user-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-role {
  font-size: 10px; display: block; margin-top: 1px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px;
}
.user-role.role-admin    { color: var(--accent); }
.user-role.role-operator { color: var(--accent2); }
.user-role.role-viewer   { color: var(--text3); }

.logout-btn {
  width: 32px; height: 32px;
  background: var(--surface2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
  transition: all 0.2s;
  flex-shrink: 0;
}
.logout-btn:hover { background: rgba(255,59,78,0.15); color: var(--red); }

/* ═══ TOPBAR ══════════════════════════════════════════════════ */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
}

.topbar-toggle {
  background: none; border: none;
  color: var(--text2); font-size: 22px;
  cursor: pointer; padding: 4px;
  border-radius: 8px; display: none;
  transition: color 0.2s;
}
.topbar-toggle:hover { color: var(--text); }

.topbar-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  flex: 1;
}

.topbar-right {
  display: flex; align-items: center; gap: 14px;
}

.topbar-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text3);
}

.topbar-notif {
  position: relative;
  color: var(--text2); font-size: 20px;
  transition: color 0.2s;
}
.topbar-notif:hover { color: var(--accent); }
.notif-badge {
  position: absolute; top: -5px; right: -6px;
  background: var(--red); color: white;
  font-size: 10px; border-radius: 9px;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 0 3px;
}

/* ═══ LAYOUT ══════════════════════════════════════════════════ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left 0.3s ease;
}

.page-content {
  padding: 28px;
  flex: 1;
}

/* ─── Collapsed sidebar ─── */
body.sidebar-collapsed .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
body.sidebar-collapsed .main-wrapper { margin-left: 0; }

/* ═══ CARD COMPONENTS ══════════════════════════════════════════ */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.app-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

.app-card-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

.app-card-title i { color: var(--accent); }

.app-card-body { padding: 20px; }

/* ─── Stat cards ─── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-icon.green  { background: rgba(0,200,150,0.15); color: var(--accent); }
.stat-icon.blue   { background: rgba(0,153,255,0.15); color: var(--accent2); }
.stat-icon.red    { background: rgba(255,59,78,0.15);  color: var(--red); }
.stat-icon.yellow { background: rgba(255,184,46,0.15); color: var(--yellow); }

.stat-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ═══ VALVE COMPONENTS ═════════════════════════════════════════ */
.valve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.valve-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.valve-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.valve-card.active { border-color: var(--accent); background: rgba(0,200,150,0.06); }
.valve-card.offline { opacity: 0.4; cursor: not-allowed; }

.valve-svg-wrap {
  width: 52px; height: 52px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Water drop SVG */
.valve-svg { width: 100%; height: 100%; }

.valve-icon-emoji {
  font-size: 28px; line-height: 1;
}

.valve-label {
  font-size: 11px; font-weight: 600; color: var(--text2);
  text-align: center; line-height: 1.3;
}

.valve-port-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text3);
}

.valve-status-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
}

.valve-status-badge.on  {
  background: rgba(0,200,150,0.15); color: var(--accent);
  border: 1px solid rgba(0,200,150,0.4);
}
.valve-status-badge.off {
  background: rgba(255,59,78,0.1); color: var(--red);
  border: 1px solid rgba(255,59,78,0.3);
}

/* ─── Flowing water animation ─── */
@keyframes waterFlow {
  0%   { stroke-dashoffset: 30; }
  100% { stroke-dashoffset: 0; }
}

.water-flow { stroke-dasharray: 5 3; animation: waterFlow 0.6s linear infinite; }

/* ═══ TOGGLE SWITCH ════════════════════════════════════════════ */
.toggle-switch-wrap {
  position: relative; display: inline-block;
  width: 50px; height: 26px;
}
.toggle-switch-wrap input { opacity:0; width:0; height:0; }

.toggle-slider {
  position: absolute; cursor: pointer;
  top:0; left:0; right:0; bottom:0;
  background: rgba(255,59,78,0.3);
  border-radius: 13px;
  transition: 0.3s;
  border: 1px solid rgba(255,59,78,0.5);
}
.toggle-slider::before {
  content: '';
  position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: var(--red);
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background: rgba(0,200,150,0.2);
  border-color: rgba(0,200,150,0.5);
}
input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: var(--accent);
}

/* ═══ FORMS ════════════════════════════════════════════════════ */
.form-control, .form-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  padding: 9px 14px;
}

.form-control:focus, .form-select:focus {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.15);
}

.form-control::placeholder { color: var(--text3); }
.form-label { font-size: 13px; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.form-select option { background: var(--surface2); }

/* ─── Buttons ─── */
.btn-accent {
  background: var(--accent); color: #111520;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  padding: 9px 20px; cursor: pointer;
  transition: all 0.2s;
}
.btn-accent:hover { background: #00dba8; box-shadow: 0 4px 16px rgba(0,200,150,0.35); }

.btn-outline-accent {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 10px;
  font-weight: 600; font-size: 13px;
  padding: 8px 18px; cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-accent:hover { background: rgba(0,200,150,0.12); }

.btn-surface {
  background: var(--surface2); color: var(--text2);
  border: 1px solid var(--border); border-radius: 10px;
  font-weight: 600; font-size: 13px;
  padding: 9px 18px; cursor: pointer;
  transition: all 0.2s;
}
.btn-surface:hover { border-color: var(--text2); color: var(--text); }

.btn-danger-soft {
  background: rgba(255,59,78,0.1); color: var(--red);
  border: 1px solid rgba(255,59,78,0.3); border-radius: 10px;
  font-weight: 600; font-size: 13px;
  padding: 9px 18px; cursor: pointer;
  transition: all 0.2s;
}
.btn-danger-soft:hover { background: rgba(255,59,78,0.2); }

/* ─── Day pills ─── */
.day-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.day-pill {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--text3); background: var(--surface2);
  transition: all 0.15s; user-select: none;
}
.day-pill.active {
  background: var(--accent); border-color: var(--accent);
  color: #111520;
}

/* ═══ TABLES ═══════════════════════════════════════════════════ */
.app-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.app-table th {
  font-size: 11px; color: var(--text3); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
}
.app-table td {
  padding: 12px 14px; background: var(--surface);
  font-size: 13px; vertical-align: middle;
}
.app-table tr td:first-child { border-radius: 10px 0 0 10px; }
.app-table tr td:last-child  { border-radius: 0 10px 10px 0; }
.app-table tr:hover td { background: var(--surface2); }

/* ═══ BADGES / STATUS ══════════════════════════════════════════ */
.badge-on     { background: rgba(0,200,150,0.15); color: var(--accent); border: 1px solid rgba(0,200,150,0.3); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.badge-off    { background: rgba(255,59,78,0.1);  color: var(--red);    border: 1px solid rgba(255,59,78,0.3);  border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.badge-online { background: rgba(0,200,150,0.15); color: var(--accent); border: 1px solid rgba(0,200,150,0.3); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.badge-offline{ background: var(--surface2);      color: var(--text3);  border: 1px solid var(--border);        border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; }

.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 5px;
  vertical-align: middle;
}
.dot-pulse.green { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.dot-pulse.red   { background: var(--red); }
.dot-pulse.gray  { background: var(--text3); }

@keyframes pulse {
  0%, 100% { opacity:1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ═══ SITE CARDS ═══════════════════════════════════════════════ */
.venue-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative; overflow: hidden;
  transition: all 0.3s; cursor: pointer;
}
.venue-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.3s;
}
.venue-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,150,0.15); }
.venue-card:hover::before { opacity: 1; }

.venue-icon { font-size: 36px; line-height: 1; }
.venue-name { font-size: 16px; font-weight: 700; color: var(--text); }
.venue-loc  { font-size: 12px; color: var(--text3); }
.venue-stat { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 5px; }

/* ═══ SCHEDULE CALENDAR ════════════════════════════════════════ */
.mini-calendar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.cal-nav-btn {
  background: var(--surface2); border: none;
  color: var(--text2); border-radius: 8px;
  width: 30px; height: 30px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cal-nav-btn:hover { color: var(--accent); background: rgba(0,200,150,0.1); }

.cal-month-title {
  font-weight: 700; font-size: 15px; color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }

.cal-dow {
  text-align: center; font-size: 10px; color: var(--text3);
  font-weight: 700; padding: 8px 0;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 1px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text2);
  cursor: pointer; border-radius: 8px;
  margin: 2px; transition: all 0.15s;
  position: relative;
}
.cal-day:hover { background: var(--surface2); color: var(--text); }
.cal-day.today {
  background: rgba(0,153,255,0.15);
  color: var(--accent2); font-weight: 700;
}
.cal-day.selected {
  background: var(--accent); color: #111520; font-weight: 700;
}
.cal-day.has-schedule::after {
  content: '';
  position: absolute; bottom: 3px;
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
}
.cal-day.other-month { color: var(--text3); opacity: 0.4; }

/* ═══ MODALS ════════════════════════════════════════════════════ */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}
.modal-title { font-weight: 700; font-size: 16px; color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border); padding: 16px 24px; }
.btn-close { filter: invert(1); }
.modal-backdrop { background: rgba(0,0,0,0.7); }

/* ═══ PORT ENTRY ════════════════════════════════════════════════ */
.port-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}
.port-entry:hover { border-color: var(--accent2); }

.port-num-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--accent2); background: rgba(0,153,255,0.1);
  border-radius: 6px; padding: 3px 8px; flex-shrink: 0;
}

.icon-picker-grid {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 6px;
}
.icon-opt {
  aspect-ratio: 1;
  border-radius: 9px; border: 1.5px solid transparent;
  background: var(--surface2); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.icon-opt:hover { border-color: var(--accent2); transform: scale(1.1); }
.icon-opt.selected { border-color: var(--accent); background: rgba(0,200,150,0.12); }

/* ═══ CHARTS / STATS AREA ══════════════════════════════════════ */
.timeline-bar {
  height: 8px; border-radius: 4px;
  background: var(--surface2); overflow: hidden;
}
.timeline-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.5s ease;
}

/* ═══ ICONS EMOJI PICKER ═══════════════════════════════════════ */
.emoji-grid {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 8px;
}
.emoji-opt {
  font-size: 24px; text-align: center;
  padding: 8px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; background: var(--surface2);
  transition: all 0.15s;
}
.emoji-opt:hover { border-color: var(--accent2); background: rgba(0,153,255,0.1); transform: scale(1.1); }
.emoji-opt.selected { border-color: var(--accent); background: rgba(0,200,150,0.12); }

/* ═══ LOGIN PAGE ════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(0,200,150,0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 50%, rgba(0,153,255,0.08) 0%, transparent 50%);
}

.login-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.login-logo {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 24px;
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .topbar-toggle { display: flex; }
  .page-content { padding: 16px; }
  .valve-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

/* ═══ UTILITY ═══════════════════════════════════════════════════ */
.mono { font-family: 'JetBrains Mono', monospace; }
.text-accent  { color: var(--accent) !important; }
.text-accent2 { color: var(--accent2) !important; }
.text-muted-custom { color: var(--text3) !important; }
.bg-surface  { background: var(--surface) !important; }
.bg-surface2 { background: var(--surface2) !important; }
.border-custom { border-color: var(--border) !important; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--text3); text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 12px;
}
.divider-line {
  border: none; border-top: 1px solid var(--border); margin: 20px 0;
}

/* ─── Schedule Items ─── */
.schedule-item-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  transition: all 0.2s; cursor: pointer;
}
.schedule-item-card:hover { border-color: var(--accent); }
.schedule-item-card.enabled { border-color: rgba(0,200,150,0.4); }

/* ─── History log ─── */
.log-row {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 14px;
}
.log-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.log-icon.on  { background: rgba(0,200,150,0.15); color: var(--accent); }
.log-icon.off { background: rgba(255,59,78,0.1);  color: var(--red); }
.log-icon.schedule { background: rgba(0,153,255,0.15); color: var(--accent2); }

/* ─── WiFi Signal ─── */
.wifi-bars { display: flex; align-items: flex-end; gap: 3px; }
.wifi-bar {
  width: 6px; border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.wifi-bar.active { background: var(--accent); }

/* ═══ PERMISSION MANAGEMENT ════════════════════════════════════ */
.perm-module-card {
  transition: box-shadow 0.2s;
}
.perm-module-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.perm-row:last-child {
  border-bottom: none !important;
}

.perm-check-visual {
  transition: border-color 0.2s, background 0.2s;
}

.user-select-row:hover {
  background: rgba(0,200,150,0.06) !important;
  border-color: rgba(0,200,150,0.3) !important;
}

.progress-custom {
  height: 6px; border-radius: 3px;
  background: var(--surface2); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
