/* ======================= BASE RESET ======================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  overflow-x: hidden;
}

/* ======================= BACKGROUND CANVAS ======================= */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

/* ======================= FROSTED GLASS PANEL ======================= */
.frosted {
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
}

/* Dark text version for light gradients */
.frosted-light-text {
  color: #111;
}

/* ======================= THEME BUTTON ======================= */
#theme-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.1);
}
#theme-button:hover {
  background-color: rgba(255,255,255,0.2);
}

/* ======================= THEME MENU ======================= */
#theme-menu {
  position: fixed;
  bottom: 80px;
  left: 20px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  z-index: 9999;
  background-color: rgba(255,255,255,0.1);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}

.theme-option {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}
.theme-option:hover {
  background-color: rgba(255,255,255,0.2);
}
.theme-option.active {
  border: 1.5px solid #60a5fa;
}

/* ======================= VPN MODULE ======================= */
#vpn-torrent-card {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 300px;
  padding: 16px;
  font-size: 14px;
  z-index: 9999;
  border-radius: 20px;
}

/* Apple Vision Pro theme */
body.apple-vision #vpn-torrent-card {
  background: rgba(20,30,44,0.85) !important;
  border: none !important;
  color: white !important;
}

#vpn-torrent-card.frosted {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Header */
#vpn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
}

.status-label {
  font-weight: 500;
}

.status-icon {
  width: 24px;
  text-align: right;
}
