/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #0e0e10;
  color: #f3f3f3;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* Navbar (fixed) */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: 54px;
  background: #18181b; border-bottom: 1px solid #2a2a2d;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 100;
}
.navbar a {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .2s ease, opacity .2s ease;
}
.navbar a:hover { opacity: .85; }
.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
}
.nav-center { gap: 1.2rem; justify-content: center; }
.nav-right { justify-content: flex-end; }
.nav-left a { font-size: 1rem; font-weight: 700; }

/* Page wrapper */
.page { padding-top: 70px; }
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 1.5rem; }

/* Cards / layout */
.card {
  background: #1a1a1d;
  border: 1px solid #2a2a2d;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
h2 { font-size: 1.2rem; margin-bottom: .4rem; }
p, .muted { color: #b5b5b5; font-size: .9rem; }

/* Inputs / buttons */
.input, select {
  width: 100%; padding: .6rem .8rem;
  border-radius: 6px; border: 1px solid #333; background: #111; color: #f3f3f3;
}
.input:focus, select:focus { outline: none; border-color: #2563eb; }

.btn {
  padding: .45rem .9rem;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: opacity .2s ease, transform .1s ease;
}
.btn:active { transform: scale(0.96); }
.btn.primary { background: #2563eb; }
.btn.danger  { background: #d33; }
.btn.neutral { background: #2d2d2d; }
.btn:hover { opacity: .9; }

/* Lists */
.list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 60vh;
  overflow-y: auto;
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  border: 1px solid #2a2a2d;
  border-radius: 6px;
  background: #18181b;
}
.item .left {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.item .name { font-weight: 600; }
.item .sub { color: #b5b5b5; font-size: .85rem; }
.countdown { color: #b5b5b5; font-size: .85rem; margin-right: .6rem; }
.perm { color: #4ade80; font-size: .85rem; margin-right: .6rem; }

/* Toasts */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: #2d2d2d;
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  /* Scale navbar nicely */
  .navbar {
    height: 50px;
    padding: 0 .6rem;
  }
  .navbar a {
    font-size: 0.85rem;
    margin: 0 0.25rem;
  }
  .nav-center { gap: 0.7rem; }

  /* Page spacing */
  .page { padding-top: 65px; }
  .container { padding: 1rem; }

  /* Items stack slightly tighter */
  .item {
    padding: .6rem;
  }
  .item img {
    width: 30px;
    height: 30px;
  }

  /* Smaller ✕ button */
  .item button.btn.danger {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    min-width: 40px;
  }

  input, select {
    font-size: 0.9rem;
    padding: .55rem .7rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: .5rem .8rem;
  }
}

/* Countdown below names */
.name + .countdown,
.name + .perm {
  margin-top: 2px;
  display: block;
}

.countdown.expired { color: #ef4444; }
.perm { color: #4ade80; }

/* ===== Navbar Hover Colors ===== */
.navbar a[href*="accounts"]:hover { color: #e91916; }
.navbar a[href*="dashboard"]:hover { color: #e005b9; }
.navbar a[href*="mods"]:hover { color: #00ad03; }
.navbar a[href*="logout"]:hover,
.navbar a#logoutLink:hover { color: #ff3b3b; }

/* Custom Add Buttons */
button#addModBtn {
  background-color: #00ad03 !important;
  border-color: #00ad03 !important;
  color: white !important;
}
button#addVipBtn {
  background-color: #e005b9 !important;
  border-color: #e005b9 !important;
  color: white !important;
}
button#addModBtn:hover { background-color: #009602 !important; }
button#addVipBtn:hover { background-color: #c004a3 !important; }

/* Logs */
.log-entry {
  font-family: monospace;
  color: #ccc;
  padding: 4px 0;
  border-bottom: 1px solid #222;
  word-break: break-word;
}
.log-entry:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}
