/* ============================================================
   1. RESET & GLOBAL
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Lexend', sans-serif;   /* GLOBAL FONT FIX */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;   /* 🔥 critical */
}
a:hover {
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3); /* subtle */
}

/* RuneScape font */
@font-face {
  font-family: "RuneScape";
  src: url("/assets/runescape.woff2") format("woff2"),
       url("/assets/runescape.woff") format("woff"),
       url("/assets/runescape.ttf") format("truetype");
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

/* Example: only apply RS font to a specific class */
.runescape-text {
  font-family: "RuneScape", sans-serif;
}

/* Lexend helpers */
.lexend-bold {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
}
.lexend-medium {
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
}
.lexend-regular {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
}

/* Base body */
body {
  background-color: #101319;
  color: #e8e8e8;
  position: relative;
}


.no-style-link {
  color: inherit;
  text-decoration: none;
}
.no-style-link:hover {
  color: inherit;
  text-decoration: none;
}

.text-muted {
  color: #5f5c5c !important;
}
p,
.nav-link {
  font-weight: 400;
}
.nav-item > a {
    position: relative;
    text-decoration: none;
}

.nav-item > a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .2s ease;
    opacity: 0.4; /* subtle */
}

.nav-item > a:hover::after {
    width: 100%;
}
li {
  font-weight: 200;
}

.emphasis {
  color: #4144B1;
}

/* Generic button */
.button {
  background: #0d0f14;
  border: 2px solid rgb(65, 68, 177);
  border-radius: 12px;
  color: #c8c8c8;
  padding: 3px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
}

/* Generic separator */
.separator {
  border: none;
  height: 1px;
  background-color: #2a2e3b;
  opacity: 0.7;
  margin: 1rem auto;
}

/* ============================================================
   2. FORMS & INPUTS
============================================================ */
.password-wrapper {
  position: relative;
}
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}
.password-toggle-btn:hover {
  color: #fff;
}

.form-control {
  background-color: #0d0f14;
  border: 1px solid #4144B1;
  color: #4144B1;
  width: 100%;
}
.form-control:focus {
  background-color: #0d0f14;
  border-color: #6b6eff;
  color: #4144B1;
  box-shadow: 0 0 0 0.2rem rgba(65, 68, 177, 0.25);
}
.form-control::placeholder {
  color: #4144B1;
  opacity: 1;
}
.form-control option {
  color: #4144B1;
  background-color: #161A23;
}

/* Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1c1e22 inset !important;
  box-shadow: 0 0 0 1000px #1c1e22 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
}
input:-webkit-autofill {
  transition: background-color 9999s ease-in-out 0s;
}

/* Qty inputs (drops/xp) */
.item-qty-input,
.xp-qty-input {
  width: 100% !important;
  background-color: #2a2d33 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
  text-align: center;
}

/* Simple event times vertical layout */
.event-times {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Custom dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 250px;
}
.dropdown-btn {
  width: 100%;
  padding: 8px;
  text-align: left;
  color: #4144B1;
  background-color: #0d0f14;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.dropdown-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}
.dropdown-content {
  display: none;
  position: absolute;
  color: #4144B1;
  background-color: #161A23;
  border: 1px solid #4144B1;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  border-radius: 4px;
  margin-top: 2px;
}
.dropdown-item {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.dropdown-item img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}
.dropdown-item:hover {
  background-color: #4144B1;
  color: #161A23;
}

/* ============================================================
   3. LAYOUT: CONTENT, GRID, FOOTER
============================================================ */
#content {
  margin-left: 20vw;
  width: 80vw;
  padding: 5rem 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#content.blur {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.content-container {
  width: 100%;
  max-width: 80%;
  background-color: #161A23;
  border-radius: 12px;
  overflow-x: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 1.5rem;
}
.content-container .separator {
  width: 95%;
}

.container-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
}

/* Simple card wrapper */
.card {
  background-color: #161A23;
  border: 0;
  padding: 0;
  margin: 0;
  color: #4144B1;
}
.card-body > .form-check-label {
  color: red;
}

/* Generic responsive grids */
.responsive-grid,
.event-grid,
.clan-grid,
.task-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Responsive card (used for events/boards etc.) */
.responsive-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #161A23;
  border-radius: 14px;
  border: 1px solid rgba(65, 68, 177, 0.35);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  min-height: 150px;
}
.responsive-card:not(.premium) {
  background: linear-gradient(
    160deg,
    rgba(4, 8, 245, 0.12) 15%,
    rgba(0, 68, 255, 0.18) 45%,
    rgba(4, 104, 255, 0.08) 90%
  );
}
.responsive-card:not(.premium) .emphasis {
  color: rgb(69, 110, 224);
}
.responsive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(65, 68, 177, 0.25);
}

