/* ========== GLOBAL ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family:
    "SF Mono", "Fira Code", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: #d1fae5;
  text-shadow: 0 0 4px rgba(34, 197, 94, 0.6);
}

/* slight scanline effect */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.4),
    rgba(15, 23, 42, 0.4) 1px,
    rgba(15, 23, 42, 0.1) 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.3;
  z-index: -1;
}

/* ========== NAVBAR ========== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid #22c55e33;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.8)
  );
  backdrop-filter: blur(6px);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbf7d0;
  position: relative;
  padding-right: 0.6rem;
}

.brand::after {
  content: "_";
  position: absolute;
  right: 0;
  animation: cursorBlink 1s steps(2, start) infinite;
  color: #22c55e;
}

@keyframes cursorBlink {
  0%,
  50% {
    opacity: 1;
  }
  50.1%,
  100% {
    opacity: 0;
  }
}

/* ========== LAYOUT ========== */

.container {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1.25rem 3rem;
}

/* ========== PANEL / TERMINAL WINDOW ========== */

.panel {
  border-radius: 10px;
  border: 1px solid #22c55e55;
  background: radial-gradient(circle at top left, #1f2933 0, #020617 60%);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #22c55e33;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.7)
  );
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #bbf7d0;
}

.panel-status {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
}

.panel-body {
  padding: 1rem;
}

/* ========== FORMS / TEXT ========== */

.inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.inline-form input[type="text"],
.inline-form input[type="email"],
.inline-form input[type="password"] {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #22c55e55;
  background: rgba(15, 23, 42, 0.9);
  color: #e5ffea;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.inline-form input:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.4);
}

.info-text {
  font-size: 0.8rem;
  color: #a7f3d0;
}

.error-text {
  font-size: 0.8rem;
  color: #fca5a5;
}

/* ========== TABLE ========== */

.table-wrapper {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table thead {
  border-bottom: 1px solid #22c55e55;
}

.table th,
.table td {
  padding: 0.4rem 0.6rem;
  text-align: left;
  white-space: nowrap;
}

.table th {
  font-weight: 600;
  color: #a7f3d0;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.7);
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

.table tbody tr:hover {
  background: rgba(21, 128, 61, 0.35);
}

/* ========== BUTTONS ========== */

.btn {
  border: 1px solid #22c55e88;
  background: rgba(15, 23, 42, 0.9);
  color: #bbf7d0;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-shadow: inherit;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.06s ease;
}

.btn:hover {
  background: rgba(22, 163, 74, 0.9);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

/* size variants */
.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
}

.btn-sm {
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
}

/* color variants */

.btn-primary {
  border-color: #22c55eaa;
  background: rgba(16, 185, 129, 0.12);
}

.btn-secondary {
  border-color: #38bdf8aa;
  color: #e0f2fe;
}

.btn-warning {
  border-color: #f97316aa;
  color: #ffedd5;
}

.btn-success {
  border-color: #22c55eaa;
  color: #bbf7d0;
}

/* ========== AUTH CARD (for login page) ========== */

.auth-card {
  max-width: 380px;
  margin: 4rem auto;
  padding: 1.5rem 1.8rem;
  border-radius: 10px;
  border: 1px solid #22c55e55;
  background: radial-gradient(circle at top, #1f2937 0, #020617 70%);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.4);
}

.auth-card h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #bbf7d0;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.form-group input {
  width: 100%;
}

/* centered loader text on index page */
.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  font-size: 0.9rem;
  color: #a7f3d0;
}
