@import url('./design-tokens.css');
/* ============================================================================
   TOPBAR GROUPED - Reorganisierte Icon-Leiste
   ============================================================================
   Version: 1.0.0
   Gruppierte Icon-Bereiche: VIEWS | TOOLS | DATA | SETTINGS
   ============================================================================ */

@import url('./design-tokens.css');

/* ============================================================================
   MAIN STRUCTURE
   ============================================================================ */

.topbar-groups {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    height: 100%;
}

.topbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: var(--glass-bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.2s ease;
}

.topbar-group:hover {
    background: var(--glass-bg-light);
    border-color: color-mix(in srgb, var(--color-primary), transparent 80%);
}

/* Group Label (appears on hover) */
.topbar-group::before {
    content: attr(data-label);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: color-mix(in srgb, var(--color-primary), transparent 30%);
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.topbar-group:hover::before {
    opacity: 1;
}

/* VIEWS group should be first (leftmost) */
.topbar-group[data-group="views"] {
    order: -10;
}

/* ============================================================================
   GROUP SEPARATORS
   ============================================================================ */

.topbar-separator {
    width: 1px;
    height: 36px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        color-mix(in srgb, var(--color-primary), transparent 70%) 50%,
        transparent 100%
    );
    margin: 0 4px;
}

/* ============================================================================
   ICON BUTTONS (inside groups)
   ============================================================================ */

.topbar-group .voice-icon-btn {
    width: 85px !important;
    height: 85px !important;
    padding: 2px !important;
    border-radius: var(--radius-xl) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.topbar-group .voice-icon-btn:hover {
    background: rgba(var(--color-primary-light-rgb), 0.15) !important;
    transform: scale(1.08);
}

/* --- Language Switcher (Compact flags) --- */
.language-switcher-compact {
    width: 42px !important;
    height: 85px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    background: rgba(var(--color-primary-rgb), 0.05) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1) !important;
    border-radius: var(--radius-xl) !important;
}

.lang-btn-flag {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.5;
}

.lang-btn-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lang-btn-flag.active {
    opacity: 1;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.5) !important;
    transform: scale(1.1);
}

.lang-btn-flag:hover:not(.active) {
    opacity: 0.8;
    transform: scale(1.15);
}

.topbar-group .voice-icon-btn img.voice-control-icon {
    width: 81px !important;
    height: 81px !important;
}

/* Active/Open state - Modern Neural Design 2026 */
.topbar-group .voice-icon-btn.active,
.topbar-group .voice-icon-btn[data-active="true"] {
    background: rgba(var(--color-primary-light-rgb), 0.08) !important;
    border: 1px solid rgba(var(--color-primary-light-rgb), 0.25) !important;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(var(--color-primary-light-rgb), 0.1) !important;
    transform: translateY(-2px);
}

/* Neural Indicator Dot for active windows */
.topbar-group .voice-icon-btn.active::after,
.topbar-group .voice-icon-btn[data-active="true"]::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 22px;
    height: 3px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    box-shadow: 0 0 12px var(--color-primary-light), 0 0 24px rgba(var(--color-primary-light-rgb), 0.6);
}

.topbar-group .voice-icon-btn.active .voice-control-icon,
.topbar-group .voice-icon-btn[data-active="true"] .voice-control-icon {
    filter: drop-shadow(0 0 12px rgba(var(--color-primary-light-rgb), 0.5)) !important;
}

/* Group-Specific Neural Colors */
.topbar-group[data-group="tools"] .voice-icon-btn.active {
    background: rgba(var(--color-success-rgb), 0.08) !important;
    border-color: rgba(var(--color-success-rgb), 0.3) !important;
}
.topbar-group[data-group="tools"] .voice-icon-btn.active::after {
    background: var(--color-success);
    box-shadow: 0 0 12px var(--color-success);
}

.topbar-group[data-group="data"] .voice-icon-btn.active {
    background: rgba(var(--color-warning-rgb), 0.08) !important;
    border-color: rgba(var(--color-warning-rgb), 0.3) !important;
}
.topbar-group[data-group="data"] .voice-icon-btn.active::after {
    background: var(--color-warning);
    box-shadow: 0 0 12px var(--color-warning);
}