/* Header inside responsive-card */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 46px;
}
.card-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.card-image-box {
  width: clamp(32px, 10vw, 50px);
  height: clamp(32px, 10vw, 50px);
  flex-shrink: 0;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(65, 68, 177, 0.6);
  image-rendering: pixelated;
}

.card-title {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-timestamp {
  white-space: nowrap;
  font-size: 0.8rem;
  color: #ddd;
  flex-shrink: 0;
}

.card-description {
  flex: 1 1 auto;
  font-size: 0.82rem;
  color: #ccc;
  min-width: 0;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  gap: 0.5rem;
}
.card-button {
  background-color: #4144B1;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}
.card-button:hover {
  background-color: #6b6eff;
}

/* Premium variant */
.responsive-card.premium {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 215, 100, 0.65) !important;
}
.responsive-card.premium .card-image {
  border-color: rgba(255, 215, 100, 0.65);
}
.responsive-card.premium .emphasis,
.responsive-card.premium .clan-type,
.responsive-card.premium .board-rank,
.responsive-card.premium .event-name i {
  color: #e9b83c !important;
}
.responsive-card.premium::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(221, 245, 4, 0.15) 0%,
    rgba(255, 217, 0, 0.345) 50%,
    rgba(255, 245, 4, 0.1) 100%
  );
}

.responsive-card.inactive {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(202, 200, 195, 0.747) !important;
}
.responsive-card.inactive .card-image {
  border-color: rgba(211, 210, 206, 0.65);
}
.responsive-card.inactive .emphasis,
.responsive-card.inactive .clan-type,
.responsive-card.inactive .board-rank,
.responsive-card.inactive .event-name i {
  color: #e0ddd5d0 !important;
}
.responsive-card.inactive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(115, 116, 108, 0.76) 0%,
    rgba(83, 82, 77, 0.651) 50%,
    rgba(182, 182, 174, 0.801) 100%
  );
}

.responsive-card.ended {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(252, 57, 57, 0.65) !important;
}
.responsive-card.ended .card-image {
  border-color: rgba(253, 88, 88, 0.65);
}
.responsive-card.ended .emphasis,
.responsive-card.ended .clan-type,
.responsive-card.ended .board-rank,
.responsive-card.ended .event-name i {
  color: #e9563c !important;
}
.responsive-card.ended::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(245, 32, 4, 0.15) 0%,
    rgba(255, 17, 0, 0.345) 50%,
    rgba(255, 54, 4, 0.1) 100%
  );
}

.responsive-card.premium { border: 2px solid gold; filter:brightness(80%) }
.responsive-card.inactive { opacity: 0.7; filter: grayscale(10%); }
.responsive-card.ended { opacity: 0.6; filter: grayscale(10%); }

/* Footer */
#page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #161A23;
  color: #a0a0a0;
  text-align: center;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  border-top: 1px solid #2a2e3b;
  z-index: 1000;
}

/* ============================================================
   4. NAVBAR, MOBILE LOGO & ONLINE POPUP
============================================================ */
.navbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}
.navbar form {
  flex: 1 1 auto;
  min-width: 60px;
  max-width: 200px;
}
.navbar form input {
  width: 100%;
  box-sizing: border-box;
}
.navbar form.form-control {
  max-width: 300px;
  width: 100%;
}
.navbar .dropdown {
  margin-left: 1rem;
}

.navbar-custom {
  background-color: #161A23 !important;
  transition: top 0.3s;
  z-index: 20000;
  border-bottom: 1px solid #2a2e3b;
}

#profileDropdown {
  background-color: #161A23;
  border: 1px solid #2a2e3b;
  color: #e8e8e8;
  font-size: 0.9rem;
  padding: 6px 12px;
  transition: background 0.2s, border 0.2s;
}
#profileDropdown:hover {
  background-color: #1d2230;
  border-color: #4144B1;
  color: #ffffff;
}

.dropdown-menu {
  background-color: #161A23;
  border: 1px solid #2a2e3b;
  border-radius: 8px;
}
.dropdown-menu .dropdown-item {
  color: #e8e8e8;
  font-family: 'Lexend', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu .dropdown-item:hover {
  background-color: #1e2140;
  color: #4144B1;
}

/* Mobile logo (below navbar) */
#mobile-logo {
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  margin: 0;
  padding: 0 0 15px;
}
#mobile-logo img {
  height: 40px;
  width: auto;
}

