@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  color: var(--text-primary);
}

/* O Mapa ocupa 100% do fundo */
#viewDiv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Utilitário Glassmorphism */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Layout Grid */
.sidebar {
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 240px;
  border-radius: 12px;
  z-index: 10;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.nav-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item.active, .nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.main-content {
  position: absolute;
  left: 288px;
  top: 16px;
  right: 360px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
}

.search-bar {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: 6px;
  color: white;
  width: 300px;
  font-family: inherit;
}

.topbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.copilot-btn {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.kpi-container {
  display: flex;
  gap: 16px;
}

.kpi-card {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-title {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 600;
}

.alert-glow {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.right-panel {
  position: absolute;
  right: 16px;
  top: 16px;
  bottom: 16px;
  width: 320px;
  border-radius: 12px;
  z-index: 10;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.live-indicator {
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.event-card {
  padding: 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 13px;
  line-height: 1.5;
  border-left: 3px solid var(--accent-amber);
}

.event-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