.topbar-group[data-group="settings"] .voice-icon-btn.active {
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}
.topbar-group[data-group="settings"] .voice-icon-btn.active::after {
    background: #a855f7;
    box-shadow: 0 0 12px #a855f7;
}

.topbar-group[data-group="community"] .voice-icon-btn.active {
    background: rgba(var(--color-warning-rgb), 0.08) !important;
    border-color: rgba(var(--color-warning-rgb), 0.3) !important;
}
.topbar-group[data-group="community"] .voice-icon-btn.active::after {
    background: var(--color-warning);
    box-shadow: 0 0 12px var(--color-warning);
}

/* ============================================================================
   SPECIAL BUTTON STYLES
   ============================================================================ */

/* NEW Badge - kleinere Version */
.topbar-group .voice-icon-btn span[style*="NEW"] {
    font-size: 8px !important;
    padding: 1px 4px !important;
    top: -3px !important;
    right: -3px !important;
}

/* Highlighted buttons (Knowledge Match, Framework Universe) */
.topbar-group .knowledge-match-highlight,
.topbar-group .framework-universe-highlight {
    border-width: 1px !important;
}

/* ============================================================================
   GROUP-SPECIFIC COLORS
   ============================================================================ */

/* Views Group - Blau */
.topbar-group[data-group="views"] {
    border-color: rgba(var(--color-secondary-rgb), 0.15);
}
.topbar-group[data-group="views"]:hover {
    border-color: rgba(var(--color-secondary-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--color-secondary-rgb), 0.1);
}
.topbar-group[data-group="views"]::before {
    color: rgba(var(--color-blue-rgb), 0.8);
}

/* Tools Group - Grün */
.topbar-group[data-group="tools"] {
    border-color: rgba(var(--color-success-rgb), 0.15);
}
.topbar-group[data-group="tools"]:hover {
    border-color: rgba(var(--color-success-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--color-success-rgb), 0.1);
}
.topbar-group[data-group="tools"]::before {
    color: rgba(var(--color-success-rgb), 0.8);
}

/* Data Group - Orange */
.topbar-group[data-group="data"] {
    border-color: rgba(var(--color-orange-rgb), 0.15);
}
.topbar-group[data-group="data"]:hover {
    border-color: rgba(var(--color-orange-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--color-orange-rgb), 0.1);
}
.topbar-group[data-group="data"]::before {
    color: rgba(var(--color-orange-rgb), 0.8);
}

/* Settings Group - Lila */
.topbar-group[data-group="settings"] {
    border-color: rgba(var(--color-purple-rgb), 0.15);
}
.topbar-group[data-group="settings"]:hover {
    border-color: rgba(var(--color-purple-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--color-purple-rgb), 0.1);
}
.topbar-group[data-group="settings"]::before {
    color: rgba(var(--color-purple-rgb), 0.8);
}

/* ============================================================================
   OVERFLOW MENU
   ============================================================================ */

.topbar-overflow {
    position: relative;
}

.topbar-overflow-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-overflow-btn:hover {
    background: var(--glass-border);
    color: #fff;
}

.topbar-overflow-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(20, 25, 40, 0.98);
    border: 1px solid color-mix(in srgb, var(--color-primary), transparent 80%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--glass-blur-md));
    padding: 8px;
    display: none;
    z-index: var(--z-max);
}

.topbar-overflow-menu.open {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topbar-overflow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-md);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.15s ease;
}

.topbar-overflow-item:hover {
    background: rgba(var(--color-primary-light-rgb), 0.1);
}

.topbar-overflow-item img {
    width: 24px;
    height: 24px;
}

.topbar-overflow-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 6px 0;
}

/* ============================================================================
   DROPDOWN SUBMENUS (for groups with many items)
   ============================================================================ */