/* Online popup */
#online-popup {
  position: fixed;
  bottom: 24px;
  right: 14px;
  display: flex;
  align-items: center;
  background: #161A23;
  border: 1px solid #4144B1;
  padding: 4px 8px;
  border-radius: 12px;
  color: #fff;
  z-index: 9999;
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
}
#online-popup:hover {
  box-shadow: 0 6px 18px rgba(65, 68, 177, 0.35);
  transform: translateY(-4px);
}
#online-popup .online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
}
#online-popup .online-toggle i {
  color: #4144B1;
  font-size: 1.2rem;
}
#online-popup.open {
  transform: translateX(0);
  opacity: 1;
}

/* ============================================================
   5. SIDEBAR
============================================================ */
#sidebar-rail {
  position: absolute;
  left: 0;
  top: 56px;
  bottom: 0;
  width: 20vw;
  max-width: 200px;
  background: #161A23;
  border-right: 1px solid #2a2e3b;
  z-index: 1010;
}

#sidebar {
  position: fixed;
  top: 56px;
  left: 0;
  width: 20vw;
  max-width: 200px;
  height: calc(100vh - 56px);
  background-color: #161A23;
  border-right: 1px solid #2a2e3b;
  display: flex;
  flex-direction: column;
  z-index: 1020;
}
#sidebar > ul {
  flex: 1 1 auto;
}
#sidebar ul.nav {
  margin: 0;
  padding: 0;
  overflow-y: visible;
  flex: 1 1 auto;
}
#sidebar ul.nav .nav-item {
  margin: 0;
}
#sidebar .nav-link {
  color: #e8e8e8;
  transition: background 0.2s, border 0.2s;
}
#sidebar .nav-link.active {
  background-color: #1e2140;
  border-left: 4px solid #4144B1;
  color: #4144B1;
}
#sidebar .nav-link:hover {
  background-color: #1d2230;
  color: #ffffff;
}

/* Sidebar footer icons */
.sidebar-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 1rem 0;
  flex-shrink: 0;
}
#sidebar .sidebar-footer {
  flex: 0 0 auto;
}
.sidebar-footer a {
  transition: all 0.3s ease;
  position: relative;
}
.sidebar-footer a:hover svg,
.sidebar-footer a:hover i {
  filter: drop-shadow(0 0 8px #4144B1);
  transform: scale(1.2);
}
.sidebar-footer a[data-bs-toggle="tooltip"]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #161A23;
  color: #4144B1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
}

/* Sidebar toggle button (z-index fix) */
#sidebarToggle {
  position: relative;
  z-index: 21000 !important;
}

/* ============================================================
   6. STATS CARD
============================================================ */
.stats-card {
  width: 100%;
  max-width: 80%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2030 0%, #0f141f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #e8e8e8;
}
.stats-card .stat {
  flex: 1 1 0;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}
.stats-card .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  height: 80%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
}
.stats-card .stat-value {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
}
.stats-card .stat-label {
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 4px;
}
.stats-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   7. CLAN / EVENT / BOARD CARDS
============================================================ */
/* Tables */
.table {
  table-layout: fixed;
  width: 100%;
}
th,
td {
  text-align: center;
  vertical-align: middle;
}
.col-small { width: 8%; }
.col-medium { width: 16%; }
.col-large { width: 40%; }

