@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Montserrat:wght@300;400;600&display=swap");

:root {
  --bg: #f6f4ff;
  --bg-2: #ffffff;
  --accent: #c1b4f8;
  --accent-2: #c1b4f8;
  --text: #1b1530;
  --muted: #4a4563;
  --card: rgba(255, 255, 255, 0.92);
  --highlight: rgba(193, 180, 248, 0.2);
}

body {
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  background: radial-gradient(circle at top, #efeaff 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.05) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.05) 95%);
  background-size: 48px 48px;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

.nav-glass {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(27, 21, 48, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

.card-glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.badge-orb {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), #f1ecff);
  color: #1b1530;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 10px 22px rgba(193, 180, 248, 0.35);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #efeaff);
  border: none;
  color: #1b1530;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline-light {
  border-color: rgba(27, 21, 48, 0.25);
  color: var(--text);
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 180, 248, 0.6);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  box-shadow: none;
  border-color: var(--accent);
}

.output-title {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.output-box {
  background: #f2efff;
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  max-height: 220px;
  overflow: auto;
}

.log-preview {
  max-height: 420px;
  white-space: pre-wrap;
}

.audit-table th {
  color: var(--muted);
  font-weight: 600;
}

.audit-details {
  background: #f6f4ff;
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
}

.output-error {
  border: 1px solid rgba(255, 79, 79, 0.5);
}

.command-list {
  display: grid;
  gap: 16px;
}

.command-card {
  border-radius: 16px;
  border: 1px solid rgba(27, 21, 48, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
}

.command-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.command-title {
  font-weight: 600;
  color: var(--text);
}

.command-cmd {
  font-size: 0.85rem;
  color: var(--muted);
}

.command-output {
  margin-top: 12px;
  background: #f6f4ff;
  border-radius: 12px;
  padding: 12px;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  color: #1b1530;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  display: inline-block;
}

.badge.bg-info .status-dot {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.alert {
  border-radius: 12px;
}

code {
  color: #000000;
  font-weight: 800;
}

.card-glass::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(193, 180, 248, 0.6), rgba(193, 180, 248, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lead,
.text-muted {
  color: var(--muted) !important;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 16px;
  }
}
.card-glass h1,
.card-glass h2,
.card-glass h3,
.card-glass h4,
.card-glass h5 {
  color: var(--text);
}

.card-glass h1,
.card-glass h2,
.card-glass h3 {
  font-weight: 600;
}
