@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --bg: #05070d;
  --panel: rgba(11, 16, 29, 0.84);
  --panel-2: rgba(9, 13, 24, 0.9);
  --line: #26324d;
  --line-hot: #3e5ea5;
  --text: #eef3ff;
  --muted: #a7b2cf;
  --accent: #5f8dff;
  --accent-2: #00d7b6;
  --danger: #d84f65;
  --warning: #f5b347;
  --ok: #4fd39f;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 620px at 12% -10%, rgba(80, 105, 191, 0.22), transparent 58%),
    radial-gradient(980px 620px at 90% 0%, rgba(0, 188, 210, 0.14), transparent 62%),
    linear-gradient(180deg, #060912, #060a14 45%, #05070d);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(120, 154, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 154, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 92%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(5, 8, 16, 0.87);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-main {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e4ecff;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1460px;
  margin: 20px auto;
  padding: 0 18px 36px;
}

.hero-card,
.card,
.notice {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card,
.card {
  padding: 16px;
}

.hero-card h1,
.card h2 {
  margin-top: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.03em;
}

.hero-card {
  background:
    linear-gradient(125deg, rgba(63, 87, 170, 0.23), rgba(20, 28, 52, 0.8) 45%, rgba(5, 13, 22, 0.88)),
    var(--panel);
}

.hero-card p {
  margin: 0;
  max-width: 820px;
}

.layout-2 {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.stats-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat span {
  color: var(--muted);
}

.stat strong {
  font-size: 1.5rem;
  display: block;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  color: #f5f8ff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #233356;
}

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

.btn-primary {
  background: linear-gradient(180deg, #5c84ea, #3d61bd);
}

.btn-danger {
  background: linear-gradient(180deg, #b8435b, #8e2f42);
}

.btn-outline {
  background: rgba(18, 26, 45, 0.65);
  border-color: #3d5081;
}

.role-badge {
  border: 1px solid #46609d;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(24, 39, 75, 0.7);
}

.notice {
  margin-top: 12px;
  padding: 10px 12px;
}

.notice-success {
  border-color: #3d7f62;
  background: rgba(35, 78, 57, 0.42);
}

.notice-error {
  border-color: #8c4251;
  background: rgba(90, 37, 48, 0.45);
}

.notice-info {
  border-color: #4a689a;
  background: rgba(33, 50, 80, 0.45);
}

.muted {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.span-2 {
  grid-column: span 2;
}

.stack-form {
  display: grid;
  gap: 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

label {
  display: block;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea,
input[type="file"] {
  margin-top: 4px;
  width: 100%;
  border: 1px solid #34466f;
  background: var(--panel-2);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(65, 86, 136, 0.36);
  text-align: left;
  padding: 9px 8px;
  vertical-align: top;
}

th {
  color: #d4deff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
}

.status-pill {
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.75rem;
}

.status-submitted { border-color: #6f8fda; background: rgba(51, 75, 132, 0.42); }
.status-reviewing { border-color: #9e94db; background: rgba(66, 58, 112, 0.42); }
.status-invited_test { border-color: #cfab62; background: rgba(89, 69, 37, 0.45); }
.status-accepted { border-color: #57b583; background: rgba(37, 80, 58, 0.45); }
.status-rejected { border-color: #c56471; background: rgba(92, 41, 52, 0.45); }

.candidate-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.candidate-stats > div {
  border: 1px solid #2f416b;
  border-radius: 10px;
  padding: 10px;
  background: rgba(13, 19, 35, 0.9);
}

.candidate-stats span {
  color: var(--muted);
  display: block;
}

.candidate-stats strong {
  display: block;
  font-size: 1.1rem;
}

.guidance-box {
  margin-top: 12px;
  border: 1px solid #35508f;
  border-radius: 10px;
  padding: 12px;
  background: rgba(18, 28, 53, 0.7);
}

.test-block {
  margin-top: 12px;
  border: 1px solid #3e589f;
  border-radius: 12px;
  padding: 12px;
  background: rgba(10, 17, 34, 0.92);
}

.test-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.timer {
  border: 1px solid #5d82de;
  border-radius: 8px;
  padding: 5px 10px;
  font-family: "Orbitron", sans-serif;
  color: #dce8ff;
}

.question {
  margin: 10px 0;
  border: 1px solid #2f4275;
  border-radius: 10px;
  padding: 9px;
  background: rgba(12, 19, 36, 0.88);
}

.question legend {
  padding: 0 6px;
}

.question label {
  margin-top: 7px;
  display: block;
}

.info-box {
  margin-top: 12px;
  border: 1px solid #425590;
  border-radius: 10px;
  padding: 10px;
  background: rgba(17, 24, 43, 0.76);
}

@media (max-width: 1100px) {
  .layout-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .candidate-stats {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