/* Status dots */
.status-circle {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 4px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-upcoming { background-color: #6c8cd5; }
.status-active   { background-color: #4caf50; }
.status-ended    { background-color: #e53935; }

/* Clan card */
.clan-card {
  background: #1a1d29;
  border: 1px solid rgba(65, 68, 177, 0.6);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.clan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(65, 68, 177, 0.6);
}
.clan-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.clan-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.75rem;
}
.clan-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #c8c8c8;
  margin-top: 0.5rem;
}
.clan-type {
  background: #0d0f14;
  border: 2px solid rgb(65, 68, 177);
  border-radius: 12px;
  color: #4144B1;
  padding: 3px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.clan-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.clan-info {
  flex: 1;
}
.clan-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #0f141f;
  border: 1px solid rgba(65, 68, 177, 0.8);
}

/* Task difficulty badges */
.task-type {
  background: #0d0f14;
  border: 2px solid rgb(65, 68, 177);
  border-radius: 12px;
  color: #c8c8c8;
  padding: 3px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
}
.task-easy,
.task-easy:hover {
  background: rgb(28, 218, 91);
  border: 2px solid #0d0f14;
  color: #0d0f14;
}
.task-medium,
.task-medium:hover {
  background: rgb(228, 215, 31);
  border: 2px solid #0d0f14;
  color: #0d0f14;
}
.task-hard,
.task-hard:hover {
  background: rgb(182, 99, 43);
  border: 2px solid #0d0f14;
  color: #0d0f14;
}
.task-elite,
.task-elite:hover {
  background: rgb(230, 55, 24);
  border: 2px solid #0d0f14;
  color: #0d0f14;
}

/* Board leaderboard rows */
.board-card {
  background: #1a1d29;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  transition: transform 0.2s ease;
}
.board-card:hover {
  transform: translateY(-2px);
}
.board-rank {
  font-weight: 700;
  color: #4144B1;
  width: 24px;
  text-align: center;
}
.board-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #0f141f;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.board-info {
  flex: 1;
}
.board-name {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
}
.board-value {
  margin: 0;
  font-size: 0.85rem;
  color: #4caf50;
  font-weight: 500;
  text-align: right;
}

/* ============================================================
   8. CATEGORY FILTERS (CREATE TASK)
============================================================ */
.category-section-header {
  width: 100%;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
  color: #9aa0a6;
  text-transform: uppercase;
  font-size: 12px;
}
.category-section {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

#categoryPillsWrapper {
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #232735;
  border-radius: 6px;
  background: #0e1016;
}

/* Category pill style used in the task builder UI */
.category-pill {
  padding: 4px 10px;
  border-radius: 14px;
  background: #161A23;
  border: 1px solid #4144B1;
  color: #ccc;
  cursor: pointer;
  user-select: none;
  transition: 0.15s ease;
  font-size: 0.75rem;
  line-height: 1.1;
}
.category-pill.active {
  background: #4144B1;
  color: white;
  border-color: #6166ff;
  box-shadow: 0 0 4px #4144B1;
}
.category-pill:hover {
  background: #232735;
}

/* ============================================================
   9. TASK BUILDER: AUTOCOMPLETE, DROPS, PILLS
============================================================ */
/* Autocomplete dropdown */
.autocomplete-wrapper {
  position: relative;
}
.autocomplete-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  z-index: 9999;
  padding: 4px 0;
  display: none;
  pointer-events: none;
}
.autocomplete-box:not(:empty) {
  display: block;
  pointer-events: auto;
}
.autocomplete-item {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #222;
}
.autocomplete-item img.auto-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover {
  background: #1f1f1f;
}

/* Item select list */
.item-select-box {
  margin-top: 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  max-height: 350px;
  overflow-y: auto;
  padding: 10px;
  display: none;
}
.item-select-box:not(:empty) {
  display: block;
}
.item-select-category-header {
  font-weight: 600;
  padding: 6px 4px;
  color: #ddd;
  border-bottom: 1px solid #444;
  margin-top: 10px;
}
.item-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  cursor: pointer;
}
.item-select-option img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.item-select-option:hover {
  background: #222;
}

.selected-item-area {
  max-height: 350px;
  overflow-y: auto;
}
/* Selected drops list row */
.selected-drop-row {
  display: grid !important;
  grid-template-columns: 36px minmax(75px, 85px) 100px 40px 40px;
  align-items: center !important;
  gap: 4px;
  padding: 8px 12px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 8px;
}
.selected-drop-row img {
  width: 32px !important;
  height: 32px !important;
}
.selected-drop-row button {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  margin-left: 10px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.field-error {
  border: 2px solid #ff4d4d !important;
  background-color: rgba(255, 0, 0, 0.1);
}

/* Drop pill summary (viewing built drops) */
.drop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #161a23;
  border: 1px solid #4144b1;
  padding: 6px 10px;
  border-radius: 8px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.pill-header {
  font-weight: 700;
  color: #ffd000;
}
.pill-item {
  font-weight: 600;
  color: #fff;
}
.pill-sources {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* EDIT/CREATE screen "task-pill" (with X and icon) */
.task-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  margin: 4px;
  font-size: 14px;
}
.task-pill img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}
.task-pill button {
  background: transparent;
  border: none;
  color: #ff6666;
  font-size: 16px;
  cursor: pointer;
}

/* Preview canvas */
#previewCanvas {
  background: #4d5157;
  border-radius: 6px;
}

