@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Outfit:wght@400;600&display=swap');

body {
  font-family: 'Outfit', sans-serif;
  /* Add background image with a dark overlay to maintain readability */
  background: linear-gradient(rgba(30, 30, 47, 0.8), rgba(42, 42, 64, 0.9)), url('../asset/bg.jpg') center/cover no-repeat;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pixel-font {
  font-family: 'Press Start 2P', cursive;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Status Indicator Colors */
.status-RUNNING { color: #4ade80; text-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }
.status-TERMINATED { color: #f87171; text-shadow: 0 0 10px rgba(248, 113, 113, 0.5); }
.status-PROVISIONING, .status-STAGING { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.5); }
.status-STOPPING { color: #fb923c; text-shadow: 0 0 10px rgba(251, 146, 60, 0.5); }
.status-UNKNOWN { color: #9ca3af; }

/* Button Animations */
.btn-action {
  transition: all 0.2s ease;
}
.btn-action:active {
  transform: scale(0.95);
}
.btn-action:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.loader {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: none; /* hidden by default */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cyber Terminal style rules */
.terminal-container {
  background: rgba(10, 12, 18, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.terminal-log {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.terminal-log::-webkit-scrollbar {
  width: 4px;
}
.terminal-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* Flashing network pulse indicators */
@keyframes pulse-fast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.pulse-rx {
  animation: pulse-fast 1s infinite;
}
.pulse-tx {
  animation: pulse-fast 1.2s infinite;
}
