/* ============================================================
   SCP FOUNDATION × CLASSIC ROBLOX
   PLEASANT TERMINAL UI — NEOCITIES EDITION
   Design goals:
   - Calm, readable, atmospheric (no eye-strain)
   - Muted greens + slate blues + soft amber accents
   - SCP seriousness without harsh contrast
   - Early Roblox plastic UI, refined
   ============================================================ */


/* ============================================================
   COLOR SYSTEM (SOFT + COHESIVE)
============================================================ */
:root {
  /* Backgrounds */
  --bg-main: #0f1416;        /* deep blue-slate */
  --bg-secondary: #151b1f;   /* panel interior */
  --bg-tertiary: #1c242a;    /* raised elements */

  /* Borders & lines */
  --border-main: #2e3b44;
  --border-soft: #223038;

  /* Primary accents */
  --accent-green: #7fd6b2;   /* SCP calm green */
  --accent-blue: #8fb7e8;    /* Roblox-ish blue */
  --accent-amber: #e7c97a;   /* warnings */
  --accent-red: #d97c7c;     /* softened alert */

  /* Text */
  --text-main: #cfe6e3;
  --text-muted: #9fb4b1;

  /* Fonts */
  --font-terminal: "Courier New", Courier, monospace;
  --font-ui: Tahoma, Verdana, Arial, sans-serif;
}


/* ============================================================
   RESET / BASE
============================================================ */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background:
    radial-gradient(circle at top, #1a2328, var(--bg-main) 60%);
  color: var(--text-main);
  font-family: var(--font-terminal);
  font-size: 14px;
  line-height: 1.6;
}


/* ============================================================
   SUBTLE CRT EFFECT (VERY LIGHT)
============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 9999;
}


/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

h1 {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--border-main);
  padding-bottom: 6px;
}

h2 {
  color: var(--accent-green);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 4px;
}

h3 {
  color: var(--accent-amber);
}

small {
  color: var(--text-muted);
}


/* ============================================================
   LINKS
============================================================ */
a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}


/* ============================================================
   SCP PANELS (CLEAN, MODERN)
============================================================ */
.panel {
  background:
    linear-gradient(
      180deg,
      var(--bg-secondary),
      #12171b
    );
  border: 1px solid var(--border-main);
  border-radius: 6px;
  padding: 18px;
  margin: 24px 0;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35);
  position: relative;
}

.panel::before {
  content: "SECURE • CONTAIN • PROTECT";
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 10px;
  background: var(--bg-main);
  color: var(--accent-amber);
  padding: 2px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}


