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

:root {
  --liquid-cyan: #00d2ff;
  --liquid-blue: #3a7bd5;
  --liquid-indigo: #6366f1;
  --liquid-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #6366f1 100%);
  --liquid-glow: 0 4px 25px rgba(0, 210, 255, 0.45);
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-highlight: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.65), inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
}

* {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif !important;
}

body {
  background: radial-gradient(ellipse at 50% -20%, #0c2340 0%, #070d1e 45%, #02040a 100%) !important;
  min-height: 100vh !important;
  color: #f8fafc !important;
  letter-spacing: -0.015em;
  overflow-x: hidden;
  position: relative;
}

/* Apple Liquid Ambient Glowing Orbs */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.22) 0%, rgba(58, 123, 213, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
  animation: floatOrb2 15s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.12); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.08); }
}

#app {
  position: relative;
  z-index: 1;
}

/* Header Title (Liquid Metallic Glow) */
h1.text-4xl {
  font-weight: 800 !important;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 80%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.035em !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 22px !important;
  filter: drop-shadow(0 2px 10px rgba(0, 210, 255, 0.25));
}

h1.text-4xl img {
  filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.75)) !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

h1.text-4xl:hover img {
  transform: rotate(20deg) scale(1.18);
}

/* Apple Liquid Status Bar */
.live-server-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(35px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 20px !important;
  padding: 14px 24px !important;
  margin-bottom: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 -1px 1px rgba(0, 0, 0, 0.25) !important;
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 14px #10b981;
}

.live-pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.5);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  60% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.online-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.15) 100%) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  padding: 3px 12px !important;
  border-radius: 9999px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.server-stat-pill {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
}

/* Main Clients Container Card (Apple Liquid Glass) */
.shadow-md.rounded-lg.bg-white,
.dark .shadow-md.rounded-lg.bg-neutral-700,
div.shadow-md.rounded-lg {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(40px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(220%) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 28px !important;
  box-shadow: var(--glass-shadow) !important;
  overflow: hidden !important;
}

/* Card Header */
div.flex.flex-row.flex-auto.items-center.p-3.px-5 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%) !important;
  padding: 20px 26px !important;
}

p.text-2xl.font-medium {
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.03em !important;
  font-size: 1.7rem !important;
}

/* Header Action: + Neu Button (Liquid Cyan/Blue Glow) */
div.flex.md\:block button,
div[class*="flex md:block"] button,
button[class*="rounded-r-full"],
button[class*="md:rounded"]:last-child {
  background: var(--liquid-gradient) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: var(--liquid-glow), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  margin-left: 8px !important;
  letter-spacing: 0.01em;
}

div.flex.md\:block button:hover,
div[class*="flex md:block"] button:hover,
button[class*="rounded-r-full"]:hover,
button[class*="md:rounded"]:last-child:hover {
  box-shadow: 0 8px 35px rgba(0, 210, 255, 0.7), inset 0 1px 3px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) scale(1.04) !important;
  filter: brightness(1.1);
}

/* Header Action: Wiederherstellen & Sichern */
label[for="inputRC"],
a[href*="backup"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
  border-radius: 14px !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 9px 16px !important;
  font-weight: 600 !important;
  margin-right: 6px !important;
}

label[for="inputRC"]:hover,
a[href*="backup"]:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(0, 210, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* Client Row Items */
div[class*="relative overflow-hidden border-b"] {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 18px 26px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

div[class*="relative overflow-hidden border-b"]:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 210, 255, 0.03) 100%) !important;
}