/* Scrollbars for dropdowns */
#itemDropdown::-webkit-scrollbar,
#selectedItems::-webkit-scrollbar,
.autocomplete-box::-webkit-scrollbar {
  width: 8px;
}
#itemDropdown::-webkit-scrollbar-thumb,
#selectedItems::-webkit-scrollbar-thumb,
.autocomplete-box::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

/* ============================================================
   10. TASK LIST CARD (INDEX PAGE)
============================================================ */
.requirements-grid, .task-drop-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
/* TASK CARD CONTAINER */
.task-card {
  padding: 8px 9px;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(4, 8, 245, 0.12) 15%,
    rgba(0, 68, 255, 0.18) 45%,
    rgba(4, 104, 255, 0.08) 90%
  );
  border: 1px solid rgba(34, 70, 168, 0.667);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}

.task-card.get-item {
  padding: 8px 9px;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(82, 52, 19, 0.89) 15%,
    rgba(83, 62, 21, 0.664) 45%,
    rgba(80, 61, 21, 0.952) 90%
  );
  border: 1px solid rgba(128, 92, 16, 0.667);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}
.task-card.kill-x {
  padding: 8px 9px;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(82, 19, 19, 0.89) 15%,
    rgba(83, 21, 21, 0.664) 45%,
    rgba(80, 21, 21, 0.952) 90%
  );
  border: 1px solid rgba(128, 16, 16, 0.667);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}
.task-card.get-xp {
  padding: 8px 9px;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(19, 82, 19, 0.89) 15%,
    rgba(28, 83, 21, 0.664) 45%,
    rgba(21, 80, 24, 0.952) 90%
  );
  border: 1px solid rgba(29, 128, 16, 0.667);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}
.card-button.premium {
  background-color: #bbb121;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}
.card-button.premium:hover {
  background-color: #fad660;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}
.card-button.ended {
  background-color: #7c2e23;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}
.card-button.ended:hover {
  background-color: #ac3d3d;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}
.card-button.inactive {
  background-color: #504c4c;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}
.card-button.inactive:hover {
  background-color: #685e5e;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}

/* HEADER: left (icon+title+desc) + right (created by) */
.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.task-header-left {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.task-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(65, 68, 177, 0.6);
  image-rendering: pixelated;
  object-fit: contain;
}
.task-icon-img.get-item {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(87, 64, 35, 0.829);
  image-rendering: pixelated;
  object-fit: contain;
}
.task-icon-img.kill-x {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(114, 41, 36, 0.829);
  image-rendering: pixelated;
  object-fit: contain;
}
.task-icon-img.get-xp {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(43, 114, 36, 0.829);
  image-rendering: pixelated;
  object-fit: contain;
}
.task-header-text {
  display: flex;
  flex-direction: column;
}
.task-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.task-card-desc {
  font-size: 0.86rem;
  color: #ccc;
  margin-top: 4px;
}

/* Created by (top-right) */
.task-created-by {
  white-space: nowrap;
  font-size: 0.78rem;
  color: #aaa;
}

/* FOOTER: pills left, manage button right */
.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;            /* was larger before */
}

/* Pills wrapper (bottom-left) */
.task-card-footer .task-pills {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;  /* <-- stay left aligned */
  gap: 3px 2px;                 /* tighter rows/cols */
}

/* Category pills — override builder pill styling only within cards */
.task-card .task-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.70rem;
  background: #2e3144;
  border-radius: 999px;
  border: 1px solid rgba(65, 68, 177, 0.4);
  color: #e0e0ff;
  white-space: nowrap;
}
.task-card .task-pill.get-item {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.70rem;
  background: #2e2111;
  border-radius: 999px;
  border: 1px solid rgba(92, 69, 39, 0.747);
  color: #e0e0ff;
  white-space: nowrap;
}
.task-card .task-pill.kill-x {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.70rem;
  background: #311111;
  border-radius: 999px;
  border: 1px solid rgba(92, 39, 39, 0.747);
  color: #e0e0ff;
  white-space: nowrap;
}
.task-card .task-pill.get-xp {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.70rem;
  background: #103d06;
  border-radius: 999px;
  border: 1px solid rgba(50, 92, 39, 0.747);
  color: #e0e0ff;
  white-space: nowrap;
}
.task-card .more-pill {
  padding: 2px 4px;
  font-size: 0.70rem;
  background: transparent;
  border: none;
  color: #7d7dff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.task-card .more-pill:hover {
  color: #ffffff;
}
.task-card .pill-hidden {
  display: none;
  width: 100%;
  margin-top: 3px;
}

/* Manage task pool button (bottom-right) */
.task-card-manage-btn {
  flex: 0 0 auto;
  margin-left: auto;           /* THIS forces it to the right */
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 10px;
  border: 1px solid #4144B1;
  background: #1c316b;
  color: #8a8cb9;
}
.task-card-manage-btn:hover {
  background: #2a4691;
}

/* ============================================================
   11. MODALS & CLAN LIST
============================================================ */
.modal {
  z-index: 2000 !important;
}
.modal .form-select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
.custom-modal-dark {
  background-color: #1e1f2b !important;
  color: #f2f2f2 !important;
  border: 1px solid #2a2a3a;
}
.btn-close-white {
  filter: invert(1);
}

/* Scrollable list inside manage-task modal */
.clan-list-scroll {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}
.clan-entry {
  padding: 6px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.clan-entry .clan-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================================
   12. DATATABLES / MOBILE TABLE VIEW
============================================================ */
@media (max-width: 768px) {
  .dt-search {
    margin-bottom: 1rem !important;
  }

  div.dataTables_filter,
  div.dataTables_paginate {
    display: block !important;
    margin-bottom: 1rem;
  }

  #tasksTable tbody,
  #tasksTable thead {
    display: none !important;
  }

  #tasksTable_wrapper {
    display: flex;
    flex-direction: column;
  }

  #tasksMobile {
    order: 2;
  }

  #tasksTable_wrapper .dataTables_filter {
    order: 1;
  }
  #tasksTable_wrapper .dataTables_info {
    order: 3;
  }
  #tasksTable_wrapper .dataTables_paginate {
    order: 4;
  }

  #tasksTable td {
    white-space: normal !important;
    word-break: break-word !important;
  }
}

