/* Ensure consistent font-size for h1 in article, aside, nav, section */
article h1, aside h1, nav h1, section h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}
/* TemplarRP - Simple Dark Theme */

:root {
  --bg: #1a1a1a;
  --card: #2d2d2d;
  --border: #404040;
  --text: #ffffff;
  --text-dim: #b0b0b0;
  --text-muted: #808080;
  --accent: #4f46e5;
  --success: #10b981;
  --warning: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

.columns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.column {
  flex: 1;
  min-width: 0;
}

.column-6 {
  flex: 0 0 calc(50% - 0.5rem);
}

@media (max-width: 768px) {
  .columns {
    flex-direction: column;
    gap: 0.5rem;
  }

  .column-6 {
    flex: 1;
  }
}

/* Navigation */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: relative;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  z-index: 10;
}

.brand-accent {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile menu toggle (hidden checkbox) */
.mobile-menu-toggle {
  display: none;
}

.navbar-burger {
  display: none;
  flex-direction: column;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.navbar-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animate burger to X when checked */
.mobile-menu-toggle:checked+.navbar-burger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle:checked+.navbar-burger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle:checked+.navbar-burger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-start {
  display: flex;
  gap: 1.5rem;
}

.navbar-item {
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.navbar-item:hover {
  color: var(--text);
  background: rgba(79, 70, 229, 0.1);
  text-decoration: none;
}

.navbar-item.is-active,
.navbar-item.active {
  background: var(--accent);
  color: white;
}

@media (max-width: 768px) {
  .navbar-burger {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 5;
  }

  .mobile-menu-toggle:checked~.navbar-menu {
    transform: translateX(0);
  }

  .navbar-start {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .navbar-item {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    text-align: center;
    min-width: 200px;
  }
}

/* Cards */
.card,
.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-content {
  padding: 0;
}

.application-shell,
.admin-shell,
.leave-shell,
.whitelist-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Forms */
.field {
  margin-bottom: 1.5rem;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.input,
.textarea {
  width: 100%;
  padding: 0.75rem;
  background: #3a3a3a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.select select {
  width: 100%;
  padding: 0.75rem;
  background: #3a3a3a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.select select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Buttons */
.button,
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.button:hover,
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  text-decoration: none;
}

.btn-fullwidth {
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #3730a3;
}

/* Typography */
.title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.title-1 {
  font-size: 3rem;
}

.title-2 {
  font-size: 2.5rem;
}

.title-3 {
  font-size: 2rem;
}

/* Welcome Hero Centering */
.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.welcome-title {
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.welcome-subtitle {
  text-align: center;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 2rem auto;
}

.welcome-apply {
  display: block;
  margin: 0 auto;
  margin-top: 1.5rem;
}

/* Timeline Box Spacing */
.timeline-col {
  display: flex;
  justify-content: center;
}

.timeline-box {
  margin: 1.5rem 0;
  min-width: 220px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .timeline-col {
    margin-bottom: 1.5rem;
  }

  .timeline-box {
    min-width: 0;
    max-width: 100%;
  }
}

.admin-title,
.application-title,
.leave-title,
.whitelist-title,
.rules-title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.hidden {
  display: none;
}

.mb-3 {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }

  .title-1 {
    font-size: 2rem;
  }

  .title-2 {
    font-size: 1.75rem;
  }
}

/* Status Cards for Admin */
.status-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 0.5rem;
  transition: transform 0.2s;
}

.status-card:hover {
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p,
.footer-section a {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
    .return-button {
      display: inline-block;
      margin-bottom: 1rem;
      padding: 0.45rem 0.8rem;
      background: #f5f5f5;
      color: #111;
      border: 1px solid #ddd;
      border-radius: 4px;
      text-decoration: none;
      font-size: 0.95rem;
      cursor: pointer;
    }
    .return-button:hover { background: #eee; }