/* Client Avatar: Frosted Liquid Sphere */
div[class*="rounded-full bg-gray-50"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

/* Active Peer Glowing Emerald Light */
.animate-ping.bg-red-100 {
  background-color: rgba(16, 185, 129, 0.6) !important;
}

div.rounded-full.bg-red-800.bottom-0,
div[class*="bg-red-800 rounded-full absolute bottom-0 right-0"],
div[class*="bg-red-600 rounded-full absolute bottom-0 right-0"] {
  background: #10b981 !important;
  box-shadow: 0 0 14px #10b981, 0 0 25px rgba(16, 185, 129, 0.85) !important;
}

/* Client Name */
div[class*="text-gray-700 dark:text-neutral-200 group text-sm"] span {
  font-weight: 700 !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.015em;
}

/* Client IP Badge: Liquid Ice Capsule */
span[v-show="clientEditAddressId !== client.id"] {
  font-family: 'JetBrains Mono', monospace !important;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.18) 0%, rgba(58, 123, 213, 0.1) 100%) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-top: 4px;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Traffic Stats: Liquid Cyan (Download) & Electric Purple (Upload) */
span[title*="Download"], span[title*="download"], span[title*="TX"] {
  color: #38bdf8 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

span[title*="Upload"], span[title*="upload"], span[title*="RX"] {
  color: #c084fc !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.4));
}

/* Apple iOS Liquid Switch (Active: Emerald Glow) */
div.rounded-full.bg-red-800,
div.bg-red-800.cursor-pointer,
div[class*="w-10 h-6"][class*="bg-red-800"],
.bg-red-800 {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Apple iOS Liquid Switch (Disabled) */
div[class*="bg-gray-200 dark:bg-neutral-400 cursor-pointer"] {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Action Buttons (QR, Download, Delete) Glass Capsule */
button[class*="align-middle bg-gray-100"],
a[class*="align-middle inline-block bg-gray-100"],
div[class*="text-gray-400"] button:last-child {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 11px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* QR Code button hover */
button[class*="align-middle bg-gray-100"]:hover {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25) 0%, rgba(58, 123, 213, 0.15) 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) scale(1.08) !important;
}

/* Download button hover */
a[class*="align-middle inline-block bg-gray-100"]:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) scale(1.08) !important;
}

/* Delete button hover */
div[class*="text-gray-400"] button:last-child:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(225, 29, 72, 0.15) 100%) !important;
  border-color: #f43f5e !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) scale(1.08) !important;
}

/* Modal Dialogs (Apple Frosted Glass Sheet) */
div[role="dialog"] {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(7, 13, 30, 0.96) 100%) !important;
  backdrop-filter: blur(40px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 30px !important;
  box-shadow: 0 35px 80px -10px rgba(0, 0, 0, 0.9), 0 0 55px rgba(0, 210, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
  overflow: hidden !important;
}

div[role="dialog"] input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  padding: 15px 20px !important;
  font-size: 1rem !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

div[role="dialog"] input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

div[role="dialog"] button[class*="bg-red-800"],
div[role="dialog"] button[class*="bg-red-600"] {
  background: var(--liquid-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  box-shadow: var(--liquid-glow), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  padding: 11px 22px !important;
}

/* QR Code Modal Box */
div[class*="bg-white rounded-md shadow-lg relative p-8"] {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(8, 14, 32, 0.98) 100%) !important;
  backdrop-filter: blur(40px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 30px !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95), 0 0 60px rgba(0, 210, 255, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.45) !important;
  padding: 40px !important;
}

div[class*="bg-white rounded-md shadow-lg relative p-8"] img {
  border-radius: 22px !important;
  background: #ffffff !important;
  padding: 16px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Login Centerpiece Card */
form[class*="shadow rounded-md"] {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(40px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(220%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 32px !important;
  box-shadow: var(--glass-shadow) !important;
  width: 360px !important;
  padding: 42px !important;
}

form[class*="shadow rounded-md"] .rounded-full.bg-red-800 {
  background: var(--liquid-gradient) !important;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

form[class*="shadow rounded-md"] input[type="password"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

form[class*="shadow rounded-md"] input[type="password"]:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

form[class*="shadow rounded-md"] input[type="submit"] {
  background: var(--liquid-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
  padding: 15px !important;
  box-shadow: var(--liquid-glow), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  letter-spacing: 0.03em;
  font-size: 1.02rem !important;
}

form[class*="shadow rounded-md"] input[type="submit"]:hover {
  box-shadow: 0 8px 35px rgba(0, 210, 255, 0.75) !important;
  transform: translateY(-2px) scale(1.02);
}
