/* Glubina MCP Hub - Design System v2.0
   Based on UI-kit design specifications
   Soviet retro-futurism meets dark cyberpunk
*/

:root {
  /* Colors */
  --bg-void:        #040810;
  --bg-deep:        #060d1a;
  --bg-surface:     #0a1628;
  --bg-panel:       #0d1e35;
  --bg-card:        #0f2340;
  --bg-elevated:    #122848;

  --border-faint:   rgba(0, 140, 255, 0.08);
  --border-subtle:  rgba(0, 160, 255, 0.15);
  --border-mid:     rgba(0, 180, 255, 0.25);
  --border-active:  rgba(0, 200, 255, 0.5);
  --border-glow:    rgba(0, 220, 255, 0.8);

  --accent-primary: #00b4ff;
  --accent-bright:  #00d4ff;
  --accent-pulse:   #00eeff;
  --accent-amber:   #ff8c00;
  --accent-amber-d: #cc6a00;
  --accent-green:   #00ff9d;
  --accent-red:     #ff3355;
  --accent-purple:  #8b5cf6;

  --text-primary:   #e8f4ff;
  --text-secondary: #8ab4d4;
  --text-muted:     #4a7090;
  --text-disabled:  #2a4560;

  /* Typography - System fonts with full Cyrillic support */
  --font-display:   'Arial Black', 'Arial', sans-serif;
  --font-mono:      'Consolas', 'Courier New', monospace;
  --font-ui:        'Consolas', 'Courier New', monospace;
  --font-badge:     'Arial', sans-serif;

  /* Effects - scaled 125% */
  --glow-sm:    0 0 10px rgba(0, 180, 255, 0.3);
  --glow-md:    0 0 20px rgba(0, 180, 255, 0.4), 0 0 40px rgba(0, 120, 255, 0.2);
  --glow-lg:    0 0 30px rgba(0, 200, 255, 0.5), 0 0 60px rgba(0, 140, 255, 0.3);
  --glow-amber: 0 0 15px rgba(255, 140, 0, 0.4), 0 0 30px rgba(255, 100, 0, 0.2);
  --glow-green: 0 0 10px rgba(0, 255, 157, 0.4);

  --radius-sm:  3px;
  --radius-md:  5px;
  --radius-lg:  8px;
  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,140,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,140,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   APP HEADER with Logo and Tabs
═══════════════════════════════════════════ */
.app-header {
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 25px;
  display: flex;
  align-items: center;
  height: 65px;
  gap: 0;
  flex-shrink: 0;
}

.app-logo-block {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-right: 35px;
  flex-shrink: 0;
}

.app-logo-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.3);
}

.app-logo-ring-1 { width: 40px; height: 40px; opacity: 0.9; }
.app-logo-ring-2 { width: 30px; height: 30px; opacity: 0.6; }
.app-logo-ring-3 { width: 20px; height: 20px; opacity: 0.4; }

.app-logo-center {
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: var(--glow-md);
  z-index: 1;
}

.app-logo-name {
  display: flex;
  align-items: center;
}

.app-logo-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.app-logo-title .depth-accent {
  color: var(--accent-bright);
  text-shadow: var(--glow-sm);
}

.app-tabs {
  display: flex;
  height: 65px;
  flex: 1;
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  position: relative;
}

.app-tab:hover {
  color: var(--text-secondary);
}

.app-tab.active {
  color: var(--accent-bright);
  border-color: var(--accent-primary);
}

.tab-icon {
  font-size: 16px;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-area {
  flex: 1;
  overflow-y: auto;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ═══════════════════════════════════════════
   STATUSBAR (bottom)
═══════════════════════════════════════════ */
.statusbar {
  height: 30px;
  background: var(--bg-void);
  border-top: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 20px;
  flex-shrink: 0;
}

.statusbar-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.statusbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: var(--glow-green);
}

.statusbar-dot.warning {
  background: var(--accent-amber);
  box-shadow: var(--glow-amber);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes pulse-ring {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.08); }
  100% { opacity: 0.8; transform: scale(1); }
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.pulse-anim { 
  animation: pulse-ring 2s ease-in-out infinite; 
}

.blink-anim { 
  animation: blink-dot 1.4s ease-in-out infinite; 
}
