@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #05050a;
  --bg-panel: #0d0d16;
  --cyan: #00fff2;
  --magenta: #ff2bd6;
  --violet: #8a2be2;
  --green: #39ff14;
  --amber: #ffd23f;
  --red: #ff2b4d;
  --text: #e8e8ff;
  --dim: #7a7a9a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255, 43, 214, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 0%, rgba(0, 255, 242, 0.15), transparent 50%),
    linear-gradient(180deg, #07070d 0%, #05050a 40%, #0a0614 100%);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 255, 242, 0.25);
}
nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; align-items: center; }
nav a { color: var(--cyan); text-decoration: none; }
nav a:hover { text-shadow: 0 0 8px var(--cyan); }

h1, h2, h3, strong {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.04em;
}

nav strong {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(0, 255, 242, 0.35);
  animation: hue-cycle 8s linear infinite;
}

h3 {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
  margin-top: 2.5rem;
}

@keyframes hue-cycle {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(35deg); }
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  border: 1px solid rgba(138, 43, 226, 0.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.12);
}
thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(0, 255, 242, 0.06);
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 255, 242, 0.2);
}
tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
tbody tr:hover { background: rgba(255, 43, 214, 0.04); }
tbody tr:last-child td { border-bottom: none; }

.capacity-bar {
  width: 100%;
  height: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 242, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.capacity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px rgba(0, 255, 242, 0.6);
  transition: width 0.3s ease;
}

code {
  background: rgba(0, 255, 242, 0.08);
  color: var(--cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 242, 0.25);
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

/* Status pills */
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid currentColor;
}
.status-running {
  color: var(--green);
  background: rgba(57, 255, 20, 0.08);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.55), inset 0 0 6px rgba(57, 255, 20, 0.25);
}
.status-stopped {
  color: var(--red);
  background: rgba(255, 43, 77, 0.08);
  box-shadow: 0 0 10px rgba(255, 43, 77, 0.4);
}
.status-pending, .status-scheduling, .status-provisioning {
  color: var(--amber);
  background: rgba(255, 210, 63, 0.08);
  box-shadow: 0 0 12px rgba(255, 210, 63, 0.5);
  animation: pulse-glow 1.6s ease-in-out infinite;
}
.status-importing {
  color: var(--magenta);
  background: rgba(255, 43, 214, 0.08);
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.55);
  animation: pulse-glow 1.2s ease-in-out infinite;
}
.status-other {
  color: var(--dim);
  background: rgba(122, 122, 154, 0.08);
}
@keyframes pulse-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}

/* Buttons */
button, [type="submit"] {
  font-family: 'Share Tech Mono', monospace;
  border-radius: 6px;
  border: 1px solid var(--cyan);
  background: rgba(0, 255, 242, 0.08);
  color: var(--cyan);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
button:hover { background: rgba(0, 255, 242, 0.2); box-shadow: 0 0 14px rgba(0, 255, 242, 0.5); }
button.contrast { border-color: var(--red); color: var(--red); background: rgba(255, 43, 77, 0.08); }
button.contrast:hover { background: rgba(255, 43, 77, 0.2); box-shadow: 0 0 14px rgba(255, 43, 77, 0.5); }
button.secondary { border-color: var(--violet); color: #c9a2ff; background: rgba(138, 43, 226, 0.08); }
button.secondary:hover { box-shadow: 0 0 14px rgba(138, 43, 226, 0.5); }

/* Forms */
form label {
  display: block;
  margin-bottom: 1rem;
  color: var(--dim);
  font-size: 0.85rem;
}
input, select, textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg-panel);
  border: 1px solid rgba(0, 255, 242, 0.3);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.4);
}

details {
  background: var(--bg-panel);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin: 1rem 0;
}
details summary {
  cursor: pointer;
  color: var(--violet);
  font-weight: 700;
}
details ul { color: var(--dim); font-size: 0.85rem; line-height: 1.6; }
details a { color: var(--cyan); }

article {
  background: rgba(255, 43, 77, 0.08);
  border-left: 4px solid var(--red);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(255, 43, 77, 0.25);
}

a[role="button"] {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0, 255, 242, 0.4);
  transition: all 0.2s ease;
}
a[role="button"]:hover { background: rgba(0, 255, 242, 0.12); box-shadow: 0 0 28px rgba(0, 255, 242, 0.7); }
