/* ============================================================
   enhancements.css — Private Cloud Visual Overhaul
   ============================================================
   Einbinden NACH style.css:
     <link rel="stylesheet" href="enhancements.css">
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties (Ergänzung) ─────────────────────── */
:root {
  --glow-teal:  rgba(20, 184, 166, 0.55);
  --glow-blue:  rgba(56,  189, 248, 0.45);
  --glow-soft:  rgba(94,  234, 212, 0.25);
  --glass-bg:   rgba(10,  20,  32,  0.72);
  --glass-border: rgba(94, 234, 212, 0.14);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  LANDING PAGE                                            ║
   ╚══════════════════════════════════════════════════════════╝ */

/* Dark background aktualisieren */
.landing-page-container {
  background: #040b10 !important;
}

/* DarkVeil WebGL Canvas */
#darkveil-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Orbs etwas subtiler hinter dem Shader */
.lp-orb { opacity: 0.12 !important; }

/* Dot-Grid leicht aufwerten */
.lp-bg::after {
  background-image: radial-gradient(circle, rgba(94,234,212,0.05) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

/* Horizontal line accent unter dem Title */
.lp-center::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(94,234,212,0.35), transparent);
  pointer-events: none;
}

/* Title Font-Upgrade */
.lp-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}

.lp-sub {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.01em !important;
  color: rgba(148, 211, 218, 0.45) !important;
}

/* Logo Ring: etwas mehr Tiefe */
.lp-logo-ring {
  background: radial-gradient(ellipse at 35% 35%,
    rgba(20, 184, 166, 0.45) 0%,
    rgba(14, 165, 233, 0.30) 60%,
    transparent 100%) !important;
  border: 1.5px solid rgba(94, 234, 212, 0.40) !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.08),
    0 0 40px rgba(20, 184, 166, 0.40),
    0 0 80px rgba(14, 165, 233, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* CTA-Button: stärkerer Glow + Shimmer-Sweep */
.lp-cta-btn {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%) !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.20),
    0 8px 32px rgba(13, 148, 136, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.40) !important;
  overflow: hidden;
  position: relative;
}

.lp-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  animation: shimmer-sweep 4s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0%, 60%  { left: -60%; opacity: 0; }
  65%      { opacity: 1; }
  85%      { left: 130%; opacity: 0; }
  100%     { left: 130%; }
}

.lp-cta-btn:hover {
  transform: translateY(-5px) scale(1.04) !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.30),
    0 20px 60px rgba(13, 148, 136, 0.70),
    0 6px 20px rgba(0, 0, 0, 0.40) !important;
}

/* Ripple-Effekt (JS-getriggert) */
.btn-ripple {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: ripple-expand 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to { transform: scale(36); opacity: 0; }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  BORDER GLOW — Login Card & Karten                      ║
   ╚══════════════════════════════════════════════════════════╝ */

.border-glow-host {
  --edge-proximity:  0;
  --cursor-angle:    45deg;
  --edge-sensitivity: 28;
  --color-sensitivity: calc(var(--edge-sensitivity) + 18);
  --glow-padding:    44px;
  --cone-spread:     22;
  --fill-opacity:    0.45;

  /* Glow-Farbe: Teal */
  --glow-color:    hsl(174deg 85% 65% / 100%);
  --glow-color-60: hsl(174deg 85% 65% / 60%);
  --glow-color-50: hsl(174deg 85% 65% / 50%);
  --glow-color-40: hsl(174deg 85% 65% / 40%);
  --glow-color-30: hsl(174deg 85% 65% / 30%);
  --glow-color-20: hsl(174deg 85% 65% / 20%);
  --glow-color-10: hsl(174deg 85% 65% / 10%);

  /* Gradient Presets für Vor-/Nachinnen-Schicht */
  --gradient-one:   radial-gradient(at 80% 55%, #0d9488 0px, transparent 55%);
  --gradient-two:   radial-gradient(at 20% 35%, #0369a1 0px, transparent 55%);
  --gradient-three: radial-gradient(at 50% 10%, #5eead4 0px, transparent 50%);
  --gradient-four:  radial-gradient(at 10% 80%, #0891b2 0px, transparent 55%);
  --gradient-five:  radial-gradient(at 90% 90%, #0d9488 0px, transparent 50%);
  --gradient-six:   radial-gradient(at 75% 20%, #38bdf8 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 40% 70%, #14b8a6 0px, transparent 50%);
  --gradient-base:  linear-gradient(#0d9488 0 100%);

  position: relative;
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
}

/* Glowing border layer */
.border-glow-host::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card, rgba(10,18,28,0.75)) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one)   border-box,
    var(--gradient-two)   border-box,
    var(--gradient-three) border-box,
    var(--gradient-four)  border-box,
    var(--gradient-five)  border-box,
    var(--gradient-six)   border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base)  border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity))
              / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%)
  );
  transition: opacity 0.25s ease-out;
}