.topbar-group-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: rgba(20, 25, 40, 0.98);
    border: 1px solid color-mix(in srgb, var(--color-primary), transparent 80%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--glass-blur-md));
    padding: 8px;
    display: none;
    z-index: 9998;
}

.topbar-group:hover .topbar-group-dropdown {
    display: block;
    animation: fadeInDown 0.2s ease;
}

/* ============================================================================
   COMPACT MODE (for smaller screens or collapsed state)
   ============================================================================ */

.app-topbar.compact .topbar-group {
    padding: 2px 4px;
}

.app-topbar.compact .topbar-group .voice-icon-btn {
    width: 43px !important;
    height: 43px !important;
}

.app-topbar.compact .topbar-group .voice-icon-btn img.voice-control-icon {
    width: 34px !important;
    height: 34px !important;
}

.app-topbar.compact .topbar-separator {
    height: 28px;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 1600px) {
    .topbar-group .voice-icon-btn {
        width: 62px !important;
        height: 62px !important;
    }

    .topbar-group .voice-icon-btn img.voice-control-icon {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 1400px) {
    .topbar-group::before {
        display: none;
    }

    .topbar-group {
        padding: 3px 6px;
    }

    .topbar-group .voice-icon-btn {
        width: 55px !important;
        height: 55px !important;
    }

    .topbar-group .voice-icon-btn img.voice-control-icon {
        width: 43px !important;
        height: 43px !important;
    }
}

@media (max-width: 1200px) {
    /* Collapse less-used groups into overflow */
    .topbar-group[data-group="settings"] {
        display: none;
    }
}

/* ============================================================================
   TOOLTIPS
   ============================================================================ */

.topbar-group .voice-icon-btn[title] {
    position: relative;
}

/* Custom tooltip styling (works with tippy.js) */
.tippy-box[data-theme~='topbar'] {
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid color-mix(in srgb, var(--color-primary), transparent 80%);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.tippy-box[data-theme~='topbar'] .tippy-arrow {
    color: rgba(20, 25, 40, 0.95);
}
/**
 * topbar-dashboard-clean.css
 *
 * CLEAN ORBITAL DASHBOARD - Professional & User-Friendly
 * Minimalist design focused on usability and clarity
 *
 * Design Philosophy:
 * - Simple is better than complex
 * - Function over form
 * - Smooth, predictable interactions
 * - Clear visual hierarchy
 * - No distracting effects
 *
 * @version 3.0.0 - Clean Edition
 * @date 2025-10-15
 */

/* ============================================
   BRAND LOGO ENHANCEMENT
   ============================================ */

#brand-logo {
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.brand:hover #brand-logo {
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--acc) 60%, transparent));
  transform: scale(1.05);
}

/* Logo glows stronger when dashboard is pinned */
.brand:has(.topbar-dashboard-widget.pinned) #brand-logo {
  filter: drop-shadow(0 0 16px rgba(var(--theme-active-primary, var(--color-primary-rgb)), 0.8))
          drop-shadow(0 0 24px rgba(var(--theme-active-primary, var(--color-primary-rgb)), 0.4));
  transform: scale(1.08);
}

/* ============================================
   CLEAN DASHBOARD CONTAINER
   ============================================ */

.topbar-dashboard-widget {
  position: absolute;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Offset by half width */
  top: calc(100% + 8px); /* Below the brand area */
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease 0.1s,
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
}