.dt-mobile-card {
  padding: 12px;
  background: #1c1f27;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}
.dt-row {
  margin-bottom: 8px;
}
.dt-label {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 2px;
}
.dt-value {
  color: #e8e8e8;
}

/* ============================================================
   13. BOARD DESIGNER / TOOLBAR (BATTLESHIPS)
============================================================ */
#toolbar {
  display: flex;
  margin-top: 5px;
  gap: 20px;
  align-items: center;
  background-color: #161A23;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 95vw;
}
.tool-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-radius: 25px;
  border: 1px solid #4144B1;
  background-color: #0d0f14;
  transition: background-color 0.2s, border-color 0.2s;
  height: 20px;
  padding: 25px;
}
.tool-item img {
  width: 50px;
}
.tool-count {
  font-size: 14px;
  margin-left: 3px;
  color: #4144b1;
}
.tool-active {
  outline: 3px solid #4caf50;
}
.tool-disabled {
  opacity: 0.2;
  cursor: default;
}

/* Board wrapper */
#board-wrapper {
  width: 100%;
  max-width: 95vw;
  overflow: auto;
  border-radius: 8px;
  background-color: #161A23;
}
#board-container {
  position: relative;
  padding: 20px;
  width: fit-content;
  height: fit-content;
  background-color: #161A23;
}
#board-canvas {
  display: block;
  border: 2px solid #4144b1;
  background-color: #161A23;
}
#saveBtn {
  margin: 20px 0;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background: #4144b1;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
#saveBtn:hover {
  background: #5156d4;
}

/* ============================================================
   14. ZOOM IMAGE (TASK VIEW IMAGE)
============================================================ */
figure.zoom {
  background-repeat: no-repeat;
  background-size: 100%;              /* ← NO ZOOM BY DEFAULT */
  background-position: 50% 50%;
  position: relative;
  cursor: zoom-in;
  height: 100%;
  transition: background-size 0.2s ease;
}
figure.zoom:hover {
  background-size: 200%;              /* ← DESKTOP ZOOM ON HOVER */
}
figure.zoom img {
  transition: opacity 0.5s;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}
figure.zoom img:hover {
  opacity: 0;
  height: 100%;
  overflow: hidden;
}

/* ============================================================
   15. MEDIA QUERIES & RESPONSIVE TWEAKS
============================================================ */

/* Very small widths */
@media (max-width: 360px) {
  .navbar form {
    max-width: 120px;
  }
}

