/* MyArus IoT Solutions - Gaya & Animasi Moden */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg-dark: #070a13;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-glow: rgba(56, 189, 248, 0.2);
  --primary-cyan: #06b6d4;
  --primary-blue: #3b82f6;
  --primary-emerald: #10b981;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: #f1f5f9;
  overflow-x: hidden;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Background Cyber Mesh */
.bg-cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.glow-gradient-radial {
  background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.05) 50%, transparent 70%);
}

.glow-gradient-bottom {
  background: radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.05) 50%, transparent 70%);
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.15);
}

.glass-panel:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text Gradients */
.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Live Pulse Animation */
.live-pulse {
  animation: pulseGlow 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

/* Terminal Log Styling */
.terminal-window {
  background: #030712;
  border: 1px solid #1f2937;
  border-radius: 0.75rem;
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Switch styling for remote relay */
.switch-checkbox:checked + .switch-label {
  background-color: #10b981;
}

.switch-checkbox:checked + .switch-label .switch-dot {
  transform: translateX(1.5rem);
}