/* ONLY expand when pinned (no hover trigger) */
.topbar-dashboard-widget.pinned {
  width: 280px;  /* Optimized for 50px planets */
  height: 280px;
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   GLASS CONTAINER - SUBTLE DEPTH
   ============================================ */

.dashboard-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
              rgba(var(--theme-active-primary, 100, 149, 237), 0.15) 0%,
              rgba(var(--theme-active-secondary, 138, 180, 248), 0.1) 60%,
              rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(var(--glass-blur-md)) saturate(1.5);
  border: 1px solid rgba(var(--theme-active-primary, 255, 255, 255), 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(var(--theme-active-primary, 100, 149, 237), 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease 0.15s,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.brand:hover .dashboard-container {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   ORBITAL NETWORK - CLEAR STRUCTURE
   ============================================ */

.neural-network-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  /* Removed top: 50% / left: 50% / transform: translate(-50%, -50%) */
  /* Container fills parent, child .neural-central-node handles its own centering */
  transform-style: preserve-3d;
  z-index: 10;
}

/* Central logo - focal point */
.neural-central-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;  /* Increased from 42px */
  height: 70px;
  transform: translate(-50%, -50%);
  z-index: 10;
  border-radius: 50%;
  background: rgba(100, 149, 237, 0.08);
  border: 1px solid var(--glass-border-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neural-central-node:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 20px rgba(100, 149, 237, 0.3);
}

.neural-central-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

/* ============================================
   ORBIT RINGS - FUNCTIONAL GUIDES
   ============================================ */

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  opacity: 1;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

.orbit-ring:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Orbit sizes - optimized for 50px planets */
.orbit-ring[data-orbit="1"] {
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
}

.orbit-ring[data-orbit="2"] {
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%);
}

.orbit-ring[data-orbit="3"] {
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
}

.orbit-ring[data-orbit="4"] {
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
}

.orbit-ring[data-orbit="5"] {
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
}

/* ============================================
   PLANETS - CLEAR METRICS
   ============================================ */

.synapse-node {
  position: absolute;
  width: 35px;  /* Reduced from 40px - more compact */
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.75;  /* Increased from 0.6 for better fill visibility */
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              opacity 0.3s ease,
              filter 0.3s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Hover effect - PAUSE animation with strong visibility */
.synapse-node:hover {
  transform: scale(1.35);  /* Increased scale to compensate for smaller size */
  opacity: 0.95;  /* High opacity = low transparency = better visibility */
  z-index: 15;
  filter: brightness(1.2) saturate(1.1);  /* Further reduced glow */
  animation-play-state: paused !important;  /* STOP orbital motion on hover */
}

/* Planet glow - status-based pulse with reduced intensity */
.synapse-node::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  filter: blur(3px);  /* Reduced from 4px */
  opacity: 0.3;  /* Reduced from 0.5 - less glow */
  animation: planetGlowPulse var(--pulse-speed, 3s) ease-in-out infinite;
  z-index: -1;
}

@keyframes planetGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

/* Planet orb - main visual */
.planet-orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.4);  /* Stronger border for better definition */
  background: rgba(0, 0, 0, 0.2);  /* Darker background to make fill stand out */
}

/* Fill level indicator - bottom-to-top progress */
.planet-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.5);  /* Increased from 0.3 - much more visible */
  border-radius: 0 0 50% 50%;
  transition: height 0.4s ease;
  z-index: 1;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);  /* Added subtle glow to fill */
}

/* Glass highlight for 3D effect */
.planet-glass {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle at 30% 30%,
              rgba(255, 255, 255, 0.4) 0%,
              transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

/* Percentage text overlay */
.planet-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;  /* Increased for better readability on 40px planets */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  z-index: 3;
  pointer-events: none;
  line-height: 1;
  letter-spacing: 0.3px;
}

/* ============================================
   ORBITAL ANIMATIONS - ROTATING PLANETS
   ============================================ */

/* Each planet orbits on its ring */
.synapse-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
}

/* Orbit 1 - Profile */
.synapse-node[data-metric="profile"] {
  animation: orbit1 var(--orbit-speed, 40s) linear infinite;
}

/* Orbit 2 - Life Areas */
.synapse-node[data-metric="lifeAreas"] {
  animation: orbit2 var(--orbit-speed, 45s) linear infinite;
}

/* Orbit 3 - Interviews */
.synapse-node[data-metric="interviews"] {
  animation: orbit3 var(--orbit-speed, 50s) linear infinite;
}

/* Orbit 4 - Chat */
.synapse-node[data-metric="chat"] {
  animation: orbit4 var(--orbit-speed, 55s) linear infinite;
}

/* Orbit 5 - Achievements */
.synapse-node[data-metric="achievements"] {
  animation: orbit5 var(--orbit-speed, 60s) linear infinite;
}