/* Mobile ≤ 576px */
@media (max-width: 576px) {
  #content {
    margin-left: 0;
    width: 100%;
    padding: calc(56px + 1rem) 1rem 2rem;
    box-sizing: border-box;
  }

  #mobile-logo {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .content-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem;
  }

  /* Sidebar overlay */
  #sidebar,
  #sidebar-rail {
    transform: translateX(-100%);
    position: fixed;
    width: 80%;
    max-width: 300px;
    top: 56px;
    height: calc(100% - 56px);
    overflow-y: auto;
    transition: transform 0.3s ease;
  }
  #sidebar.active,
  #sidebar-rail.active {
    transform: translateX(0);
  }
  .sidebar-footer {
    position: sticky;
  }

  /* Online-popup slide-in effect */
  #online-popup {
    transform: translateX(85%);
    opacity: 1;
  }
  #online-popup.open {
    transform: translateX(0);
    opacity: 1;
  }

  /* Forms stacked */
  .form-control {
    width: auto;
  }
  .d-flex.flex-column > .desktop-fixed,
  .d-flex.flex-column > form,
  .d-flex.flex-column > select {
    width: 100% !important;
  }
  .d-flex.flex-column.gap-2 {
    gap: 0.5rem;
  }
  .desktop-fixed {
    width: 100%;
  }
  .desktop-fixed input.form-control {
    width: 100%;
  }

  /* Stats card */
  .stats-card {
    flex-direction: stretch;
    padding: 8px;
  }
  .stats-card .stat:not(:last-child)::after {
    display: none;
  }

  /* Clan/Event/Task grid -> single column */
  .clan-grid,
  .event-grid,
  .task-grid {
    grid-template-columns: 1fr;
  }

  .clan-card {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .clan-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .clan-icon {
    width: 40px;
    height: 40px;
  }

  /* Responsive-card tweaks */
  .responsive-card .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .responsive-card .card-header-left {
    width: 100%;
    min-width: 0 !important;
  }
  .responsive-card .card-title {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    display: block;
    word-break: break-word;
  }
  .responsive-card .card-timestamp {
    margin-top: 4px;
    align-self: flex-start;
    white-space: normal;
    text-align: left;
  }
  .responsive-card .card-header-left img.card-image {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    flex-shrink: 0;
  }
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-button {
    align-self: flex-end;
  }

  /* Task cards: let them fill width */
  .task-card {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
  }
}

/* Tablets: 577–991px */
@media (min-width: 577px) and (max-width: 991px) {
  #content {
    margin-left: 0;
    width: 100%;
    padding-top: 75px;
  }
  .content-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem;
  }
  .clan-grid,
  .event-grid,
  .task-grid {
    grid-template-columns: 1fr;
  }

  #sidebar,
  #sidebar-rail {
    width: 80%;
    max-width: 300px;
    transform: translateX(-100%);
    position: fixed;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1020;
  }
  #sidebar.active,
  #sidebar-rail.active {
    transform: translateX(0);
  }
  .sidebar-footer {
    position: sticky;
  }
}

/* Small desktops: 992–1439px */
@media (min-width: 992px) and (max-width: 1439px) {
  .clan-grid,
  .event-grid,
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large desktops: ≥1440px */
@media (min-width: 1440px) {
  .clan-grid,
  .event-grid,
  .task-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Navbar search width on mid screens */
@media (max-width: 991px) {
  .navbar form.form-control {
    max-width: 200px;
  }
}

/* Content bottom padding above fixed footer */
@media (max-width: 768px) {
  #content {
    padding-bottom: 6rem;
  }
  .stats-card {
    max-width: 95%;
    width: 100%;
    margin: 1rem auto;
  }
}

/* Hover polish & reduced-motion */
@media (hover: hover) {
  #online-popup:hover {
    box-shadow: 0 6px 18px rgba(65, 68, 177, 0.35);
  }
  #online-popup .online-toggle:hover {
    filter: brightness(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  #online-popup {
    transition: none;
  }
}

/* Mobile board zoom specific */
@media (max-width: 991.98px) {
  #mobileZoom {
    transition: background-size 0.3s ease, background-position 0.3s ease;
    touch-action: none;
  }
}

/* Navbar small layout */
@media (max-width: 575px) {
  .navbar form.form-control {
    max-width: 120px;
  }
}

/* Large desktop sidebar/content alignment */
@media (min-width: 992px) {
  #content {
    margin-left: 20vw;
    width: 80vw;
  }
  #sidebar {
    width: 20vw;
    max-width: 200px;
  }
}

