html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
a {
  color: rgb(126 172 239);
  text-decoration: none;
}

@media (min-width: 992px) {
  .sidebar {
    min-height: 100vh;
    border-right: 1px solid #222;
    background: #111 !important;
    color: #ccc;
  }
  .main-content {
    margin-left: 220px;
    background: #181818;
    color: #e0e0e0;
  }
}
@media (max-width: 991.98px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    background: #181818;
    color: #e0e0e0;
  }
  body {
    padding-top: 56px; /* Height of the navbar */
  }
  .navbar {
    border-bottom: 1px solid #333;
  }
}

/* Sidebar nav links */
.sidebar .nav-link,
.offcanvas .nav-link {
  color: #9a8787;
  transition: color 0.2s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link:focus,
.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Sidebar brand/logo */
.sidebar .navbar-brand img,
.offcanvas .navbar-brand img {
  filter: brightness(0.9) contrast(1.2);
}

/* Sidebar badges */
.sidebar .badge,
.offcanvas .badge {
  background: #222;
  color: #fff;
  border-radius: 0.5em;
}

/* Card and form backgrounds */
.card {
  background: #222;
  color: #e0e0e0;
  border: 1px solid #333;
}
.card .form-control {
  background: #181818;
  color: #fff;
  border: 1px solid #444;
}
.card .form-control:focus {
  background: #222;
  color: #fff;
  border-color: #666;
}

/* Modal background */
.modal-content {
  background: #181818;
  color: #e0e0e0;
  border: 1px solid #333;
}
.modal-header,
.modal-footer {
  border-color: #222;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #fff;
  color: #181818;
  border-color: #fff;
}

/* General body background */
body {
  background: #181818;
  color: #e0e0e0;
}

/* Offcanvas sidebar styles to match .sidebar */
.offcanvas {
  background: #111;
  color: #ccc;
  border-right: 1px solid #222;
}
.offcanvas.offcanvas-start {
  width: 220px;
}
.offcanvas-header {
  flex-direction: column;
  border-bottom: 1px solid #222;
  background: #181818;
  padding: 2em 0 1em 0;
}
.offcanvas .navbar-brand img {
  filter: brightness(0.9) contrast(1.2);
}
.offcanvas .nav-link {
  color: #9a8787;
  transition: color 0.2s;
}
.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.offcanvas .badge {
  background: #222;
  color: #fff;
  border-radius: 0.5em;
}
.offcanvas .btn-close {
  filter: invert(1) grayscale(1);
}

/* Search form styles to match card/form theme */
form.d-flex {
  background: #222;
  border-radius: 0.5em;
  padding: 0.25em 0.5em;
  border: 1px solid #333;
}
form.d-flex .form-control {
  background: #181818;
  color: #fff;
  border: 1px solid #444;
}
form.d-flex .form-control:focus {
  background: #222;
  color: #fff;
  border-color: #666;
}
form.d-flex .btn,
form.d-flex .btn-outline-primary {
  background: #9a8787;
  border-color: #9a8787;
  color: #181818;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
form.d-flex .btn:hover,
form.d-flex .btn:focus,
form.d-flex .btn-outline-primary:hover,
form.d-flex .btn-outline-primary:focus {
  background: #fff;
  color: #181818;
  border-color: #fff;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.85);
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 2.25rem;
}

/* Hero Section */
.hero-section {
  background: url('/data/images/landing-bg.png') center center/cover no-repeat;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-shadow: 0 2px 8px #000a;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-logo {
  max-width: 180px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 2px;
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}
.hero-btn {
  margin: 0 0.5rem;
  min-width: 140px;
}
/* Features Section */
.features-section {
  background: #181c24;
  color: #fff;
  padding: 3rem 0;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffc107;
}
/* How to Start Section */
.start-section {
  background: #232733;
  color: #fff;
  padding: 3rem 0;
}
.start-step {
  background: #232733;
  border: 1px solid #2c3140;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px #0002;
  text-align: center;
}
.start-step-number {
  font-size: 2rem;
  font-weight: bold;
  color: #ffc107;
  margin-bottom: 0.5rem;
}
.online {
  font-size: 0.9em;
}

#login, #register {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("/data/images/register-bg.png") center center/cover no-repeat;
  height: 100%;
  max-width: 100%;
}
.download-logo {
  max-width: 80px;
  max-height: 80px;
  margin-bottom: 15px;
}
.discord {
  color: white !important; 
  background:#5865F2;
  border-radius:0.5em;
  padding:0.5em 1em;
}
.discord:hover {
  background:#4752C4 !important;
}

/* Base button style */
.btn {
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  transform: scale(1);
}

/* Register (Gold) */
.btn-register {
  background: #FFC107 !important;
  color: #000 !important;
  border: 2px solid #FFC107 !important;
  font-size: 14px;
}
.btn-register:hover {
  background: #E0A800 !important;
  color: #FFF !important;
  border-color: #E0A800 !important;
}
.btn-register:active {
  background: #C69500 !important;
  border-color: #C69500 !important;
  transform: scale(0.96) !important;
}

/* Download (Teal) */
.btn-download {
  background: #009E8C !important;
  color: #FFF !important;
  border: 2px #009E8C !important;
}
.btn-download:hover {
  background: #00C6B4 !important;
  color: #FFF !important;
  border-color: solid #00C6B4 !important;
}
.btn-download:active {
  background: #00796B !important;
  border-color: #00796B !important;
  transform: scale(0.96) !important;
}

/* Login (Light Gray) */
.btn-login {
  background: #E0E0E0 !important;
  color: #000 !important;
  border: 2px solid #E0E0E0 !important;
  font-size: 14px;
}
.btn-login:hover {
  background: #BDBDBD !important;
  color: #FFF !important;
  border-color: #BDBDBD !important;
}
.btn-login:active {
  background: #9E9E9E !important;
  color: #FFF !important;
  border-color: #9E9E9E !important;
  transform: scale(0.96) !important;
}