/* style.css - green phosphor CRT theme */

@import url('https://cdnjs.cloudflare.com/ajax/libs/vt323/1.0.0/vt323.min.css');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #33ff33;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 20px;
  line-height: 1.25;
}

.crt {
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(ellipse at center, #001500 0%, #000000 100%);
}

.screen {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 28px 30px;
  border: 2px solid #1a5c1a;
  box-shadow: 0 0 20px #0f0, inset 0 0 40px rgba(0, 255, 0, 0.08);
  position: relative;
  background: rgba(0, 20, 0, 0.4);
}

/* scanline flicker overlay */
.crt::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 2px,
    transparent 3px
  );
  z-index: 999;
}

.banner {
  color: #55ff55;
  text-shadow: 0 0 6px #33ff33;
  font-size: 12px;
  line-height: 1.1;
  overflow-x: auto;
  margin: 0 0 6px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 17px;
  color: #99ffaa;
}

.sitename { color: #aaffaa; letter-spacing: 1px; }

.rule {
  border: none;
  border-top: 1px dashed #226622;
  margin: 10px 0;
}

a {
  color: #66ffff;
  text-decoration: none;
}
a:hover {
  color: #ffff66;
  text-decoration: underline;
}

h1, h2, h3 {
  color: #ffff55;
  text-shadow: 0 0 6px rgba(255,255,80,0.5);
  margin: 14px 0 8px;
  font-weight: normal;
  letter-spacing: 1px;
}

p { margin: 8px 0; }

.dim { color: #2f8a2f; }
.warn { color: #ff5555; }
.ok { color: #66ff66; }

.menu-list { list-style: none; padding: 0; margin: 10px 0; }
.menu-list li { padding: 3px 0; }
.menu-list .key {
  display: inline-block;
  width: 2ch;
  color: #ffff55;
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}
th, td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid #1a4d1a;
}
th {
  color: #ffff55;
  border-bottom: 1px solid #33ff33;
  font-weight: normal;
}
tr:hover td { background: rgba(51, 255, 51, 0.06); }

input[type=text], input[type=password], input[type=email], textarea, select {
  background: #001a00;
  border: 1px solid #33ff33;
  color: #33ff33;
  font-family: inherit;
  font-size: 18px;
  padding: 6px 8px;
  width: 100%;
  max-width: 480px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #ffff55;
  box-shadow: 0 0 8px rgba(255,255,80,0.4);
}
textarea { max-width: 100%; }

label { display: block; margin: 10px 0 3px; color: #99ffaa; }

.btn, button, input[type=submit] {
  background: #002200;
  color: #55ff55;
  border: 1px solid #33ff33;
  font-family: inherit;
  font-size: 18px;
  padding: 6px 18px;
  cursor: pointer;
  margin-top: 10px;
}
.btn:hover, button:hover, input[type=submit]:hover {
  background: #33ff33;
  color: #001a00;
}

.msg-box {
  border: 1px solid #1a5c1a;
  padding: 10px 14px;
  margin: 10px 0;
  background: rgba(0,255,0,0.03);
}
.msg-meta {
  color: #2f8a2f;
  font-size: 15px;
  margin-bottom: 6px;
}
.msg-body { white-space: pre-wrap; word-wrap: break-word; }

.alert-box {
  border: 1px solid #ff5555;
  color: #ff8888;
  padding: 8px 12px;
  margin: 10px 0;
  background: rgba(255,0,0,0.06);
}
.notice-box {
  border: 1px solid #33ff33;
  color: #aaffaa;
  padding: 8px 12px;
  margin: 10px 0;
  background: rgba(0,255,0,0.05);
}

.footer {
  margin-top: 16px;
  font-size: 15px;
  color: #77dd77;
}

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ascii-divider {
  color: #226622;
  overflow-x: auto;
  white-space: pre;
  font-size: 14px;
}