/* ============================================================
   ROBLOX-INSPIRED WINDOWS
============================================================ */
.window {
  background: linear-gradient(#e8edf2, #cfd7df);
  border: 1px solid #8a96a3;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 6px 18px rgba(0,0,0,0.35);
  font-family: var(--font-ui);
  color: #000;
  overflow: hidden;
}

.window-title {
  background: linear-gradient(#7aa7e5, #5b82c6);
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
}

.window-body {
  padding: 12px;
}


/* ============================================================
   BUTTONS (SOFT PLASTIC)
============================================================ */
.button {
  display: inline-block;
  padding: 7px 16px;
  background: linear-gradient(#f2f5f8, #cfd7df);
  border: 1px solid #8a96a3;
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #000;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 6px rgba(0,0,0,0.25);
}

.button:hover {
  background: linear-gradient(#ffffff, #dde5ed);
}

.button.primary {
  background: linear-gradient(#8fb7e8, #6c95d1);
  border-color: #557db3;
  color: #fff;
}

.button.warning {
  background: linear-gradient(#f3e2a4, #e1c36a);
  border-color: #c1a451;
}


/* ============================================================
   TERMINAL BLOCK (CALM)
============================================================ */
.terminal {
  background: #0c1114;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 16px;
  color: var(--accent-green);
  box-shadow:
    inset 0 0 20px rgba(127,214,178,0.15);
  position: relative;
}

.terminal::before {
  content: "Foundation Terminal";
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 10px;
  background: var(--bg-main);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}


/* ============================================================
   TABLES (DATABASE STYLE)
============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
}

th {
  background: var(--bg-tertiary);
  color: var(--accent-amber);
  font-family: var(--font-ui);
  font-size: 12px;
}

td, th {
  padding: 8px;
  border-bottom: 1px solid var(--border-soft);
}

tr:hover {
  background: rgba(143,183,232,0.08);
}


/* ============================================================
   SCP TAGS / CLASSIFICATIONS
============================================================ */
.tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid;
}

.tag.safe {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.tag.euclid {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.tag.keter {
  color: var(--accent-red);
  border-color: var(--accent-red);
}


/* ============================================================
   NAVIGATION BAR
============================================================ */
.navbar {
  background: linear-gradient(
    180deg,
    #1b2630,
    #121a20
  );
  border-bottom: 1px solid var(--border-main);
  padding: 8px 12px;
}

.navbar a {
  margin-right: 12px;
  font-family: var(--font-ui);
}


/* ============================================================
   FOOTER
============================================================ */
footer {
  margin-top: 40px;
  padding: 20px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-main);
  text-align: center;
}

/* ============================================================
   BUTTON SYSTEM — REFINED / HIGH QUALITY
   Style goals:
   - Soft Roblox-era plastic
   - Modern polish
   - Clear states (idle / hover / active / disabled)
   - Pleasant, not harsh
============================================================ */

/* BASE BUTTON */
.button {
  appearance: none;
  border: 1px solid #8a96a3;
  border-radius: 8px;

  padding: 8px 18px;
  min-height: 32px;

  background:
    linear-gradient(
      180deg,
      #f7fafc 0%,
      #d7e0e9 100%
    );

  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #1c242a;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    0 2px 4px rgba(0,0,0,0.25);

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

/* HOVER */
.button:hover {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #e2eaf2 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 4px 10px rgba(0,0,0,0.35);
}

/* ACTIVE (PRESSED) */
.button:active {
  transform: translateY(1px);
  background:
    linear-gradient(
      180deg,
      #d7e0e9 0%,
      #f7fafc 100%
    );
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.25),
    0 1px 2px rgba(0,0,0,0.25);
}

/* DISABLED */
.button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #e0e6ec;
  box-shadow: none;
}

/* ============================================================
   PRIMARY BUTTON (MAIN ACTION)
============================================================ */
.button.primary {
  background:
    linear-gradient(
      180deg,
      #9ec4f0 0%,
      #6f98d8 100%
    );
  border-color: #5c83b8;
  color: #ffffff;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 3px 8px rgba(0,0,0,0.35);
}

.button.primary:hover {
  background:
    linear-gradient(
      180deg,
      #b1d2f6 0%,
      #7aa3e0 100%
    );
}

.button.primary:active {
  background:
    linear-gradient(
      180deg,
      #6f98d8 0%,
      #9ec4f0 100%
    );
}

/* ============================================================
   SECONDARY / NEUTRAL
============================================================ */
.button.secondary {
  background:
    linear-gradient(
      180deg,
      #eef2f6 0%,
      #d3dae2 100%
    );
}

/* ============================================================
   SUCCESS (CALM SCP GREEN)
============================================================ */
.button.success {
  background:
    linear-gradient(
      180deg,
      #9fe0c5 0%,
      #6bb89a 100%
    );
  border-color: #5aa58b;
  color: #0c2a20;
}

.button.success:hover {
  background:
    linear-gradient(
      180deg,
      #b3ead3 0%,
      #78c7a6 100%
    );
}

/* ============================================================
   WARNING (AMBER)
============================================================ */
.button.warning {
  background:
    linear-gradient(
      180deg,
      #f3e6b3 0%,
      #e2c972 100%
    );
  border-color: #c7ae58;
  color: #3a2f0f;
}

/* ============================================================
   DANGER (SOFT RED, NOT HARSH)
============================================================ */
.button.danger {
  background:
    linear-gradient(
      180deg,
      #e6a5a5 0%,
      #d17b7b 100%
    );
  border-color: #b16666;
  color: #3a1212;
}

/* ============================================================
   ICON BUTTON (OPTIONAL)
============================================================ */
.button.icon {
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   GROUPED BUTTONS (ROBLOX TOOLBARS)
============================================================ */
.button-group {
  display: inline-flex;
}

.button-group .button {
  border-radius: 0;
}

.button-group .button:first-child {
  border-radius: 8px 0 0 8px;
}

.button-group .button:last-child {
  border-radius: 0 8px 8px 0;
}
