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

:root {
  --bg: #0b1016;
  --bg-2: #0f1520;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8f1ff;
  --muted: #9fb3c8;
  --accent: #00e0c6;
  --accent-2: #29b6ff;
  --danger: #ff6b6b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body.tech-ui {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, rgba(0, 224, 198, 0.25), transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(41, 182, 255, 0.2), transparent 35%),
    radial-gradient(circle at 70% 85%, rgba(0, 224, 198, 0.2), transparent 40%),
    linear-gradient(160deg, #0a0f15 0%, #0c131d 50%, #0b1119 100%);
  min-height: 100vh;
  position: relative;
}

body.tech-ui::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 8px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 14px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body.tech-ui .container,
body.tech-ui .navbar,
body.tech-ui .main,
body.tech-ui footer {
  position: relative;
  z-index: 1;
}

.brand-logo {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text);
}

.brand-logo span {
  color: var(--accent);
}

.tech-nav {
  background: rgba(10, 15, 21, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-nav .nav-link {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tech-nav .nav-link:hover {
  color: var(--accent);
}

.tech-nav .btn-outline-primary {
  color: var(--accent);
  border-color: rgba(0, 224, 198, 0.45);
  background: transparent;
}

.tech-nav .btn-outline-primary:hover {
  background: rgba(0, 224, 198, 0.15);
  border-color: rgba(0, 224, 198, 0.7);
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card.bg-light,
.bg-white {
  background: var(--surface-strong) !important;
  color: var(--text) !important;
}

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

.badge.text-bg-light {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.badge.text-bg-primary {
  background: rgba(0, 224, 198, 0.2) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(0, 224, 198, 0.5) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #00e0c6, #29b6ff) !important;
  border: none !important;
  color: #071018 !important;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 224, 198, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 224, 198, 0.45);
}

.btn-outline-secondary {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.btn-outline-danger {
  border-color: rgba(255, 107, 107, 0.5) !important;
  color: #ff9b9b !important;
}

.btn-outline-danger:hover {
  background: rgba(255, 107, 107, 0.15) !important;
}

.form-control,
.form-select {
  background: rgba(15, 22, 32, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text) !important;
}

.form-control::placeholder {
  color: rgba(159, 179, 200, 0.8) !important;
}

.list-group-item {
  background: rgba(10, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.list-group-item:hover {
  background: rgba(0, 224, 198, 0.08);
}

.pagination .page-link {
  background: rgba(10, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.pagination .page-item.active .page-link {
  background: rgba(0, 224, 198, 0.25);
  border-color: rgba(0, 224, 198, 0.6);
  color: var(--accent);
}

.alert {
  background: rgba(10, 16, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.message-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tab-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 16, 24, 0.7);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(0, 224, 198, 0.25);
  color: var(--accent);
  border-color: rgba(0, 224, 198, 0.6);
}

.tab-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message-body {
  margin-top: 16px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
}

.message-body[data-panel="html"],
.message-body[data-panel="plain"] {
  display: none;
}

.message-source {
  display: none;
}

.message-body[data-panel="plain"] {
  display: block;
}

.message-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #0b1119;
}

.message-source {
  margin-top: 16px;
  padding: 16px;
  background: #0b1119;
  color: #bfe9ff;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 12px;
}

footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tracking-wider {
  letter-spacing: 1.5px;
}

@media (max-width: 768px) {
  .tech-nav .btn-outline-primary {
    margin-top: 6px;
  }
}
