@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 {
  --bg-app: #07090e;
  --bg-surface: #0b0f19;
  --bg-card: rgba(11, 15, 25, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(255, 255, 255, 0.14);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-app);
  color: #e2e8ea;
  min-height: 100vh;
  overflow-x: hidden;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Obsidian Ambient Top Edge Shimmer */
.shimmer-william::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, #10b981, transparent);
  pointer-events: none;
}

.shimmer-alexis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #38bdf8, transparent);
  pointer-events: none;
}

.shimmer-amber::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, transparent);
  pointer-events: none;
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
}

.glass-card {
  background: rgba(16, 22, 36, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(20, 28, 46, 0.75);
}

/* Pulse indicator */
@keyframes live-dot {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-emerald {
  animation: live-dot 2s infinite ease-in-out;
}

/* Animation on new incoming card in lateral stream */
@keyframes slide-in-activity {
  0% {
    opacity: 0;
    transform: translateX(18px) scale(0.96);
    background-color: rgba(59, 130, 246, 0.2);
  }
  60% {
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 1;
    background-color: rgba(14, 20, 34, 0.65);
  }
}

.animate-stream-item {
  animation: slide-in-activity 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Minimal scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Reference image exact style utilities */
.profile-card-frame {
  background: linear-gradient(180deg, rgba(13, 18, 28, 0.95) 0%, rgba(9, 12, 20, 0.98) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6), 0 0 15px -3px rgba(16, 185, 129, 0.15);
  transition: all 0.25s ease;
}

.profile-card-frame:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 6px 25px -2px rgba(0, 0, 0, 0.7), 0 0 20px -2px rgba(16, 185, 129, 0.25);
}

.neon-ring-online {
  border: 2px solid #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.activity-horizontal-card {
  background: rgba(13, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.activity-horizontal-card:hover {
  background: rgba(18, 24, 38, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
}

.pill-hoy {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pill-mes {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Operator Portal Button & Modes */
.btn-operator-launch {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #07090e;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-operator-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.operator-portal-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 15, 25, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.7);
}

/* Innovative Telemetry Card (GOAT Prime Live Feed) */
.goat-telemetry-card {
  background: linear-gradient(135deg, rgba(13, 19, 33, 0.85) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.goat-telemetry-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(18, 25, 42, 0.95) 0%, rgba(12, 17, 28, 0.98) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.7);
}

/* Operator Card */
.operator-card-frame {
  background: linear-gradient(180deg, rgba(15, 20, 32, 0.95) 0%, rgba(10, 14, 24, 0.98) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6), 0 0 15px -3px rgba(139, 92, 246, 0.15);
  transition: all 0.25s ease;
}

.operator-card-frame:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 6px 25px -2px rgba(0, 0, 0, 0.7), 0 0 20px -2px rgba(139, 92, 246, 0.25);
}

/* Chat bubble styling */
.chat-bubble-client {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.chat-bubble-model {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-bottom-right-radius: 4px;
}

/* Tooltip micro-interaction */
[data-tooltip] {
  position: relative;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 50;
  pointer-events: none;
}

/* Compact Live Stream Cards when Screen/Window is Shrunk (Alta densidad) */
@media (max-width: 1024px) {
  .goat-telemetry-card {
    padding: 0.35rem 0.5rem !important;
    border-radius: 0.75rem !important;
  }
  .goat-telemetry-card > * + * {
    margin-top: 0.2rem !important;
  }
  .goat-telemetry-card img {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }
  .goat-telemetry-card .srv-icon-box {
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 0.5rem !important;
  }
  .goat-telemetry-card .srv-icon-box svg {
    width: 0.95rem !important;
    height: 0.95rem !important;
  }
  .goat-telemetry-card .card-op-name,
  .goat-telemetry-card .card-client-name {
    font-size: 0.65rem !important;
    line-height: 0.85rem !important;
    max-width: 70px !important;
    margin-top: 0.1rem !important;
  }
  .goat-telemetry-card .card-op-sub,
  .goat-telemetry-card .card-client-sub {
    font-size: 0.55rem !important;
    line-height: 0.75rem !important;
    max-width: 70px !important;
  }
  .goat-telemetry-card .card-srv-amount {
    font-size: 0.7rem !important;
    line-height: 0.85rem !important;
    margin-top: 0.1rem !important;
  }
  .goat-telemetry-card .card-header-bar {
    padding-bottom: 0.2rem !important;
    font-size: 0.65rem !important;
  }
  .goat-telemetry-card .card-profile-badge {
    padding: 0.1rem 0.4rem !important;
    font-size: 0.6rem !important;
  }
  .goat-telemetry-card .card-grid-cols {
    padding-top: 0.15rem !important;
    padding-bottom: 0.1rem !important;
    gap: 0.25rem !important;
  }
}

/* Admin Inspection Banner Animation */
@keyframes bounce-once {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}
.animate-bounce-once {
  animation: bounce-once 0.6s ease-in-out;
}




/* Role visibility must win over responsive grid/flex display utilities. */
#subview-admin.hidden, #subview-operator.hidden { display: none !important; }

