:root {
  --led-on-color: #ffeb3b;
  --led-off-color: #6c757d;
  --led-glow-color: rgba(192, 215, 74, 0.3);
}

[data-bs-theme="dark"] {
  --led-off-color: #495057;
  --led-glow-color: rgba(76, 175, 80, 0.2);
}

/* Base Styles */
body {
  background-color: var(--bs-body-bg);
  transition: background-color 0.3s ease;
}

.card {
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Status Indicator */
.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-online {
  background-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.status-offline {
  background-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* LED Cards */
.led-card {
  background-color: var(--bs-card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.led-visual {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.led-icon {
  font-size: 4rem;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.led-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--led-glow-color);
  opacity: 0;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.led-on .led-icon {
  color: var(--led-on-color);
  text-shadow: 0 0 10px var(--led-on-color);
}

.led-on .led-glow {
  opacity: 1;
  box-shadow: 0 0 20px 10px var(--led-glow-color);
}

/* Buttons */
.btn-toggle {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-toggle:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn-toggle:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Network Info Items */
.network-info-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.network-info-item i {
  font-size: 1.5rem;
  margin-right: 12px;
  width: 40px;
  text-align: center;
}

/* Signal Strength */
.signal-strength {
  display: flex;
  align-items: center;
  gap: 3px;
}

.signal-bar {
  width: 4px;
  height: 10px;
  background-color: #dee2e6;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.signal-bar.active {
  background-color: #28a745;
}

.signal-bar:nth-child(1) {
  height: 6px;
}
.signal-bar:nth-child(2) {
  height: 10px;
}
.signal-bar:nth-child(3) {
  height: 14px;
}
.signal-bar:nth-child(4) {
  height: 18px;
}
.signal-bar:nth-child(5) {
  height: 22px;
}

/* Activity Log */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  border-bottom-width: 1px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: 4px;
}

.progress-bar {
  transition: width 0.6s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .led-visual {
    width: 80px;
    height: 80px;
  }

  .led-icon {
    font-size: 3rem;
  }

  .btn-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