/* Filled glow layer */
.border-glow-host::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  border: 1px solid transparent;
  background:
    var(--gradient-one)   padding-box,
    var(--gradient-two)   padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four)  padding-box,
    var(--gradient-five)  padding-box,
    var(--gradient-six)   padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base)  padding-box;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add;
  opacity: calc(var(--fill-opacity)
              * (var(--edge-proximity) - var(--color-sensitivity))
              / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
  transition: opacity 0.25s ease-out;
}

/* Outer glow edge-light */
.border-glow-host > .edge-glow-light {
  content: '';
  position: absolute;
  inset: calc(var(--glow-padding) * -1);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity))
              / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  transition: opacity 0.25s ease-out;
}

.border-glow-host > .edge-glow-light::before {
  content: '';
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 4px 0 var(--glow-color-50),
    inset 0 0 10px 0 var(--glow-color-40),
    inset 0 0 22px 0 var(--glow-color-30),
    inset 0 0 42px 2px var(--glow-color-20),
    inset 0 0 60px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 4px 0 var(--glow-color-50),
    0 0 10px 0 var(--glow-color-40),
    0 0 22px 0 var(--glow-color-30),
    0 0 42px 2px var(--glow-color-20),
    0 0 60px 2px var(--glow-color-10);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  LOGIN CARD                                              ║
   ╚══════════════════════════════════════════════════════════╝ */

.login-container {
  background: #040b10 !important;
}

.login-card {
  --bg-card: rgba(8, 16, 28, 0.85);
  background: rgba(8, 16, 28, 0.82) !important;
  border: 1px solid rgba(94, 234, 212, 0.12) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* Login card title font */
.login-card h1 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.login-subtitle {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.01em !important;
}

/* Push-Login-Button verbessern */
.btn-push {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  box-shadow:
    0 0 0 1px rgba(76, 175, 239, 0.25),
    0 4px 16px rgba(76, 175, 239, 0.30),
    0 1px 4px rgba(0, 0, 0, 0.30) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-push:hover {
  box-shadow:
    0 0 0 1px rgba(76, 175, 239, 0.40),
    0 8px 28px rgba(76, 175, 239, 0.50),
    0 2px 8px rgba(0, 0, 0, 0.30) !important;
  transform: translateY(-2px) !important;
}

/* Waiting animation: etwas eleganter */
.push-waiting-anim {
  filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.35));
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  MAIN CLOUD UI — Toolbar & Sidebar                      ║
   ╚══════════════════════════════════════════════════════════╝ */

/* Logo Font */
.logo-text {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

/* Sidebar subtiler */
.sidebar {
  background: rgba(6, 12, 20, 0.96) !important;
  border-right: 1px solid rgba(94, 234, 212, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Toolbar */
.toolbar {
  background: rgba(8, 14, 22, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Action Buttons (Neuer Ordner, Hochladen etc.) */
.action-btn-modern {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.20s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.action-btn-modern:hover {
  border-color: rgba(94, 234, 212, 0.18) !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.10),
    0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.action-btn-primary {
  background: linear-gradient(135deg, #0d9488, #0369a1) !important;
  border-color: rgba(94, 234, 212, 0.22) !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.14),
    0 4px 14px rgba(13, 148, 136, 0.40) !important;
}

.action-btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.28),
    0 6px 22px rgba(13, 148, 136, 0.60) !important;
  transform: translateY(-1px) !important;
}

/* Toolbar Icon-Buttons */
.toolbar-icon-btn {
  transition: all 0.18s ease !important;
  border-radius: 10px !important;
}

.toolbar-icon-btn:hover {
  background: rgba(94, 234, 212, 0.10) !important;
  color: #5eead4 !important;
}

/* Search Bar */
.search-container {
  background: rgba(10, 18, 28, 0.70) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(8px) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.search-container:focus-within {
  border-color: rgba(94, 234, 212, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.08) !important;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  FILE LIST                                               ║
   ╚══════════════════════════════════════════════════════════╝ */

/* File items: subtile Glow auf Hover */
.file-item {
  transition: background 0.18s ease, box-shadow 0.18s ease !important;
  border-radius: 10px !important;
}

.file-item:hover {
  background: rgba(94, 234, 212, 0.05) !important;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.09) !important;
}

/* Breadcrumb font */
.breadcrumb {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500 !important;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  MODALS                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */

.modal-box, .sh-modal, .modal {
  background: rgba(8, 15, 25, 0.94) !important;
  border: 1px solid rgba(94, 234, 212, 0.12) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 32px 80px rgba(0, 0, 0, 0.55) !important;
}

.modal-header, .sh-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.modal-header h3, .sh-modal-header h3 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
}

/* Primary button */
.btn-primary, .sh-modal-btn-ok {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  box-shadow:
    0 0 0 1px rgba(76, 175, 239, 0.25),
    0 4px 14px rgba(76, 175, 239, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover, .sh-modal-btn-ok:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 0 0 1px rgba(76, 175, 239, 0.40),
    0 6px 20px rgba(76, 175, 239, 0.55) !important;
}

/* Form inputs */
.sh-form-input, input[type="text"], input[type="email"], input[type="password"], select {
  background: rgba(6, 14, 24, 0.80) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 8px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.sh-form-input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border-color: rgba(94, 234, 212, 0.30) !important;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.08) !important;
  outline: none !important;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  SMARTGUARD TERMINAL                                     ║
   ╚══════════════════════════════════════════════════════════╝ */

.sg-terminal {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 0.78rem !important;
  line-height: 1.6 !important;
  letter-spacing: 0.01em !important;
}

.sg-terminal-header {
  background: rgba(6, 12, 20, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.sg-term-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
}

/* Terminal: Zeilenfarben für Fehler/Warn/OK */
.sg-terminal .term-error { color: #f87171 !important; }
.sg-terminal .term-warn  { color: #fbbf24 !important; }
.sg-terminal .term-ok    { color: #34d399 !important; }
.sg-terminal .term-info  { color: #94a3b8 !important; }

/* SmartGuard Idle screen: schöneres Logo */
.sg-idle-logo {
  filter: drop-shadow(0 0 24px rgba(20, 184, 166, 0.55)) !important;
}

.sg-idle-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}

.sg-start-btn {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.25),
    0 8px 28px rgba(20, 184, 166, 0.40) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
  position: relative;
}

.sg-start-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: shimmer-sweep 3.5s ease-in-out infinite 1s;
}

.sg-start-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.40),
    0 12px 40px rgba(20, 184, 166, 0.60) !important;
}

/* SmartGuard Topbar */
.sg-topbar {
  background: rgba(6, 12, 20, 0.92) !important;
  border-bottom: 1px solid rgba(94, 234, 212, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  SMART HOME                                              ║
   ╚══════════════════════════════════════════════════════════╝ */

.sh-topbar {
  background: rgba(6, 12, 20, 0.92) !important;
  border-bottom: 1px solid rgba(94, 234, 212, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.sh-topbar-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.sh-stat-card {
  background: rgba(10, 18, 30, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
}

.sh-stat-card:hover {
  border-color: rgba(94, 234, 212, 0.18) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.sh-stat-card-val {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  MP3 PLAYER                                              ║
   ╚══════════════════════════════════════════════════════════╝ */

.mp3-player {
  background: rgba(6, 12, 20, 0.96) !important;
  border-top: 1px solid rgba(94, 234, 212, 0.10) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.track-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  TOAST NOTIFICATIONS                                     ║
   ╚══════════════════════════════════════════════════════════╝ */

.toast {
  background: rgba(8, 16, 28, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500 !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.40),
    0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  TOOLBAR DOCK — macOS Magnification                      ║
   ╚══════════════════════════════════════════════════════════╝ */

/* Container: etwas mehr Raum für Grow-Animation */
.toolbar-end-actions {
  align-items: flex-end !important;
  padding-bottom: 4px !important;
  gap: 6px !important;
  /* Verhindert Clipping beim Vergrößern */
  overflow: visible !important;
}

/* Button-Basis: Größe kommt jetzt vom JS */
.toolbar-end-actions .toolbar-icon-btn {
  width: 36px !important;
  height: 36px !important;
  /* KEIN transition mehr — JS-Spring übernimmt */
  transition: background 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease !important;
  border-radius: 10px !important;
  /* Overflow hidden damit SVG sauber skaliert */
  overflow: visible;
  position: relative;
  flex-shrink: 0;
  /* Vertikaler Anker: wächst nach oben */
  align-self: flex-end;
}

/* SVG skaliert mit der Button-Größe */
.toolbar-end-actions .toolbar-icon-btn svg {
  /* Nimmt immer ~55% der Button-Breite ein */
  width: 55%;
  height: 55%;
  transition: none;
}

/* Hover-Tint bleibt */
.toolbar-end-actions .toolbar-icon-btn:hover {
  background: rgba(94, 234, 212, 0.10) !important;
  border-color: rgba(94, 234, 212, 0.28) !important;
  color: #5eead4 !important;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.12),
    0 4px 16px rgba(94, 234, 212, 0.15) !important;
}

/* Danger-Button: Rot bei Hover */
.toolbar-end-actions .toolbar-icon-btn-danger:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.12),
    0 4px 16px rgba(239, 68, 68, 0.15) !important;
}

/* Status-Dots (SmartHome, SmartGuard) */
.smarthome-dot,
.sg-toolbar-dot {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
}

/* Trash-Badge skaliert mit */
.trash-badge {
  font-size: 0.6rem !important;
  min-width: 16px !important;
  height: 16px !important;
  top: -3px !important;
  right: -3px !important;
}

/* ── Tooltip / Label ── */
.dock-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  padding: 4px 10px;
  background: rgba(6, 12, 20, 0.94);
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 7px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.40),
    0 0 0 1px rgba(94, 234, 212, 0.06);

  /* Eintritt-Animation */
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity  0.16s ease,
    transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kleiner Pfeil nach unten */
.dock-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(94, 234, 212, 0.18);
  border-bottom: none;
}

.dock-tooltip::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(6, 12, 20, 0.96);
  border-bottom: none;
  z-index: 1;
}

.dock-tooltip-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  SCROLLBAR                                               ║
   ╚══════════════════════════════════════════════════════════╝ */

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(94, 234, 212, 0.18);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 234, 212, 0.32);
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  PROGRESS BAR                                            ║
   ╚══════════════════════════════════════════════════════════╝ */

.progress-bar-fill {
  background: linear-gradient(90deg, #0d9488, #38bdf8) !important;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.50) !important;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  animation: progress-shimmer 1.4s ease-in-out infinite;
}

@keyframes progress-shimmer {
  to { left: 130%; }
}