/* -----------------------------------------------------
   TASK CARD — MOBILE FIXES (< 768px)
------------------------------------------------------ */
@media (max-width: 768px) {
  .form-control {
    max-width: 100%;
  }

  .stats-card {
    flex-direction: row;
    padding: 2px;
  }
  .stats-card .stat {
    padding: 10px 5px;
  }
  .stats-card .stat:not(:last-child)::after {
    display: none;
  }
  .stats-card .stat .stat-value {
    font-size: 1rem;
  }
  .stats-card .stat .stat-label {
    font-size: 0.7rem;
  }

  /* Add spacing so title never overlaps created-by */
  .task-card-header {
    align-items: flex-start;
    gap: 2px;
    position: relative;
    padding-top: 4px;
  }

  /* Created by stays top-right */
  .task-created-by {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    opacity: 0.9;
    white-space: nowrap;
  }

  /* Move title/description down below the created-by line */
  .task-header-left {
    margin-top: 14px; /* controls spacing under created by */
    display: flex;
    gap: 5px;
    width: 100%;
  }

  .task-header-text {
    flex: 1;
    min-width: 80%;
  }

  .task-card-title {
    margin-bottom: 4px;
    line-height: 1.2;
    font-size: 0.8rem;
    padding-right: 0px;
  }

  .task-card-desc {
    font-size: 0.65rem;
    line-height: 1.25;
  }

  /* --- FIX CATEGORY PILL SIZING + SPACING --- */
  .task-pills {
    width: 100%;
    gap: 2px 2px;                /* tighter pills on mobile */
  }

  .task-pill,
  .more-pill {
    padding: 1px 4px;
    font-size: 0.66rem;          /* slightly smaller text */
  }

  .pill-hidden {
    width: 100%;
    margin-top: 3px;
  }

  .more-pill {
    order: 999;
  }

  /* -----------------------------------------------------
     MANAGE BUTTON — keep it centered under pills
  ------------------------------------------------------ */
  .task-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;                    /* smaller vertical gap */
  }

  .task-card-manage-btn {
    align-self: center;
    margin-top: 6px;
    font-size: 0.82rem;
    padding: 6px 6px;
  }

  /* Card spacing */
  .task-card {
    padding: 8px 8px 9px;
    margin-bottom: 9px;
  }
}

/* ----------------------------------------
   MOBILE BUTTON SIZE FIXES (<576px)
----------------------------------------- */
@media (max-width: 576px) {
    .task-action-btn {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
    }
}

/* ----------------------------------------
   MOBILE FIXES FOR TASK TYPE SELECTOR
----------------------------------------- */
@media (max-width: 576px) {
    .btn-group.task-type-group, .btn-group.event-type-group {
        flex-wrap: wrap;
        width: 100%;
    }

    .btn-group.task-type-group .btn, .btn-group.event-type-group .btn {
        flex: 1 1 100%;
        margin-bottom: 6px;
        font-size: 0.9rem !important;
        padding: 6px 8px !important;
        white-space: normal !important;
    }
}

/* Shake animation for wrong password */
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.35s ease-in-out;
}

#unlockError {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Success checkmark */
#unlockSuccessCheck {
  font-size: 48px;
  color: #4ade80;
  opacity: 0;
  transform: scale(0.5);
  animation: popIn 0.4s forwards;
}

@keyframes popIn {
  0% { opacity:0; transform:scale(0.5); }
  60% { opacity:1; transform:scale(1.15); }
  100% { opacity:1; transform:scale(1); }
}

#gridOverlay {
    top: 0;
    left: 0;
    pointer-events: auto;
}
#boardWrapper {
    position: relative;
}

.list-item {
  background-color: #161A23;
  color: #4144B1;
  margin-left: 10px;
  font-size: 1.3em;
}

#tasksTable tbody tr.task-type-1 td {
    background-color: rgba(133, 101, 56, 0.616) !important;
}

#tasksTable tbody tr.task-type-2 td {
    background-color: rgba(180, 62, 62, 0.37) !important;
}

#tasksTable tbody tr.task-type-3 td {
    background-color: rgba(47, 189, 82, 0.459) !important;
}

#guildsTable tbody tr.clan-premium td {
    background-color: rgba(245, 217, 63, 0.719) !important;  /* soft gold wash */
}

/* Remove DataTables sort caret on non-sortable columns */
table.dataTable thead .sorting_disabled:before,
table.dataTable thead .sorting_disabled:after {
    display: none !important;
}
table.dataTable thead .sorting_disabled {
    cursor: default !important;
}