/* Orbital keyframes - even circle distribution (all 70px radius) */
@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(70px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
}

@keyframes orbit2 {
  from { transform: rotate(72deg) translateX(70px) rotate(-72deg); }
  to { transform: rotate(432deg) translateX(70px) rotate(-432deg); }
}

@keyframes orbit3 {
  from { transform: rotate(144deg) translateX(70px) rotate(-144deg); }
  to { transform: rotate(504deg) translateX(70px) rotate(-504deg); }
}

@keyframes orbit4 {
  from { transform: rotate(216deg) translateX(70px) rotate(-216deg); }
  to { transform: rotate(576deg) translateX(70px) rotate(-576deg); }
}

@keyframes orbit5 {
  from { transform: rotate(288deg) translateX(70px) rotate(-288deg); }
  to { transform: rotate(648deg) translateX(70px) rotate(-648deg); }
}

/* ============================================
   METRIC COLORS - CLEAR DIFFERENTIATION
   ============================================ */

.synapse-node[data-metric="profile"] {
  background: linear-gradient(135deg, #9D4EDD 0%, #7B2CBF 100%);
  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.4);
}

.synapse-node[data-metric="lifeAreas"] {
  background: linear-gradient(135deg, #2D6A4F 0%, #40916C 100%);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.4);
}

.synapse-node[data-metric="interviews"] {
  background: linear-gradient(135deg, #4361EE 0%, #7209B7 100%);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.4);
}

.synapse-node[data-metric="chat"] {
  background: linear-gradient(135deg, #FB8500 0%, #FFBA08 100%);
  box-shadow: 0 2px 8px rgba(251, 133, 0, 0.4);
}

.synapse-node[data-metric="achievements"] {
  background: linear-gradient(135deg, #FFD60A 0%, #FFC300 100%);
  box-shadow: 0 2px 8px rgba(255, 214, 10, 0.4);
}

/* ============================================
   TOOLTIPS - MODERN GLASSMORPHISM REDESIGN
   ============================================ */

/* Main tooltip box - solid background for maximum readability */
.tippy-box[data-theme~='expertaizer-metric'] {
  background: linear-gradient(145deg,
              rgba(15, 20, 35, 0.98) 0%,
              rgba(10, 15, 25, 0.99) 100%);
  backdrop-filter: blur(var(--glass-blur-md)) saturate(1.8) brightness(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur-md)) saturate(1.8) brightness(1.2);
  border: 2px solid rgba(100, 150, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 0;
  font-size: var(--text-base);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.9),
    0 6px 16px rgba(0, 0, 0, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Content padding */
.tippy-box[data-theme~='expertaizer-metric'] .tippy-content {
  padding: 16px 18px;
  position: relative;
  z-index: 1;
}

/* Subtle gradient overlay for depth */
.tippy-box[data-theme~='expertaizer-metric']::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%,
              rgba(255, 255, 255, 0.12) 0%,
              transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Arrow styling for all directions */
.tippy-box[data-theme~='expertaizer-metric'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.tippy-box[data-theme~='expertaizer-metric'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.tippy-box[data-theme~='expertaizer-metric'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: rgba(255, 255, 255, 0.28);
}

.tippy-box[data-theme~='expertaizer-metric'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: rgba(255, 255, 255, 0.28);
}

/* Tooltip content layout */
.metric-tooltip-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 200px;
  max-width: 280px;
}

/* Header with icon and name */
.metric-tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 1);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.metric-tooltip-icon {
  font-size: var(--text-2xl);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Large value display */
.metric-tooltip-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: linear-gradient(135deg,
              var(--metric-color, #8AB4F8) 0%,
              color-mix(in srgb, var(--metric-color, #8AB4F8) 80%, white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--metric-color, #8AB4F8) 50%, transparent));
}

/* Beautiful progress bar */
.metric-tooltip-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.metric-tooltip-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,
              var(--metric-color, #8AB4F8) 0%,
              color-mix(in srgb, var(--metric-color, #8AB4F8) 70%, white) 50%,
              var(--metric-color, #8AB4F8) 100%);
  border-radius: var(--radius-xs);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--metric-color, #8AB4F8) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
}

/* Animated shimmer on progress bar */
.metric-tooltip-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
              transparent 0%,
              rgba(255, 255, 255, 0.3) 50%,
              transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}

/* Trend information */
.metric-tooltip-trend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
}

.metric-tooltip-trend-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* Description text */
.metric-tooltip-description {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.4;
  margin-top: -6px;
}

/* ============================================
   ANIMATIONS - SMOOTH & PREDICTABLE
   ============================================ */

/* Fade in animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for urgent status */
@keyframes urgentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.synapse-node[data-status="urgent"] {
  animation: urgentPulse 1.5s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1366px) {
  .topbar-dashboard-widget {
    left: calc(100% + 8px);
  }

  .brand:hover .topbar-dashboard-widget {
    width: 200px;
    height: 200px;
  }

  .orbit-ring[data-orbit="1"] { width: 60px; height: 60px; }
  .orbit-ring[data-orbit="2"] { width: 90px; height: 90px; }
  .orbit-ring[data-orbit="3"] { width: 120px; height: 120px; }
  .orbit-ring[data-orbit="4"] { width: 150px; height: 150px; }
  .orbit-ring[data-orbit="5"] { width: 180px; height: 180px; }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.synapse-node,
.orbit-ring,
.neural-central-node {
  will-change: transform;
}

/* Cleanup for Topbar Hover Artifacts (Standard 2026) */
/* This removes the "45-degree boxes" or unaligned shimmers */
.topbar-group .voice-icon-btn::before {
    display: none !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/**
 * Neural Hub Extras (Standard 2026)
 * Phase 2 Quickwins: Filter Badges & Sync LED
 */

/* Dashboard Filter Badge (Quickwin 6) */
.dashboard-badge-wrapper {
    position: relative;
}

.dashboard-filter-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #00f0ff;
    color: #000;
    font-size: var(--text-xs);
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
    border: 1px solid #fff;
    pointer-events: none;
    z-index: 5;
}

/* Dashboard Health Dot — System-Status-Indikator am Dashboard-Icon */
.dashboard-health-dot {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.5);
    background: #666;
    pointer-events: none;
    z-index: 5;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.dashboard-health-dot.healthy {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.dashboard-health-dot.has-issues {
    background: #f43f5e;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.8);
    animation: health-dot-pulse 2s ease-in-out infinite;
}

@keyframes health-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Sync Status LED (Quickwin 8) */
.sync-status-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 10px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sync-status-led .led-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    transition: all 0.3s ease;
}

/* LED States */
.sync-status-led.syncing .led-dot {
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff, 0 0 15px rgba(0, 240, 255, 0.5);
    animation: led-pulse 1s infinite alternate;
}

.sync-status-led.error .led-dot {
    background: #ff0055;
    box-shadow: 0 0 8px #ff0055;
}

.sync-status-led.online .led-dot {
    background: #00ffa2;
    box-shadow: 0 0 5px #00ffa2;
}

/* OpenClaw LED Specifics (Adapted for Status Group) */
.diagnostic-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 10px;
    cursor: pointer;
    padding: 2px;
    margin-right: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagnostic-btn:hover {
    opacity: 1;
    color: var(--accent-light);
    transform: scale(1.1);
}

.openclaw-led {
    cursor: pointer !important;
}

.openclaw-led.online .led-dot {
    background: #00d4ff !important; /* Cyan for OpenClaw */
    box-shadow: 0 0 8px #00d4ff, 0 0 15px rgba(0, 212, 255, 0.4) !important;
}

.openclaw-led.active .led-dot {
    background: #bc13fe !important; /* Purple pulsing when message */
    box-shadow: 0 0 10px #bc13fe, 0 0 20px rgba(188, 19, 254, 0.6) !important;
    animation: led-pulse 0.5s infinite alternate !important;
}

@keyframes led-pulse {
    from { opacity: 0.4; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.1); }
}







