/* =========================================
   LOGIN / LOGOUT MESSAGES
   ========================================= */

.logout-message,
.login-message {
  text-align: center;
  padding: 20px 0;
  width: 34%;
  margin: 0 auto;
}


/* =========================================
   WEBSITE ALERT BAR
   ========================================= */

.website-message {
  min-height: 40px;
  line-height: 2em;
  background-color: #8c2a2a;
  color: #ccc;
  padding: 5px 10px;
  border-top: 1px solid #8c2a2a;
  border-bottom: 1px solid #8c2a2a;
}


/* =========================================
   DEVELOPMENT BANNER
   ========================================= */

.development-message {
  background: linear-gradient(#e8d070, #caa82f);
  border: 1px solid #9f7e1c;
  color: #2b2308;
  height: 40px;
  text-align: center;
  margin: 12px 0;
}

.development-message:not(.no-message) span {
  background: transparent;
  display: block;
  position: relative;
  top: 8px;
  font-weight: bold;
}

.development-message.no-message {
  background: none;
  border: none;
}


/* =========================================
   STATUS ICON COLORS
   ========================================= */

.icon-public {
  color: #2a7bd6; /* blue = open/public */
}

.icon-restricted {
  color: #8a6d3b; /* muted gold = restricted */
}

.icon-private {
  color: #7c1f1f; /* dark red = hidden */
}

.icon-archived {
  color: #6b6b6b; /* muted gray = stored */
}

.icon-building {
  color: #c79b00; /* artifact gold */
}

.icon-tutorial {
  color: #5b4db2; /* arcane purple */
}



/* Sync confirmation modal */
.sync-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sync-modal {
  background: #111;
  padding: 24px;
  border-radius: 6px;
  width: 420px;
  max-width: 90%;
  color: #fff;
  text-align: center;
}

.sync-modal h4 {
  margin-bottom: 12px;
}

.sync-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ==============================
   SYNC STATUS
================================ */

.sync-status {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.sync-status--loading {
  color: #b8860b; /* muted gold */
}

.sync-status--success {
  color: #2f6b3b; /* success green */
}

.sync-status--error {
  color: #7c1f1f; /* error red */
}


/* =========================
   Toolbar Buttons
========================= */

.bbcode-toolbar {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/*.bbcode-toolbar button {
  background: #f3f3f3;
  border: 2px solid #222;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bbcode-toolbar button:hover {
  background: #222;
  color: #fff;
}

.bbcode-toolbar button:active {
  transform: translateY(1px);
}*/

/* =========================
   Modal Overlay
========================= */

.bbcode-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
   Modal Box
========================= */

.bbcode-modal {
  width: 650px;
  max-width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  background: #1e1e1e;
  color: #f5f5f5;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  padding: 20px;
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bbcode-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.bbcode-modal-header h5 {
  margin: 0;
  font-size: 18px;
}

.bbcode-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bbcode-close:hover {
  color: #fff;
}

/* =========================
   Accordion Sections
========================= */

.dropdown-row {
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #333;
}

.dropdown-row__details {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  background: #2f2f2f;
  transition: background 0.2s ease;
  list-style: none;
}

.dropdown-row__details::-webkit-details-marker {
  display: none;
}

.dropdown-row__details::after {
  content: "▸";
  float: right;
  transition: transform 0.2s ease;
}

.dropdown-row[open] .dropdown-row__details::after {
  transform: rotate(90deg);
}

.dropdown-row__details:hover {
  background: #3a3a3a;
}

.dropdown-row__contents {
  padding: 12px;
  background: #222;
}

.row-content-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================
   Mana Buttons
========================= */

.bbcode--mana {
  background: #333;
  border: 1px solid #444;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bbcode--mana:hover {
  background: #444;
  transform: translateY(-2px);
}

.bbcode--mana i {
  font-size: 18px;
}

/* =========================
   Character Counter
========================= */

.char-counter {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.char-counter.low {
  color: #ff6b6b;
}


.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 10px;
  border: 2px solid #222; /* ensures white/light visible */
  flex-shrink: 0;
}
