/* ExposeGPU Console - Dark Mode Tokens */
:root {
  --bg: #0b0b10;
  --panel: #11121a;
  --muted: #1a2030;
  --border: #2a3246;
  --text: #e8e8ee;
  --text-dim: #a9b2c3;
  --pri: #7cf3ff; /* brand-aligned cyan */
  --pri-600: #5abbd9;
  --accent-2: #b697ff; /* keep purple for future use */
  --radius: 14px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(17, 18, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  margin-bottom: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--muted);
}

.nav-link.active {
  color: var(--pri);
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pri), var(--accent-2));
  color: #0b0b10;
}

.account-info {
  color: var(--text-dim);
  font-size: 13px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 560px;
  margin: 40px auto;
}

.card h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
}

.card .subtitle {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
}

.input {
  width: 100%;
  background: #0f1320;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--pri);
}

.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--pri);
  border: 1px solid var(--pri-600);
  color: #0a0d14;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: var(--pri-600);
}

.btn:disabled,
.btn.is-busy {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  background: var(--muted);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.small {
  color: var(--text-dim);
  font-size: 12px;
}

.small a {
  color: var(--pri);
  text-decoration: none;
}

.small a:hover {
  text-decoration: underline;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.banner {
  background: #0f1a2a;
  border: 1px dashed var(--pri);
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  position: relative;
}

.banner-error {
  background: #2a1818;
  border-color: #ff6b6b;
  color: #ffb4b4;
}

.banner-warning {
  background: #2a2218;
  border-color: #f39c12;
  color: #ffd699;
}

.banner-success {
  background: #182a1a;
  border-color: #2ecc71;
  color: #a8ffb8;
}

.banner-info {
  background: #0f1a2a;
  border-color: var(--pri);
  color: var(--pri);
}

.copy {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  background: #0e0f14;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.hidden {
  display: none !important;
}

.offline-banner {
  background: #2a1818;
  border: 1px solid #ff6b6b;
  color: #ffb4b4;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  text-align: center;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.project-item:hover {
  border-color: var(--pri);
}

.project-name {
  font-weight: 600;
}

.project-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.error-msg {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 8px;
}

.success-msg {
  color: #2ecc71;
  font-size: 13px;
  margin-top: 8px;
}

.section {
  margin-bottom: 32px;
}

.section h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Provisioning Screen - Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--pri);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Provisioning Screen - Phase Stepper */
.phase-item {
  padding: 10px 14px;
  margin: 4px 0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.phase-item.completed {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.phase-item.active {
  background: var(--muted);
  color: var(--text);
  font-weight: 500;
  border: 1px solid var(--pri);
}

.phase-item.pending {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
}
