:root {
  --bg-color: #0d1117;
  --accent-color: #0078d4;
  --progress-height: 4px;
  --transition-speed: 1s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Container de Iframes para transição suave */
.dashboard-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-speed) ease-in-out;
  z-index: 1;
}

.dashboard-container.active {
  opacity: 1;
  z-index: 2;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

/* Barra de Progresso */
#progress-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--progress-height);
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: width 0.1s linear;
}

/* Overlay de Status (Opcional, para debug ou info) */
#status-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 30px;
  font-size: 14px;
  backdrop-filter: blur(5px);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

body:hover #status-overlay {
  opacity: 1;
}
