/* =====================================================
   WeltenWandler – Global Stylesheet
   ===================================================== */


/* ===== 1. Base & Layout ===== */

html {
  min-height: 100%;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #070a10;
  background-image: url("img/body-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

body {
  min-height: 100vh;
  background: transparent;
  color: #e6d8a3;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  z-index: 0;
}

body > * {
  position: relative;
}


/* ===== 2. Typography ===== */

h1, h2, h3, h4, h5 {
  font-family: "Cinzel", serif !important;
  color: #f5e6b3;
  letter-spacing: 0.8px;
}

p, label, li {
  color: #e6e1c3;
}

.form-label {
  color: #f0e6c8;
  font-weight: 600;
}

.form-control::placeholder {
  color: #9f9f9f;
}

.text-gold {
  color: #e6c97a;
  text-shadow: 0 0 6px rgba(230, 201, 122, 0.4);
}

.text-muted-light {
  color: #cfcfcf;
  opacity: 0.85;
}

.section-header,
.raid-title {
  font-family: "Cinzel", serif !important;
  letter-spacing: 0.8px;
}

.raid-subtitle {
  color: #c9c9c9;
  font-size: 0.95rem;
}

.rules-text {
  white-space: pre-wrap;
  font-family: "Inter", serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #e6e0c8;
}


/* ===== 3. Navbar ===== */

.navbar {
  position: relative;
  z-index: 2000;
  background-image: url("img/navbar-leather.jpg");
  background-repeat: repeat;
  background-size: 512px auto;
  background-position: center;
  border-bottom: 2px solid #c89b3c;
  min-height: 92px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  pointer-events: none;
}

.navbar .container {
  position: relative;
  z-index: 1;
}

.navbar-logo {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}

.navbar-title {
  font-family: "IM Fell English", serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 1px;
  color: #f0c75e;
}

.navbar-brand {
  font-family: "Cinzel", serif;
  font-weight: bold;
  color: #f0c75e !important;
  letter-spacing: 1px;
}

.navbar-user {
  font-weight: 600;
  color: #f0c75e;
}

.navbar-user-role {
  font-weight: 500;
  color: #cfcfcf;
  font-size: 0.9rem;
}

.navbar-text {
  line-height: 1.5;
  font-family: 'Cinzel', serif;
}

.nav-link,
.navbar-text {
  color: #e6d8a3 !important;
}

.navbar .nav-link {
  font-weight: 500;
  cursor: pointer;
}

.navbar .dropdown-toggle,
.navbar .dropdown-item {
  cursor: pointer;
}

.navbar .nav-link.dropdown-toggle {
  color: #e6d8a3 !important;
  font-weight: 600;
}

.navbar .nav-link.dropdown-toggle:hover,
.navbar .nav-item.show > .nav-link.dropdown-toggle {
  color: #f0c75e !important;
}

.navbar .dropdown-menu {
  position: absolute;
  z-index: 2000 !important;
}

/* Navbar Icons */
.navbar .nav-icon {
  position: relative;
  padding-left: 36px;
  display: inline-flex;
  align-items: center;
}

.navbar .nav-icon::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.7));
}

.navbar .nav-link:hover::before {
  filter: drop-shadow(0 0 6px rgba(240,199,94,0.8)) brightness(1.1);
}

.navbar .raid-icon::before  { background-image: url("/static/img/nav/raid.png"); }
.navbar .rules-icon::before { background-image: url("/static/img/nav/regeln.png"); }
.navbar .news-icon::before  { background-image: url("/static/img/nav/news.png"); }
.navbar .stats-icon::before { background-image: url("/static/img/nav/stats.png"); }
.navbar .admin-icon::before { background-image: url("/static/img/nav/admin.png"); }
.navbar .user-icon::before  { background-image: url("/static/img/nav/user.png"); }

/* App Menu */
.app-menu {
  min-width: 260px;
  background: #1f2326;
  border: 1px solid #111;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}

.app-menu .dropdown-header {
  color: #caa45a;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.app-menu .dropdown-item {
  color: #ddd;
  border-radius: 6px;
}

.app-menu .dropdown-item:hover {
  background: #2b2f33;
  color: #fff;
}

/* Live Raid Button */
.raid-live {
  background: linear-gradient(135deg, #1f6b2a, #2e8b57);
  color: #fff !important;
  border-radius: 8px;
  font-weight: bold;
}

.raid-live:hover {
  background: linear-gradient(135deg, #2e8b57, #3cb371);
  color: #fff !important;
}


/* ===== 4. Dropdown ===== */

.dropdown-menu {
  background-color: #1c1c1c;
  border: 1px solid #3a3a3a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 1050;
}

.dropdown-item {
  color: #e0c070;
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #2a2a2a;
  color: #ffd966;
}

.dropdown-item.active {
  background-color: #3a2f14;
  color: #ffd966;
}

.dropdown-header {
  color: #a0a0a0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-divider {
  border-top: 1px solid #3a3a3a;
}


/* ===== 5. Cards ===== */

.card {
  background: linear-gradient(180deg, rgba(20, 25, 32, 0.95), rgba(15, 18, 24, 0.95));
  border: 1px solid #caa34d;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.card-title {
  color: #f0c75e;
}

.card-header {
  background: rgba(0, 0, 0, 0.25);
  color: #f5d88c;
  font-weight: 700;
}

.card-body {
  color: #e6e6e6;
}

#upcoming-raids-body > div:last-child {
  border-bottom: none !important;
}

.wow-card {
  background: radial-gradient(circle at top, #1e2430, #0f131a);
  border: 1px solid #caa24a;
}

.wow-card-header {
  background: linear-gradient(to right, #2a2f3a, #1b1f27);
  color: #e6c97a;
  font-weight: 600;
}

.wow-card .char-icons img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.wow-readonly {
  background: linear-gradient(180deg, #1b2330, #111827);
  color: #f1e6b2;
  border: 1px solid #bfa34a;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

.admin-box {
  border-color: #caa44a;
}

.admin-box .btn {
  letter-spacing: 0.3px;
}


/* ===== 6. Modals ===== */

.modal-content {
  background: linear-gradient(180deg, rgba(20, 25, 32, 0.98), rgba(10, 12, 18, 0.98));
  border: 1px solid #caa34d;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
  color: #e6d8a3;
}

.modal-header {
  border-bottom: 1px solid rgba(202, 163, 77, 0.4);
  background: rgba(0, 0, 0, 0.25);
}

.modal-title {
  color: #f0c75e;
  font-family: "Cinzel", serif;
}

.modal-body {
  color: #e6e1c3;
}

.modal-footer {
  border-top: 1px solid rgba(202, 163, 77, 0.4);
  background: rgba(0, 0, 0, 0.2);
}

.modal .form-control,
.modal .form-select {
  background-color: #0f1219;
  border: 1px solid #c89b3c;
  color: #e6d8a3;
}

.modal .form-check-input {
  background-color: #1b1f27;
  border: 1px solid #caa34d;
}

.modal-backdrop {
  z-index: 2001;
}

.modal {
  z-index: 2002;
}

.modal-backdrop.show {
  background-color: #000;
  opacity: 0.85;
}


/* ===== 7. Forms ===== */

.form-control,
.form-select {
  background-color: #0f1219;
  border: 1px solid #c89b3c;
  color: #e6d8a3;
}

.form-control:focus,
.form-select:focus {
  background-color: #121622;
  border-color: #f0c75e;
  box-shadow: 0 0 5px rgba(240,199,94,0.8);
  color: #fff;
}

.form-control:disabled,
.form-select:disabled {
  background-color: #111;
  border-color: #333;
  color: #888;
  opacity: 1;
}

.list-group-item {
  background-color: #0f1219;
  border: 1px solid #c89b3c;
  color: #e6d8a3;
}


/* ===== 8. Buttons ===== */

.btn-primary {
  background: linear-gradient(to bottom, #c89b3c, #8b6a2b);
  border: 1px solid #f0c75e;
  color: #1b1b1b;
  font-weight: bold;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #e6c36a, #a07b2f);
  color: #000;
}

.btn-success {
  background: linear-gradient(to bottom, #3fa34d, #246b30);
  border: 1px solid #8aff8a;
}

.btn-outline-primary {
  border-color: #c89b3c;
  color: #f0c75e;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-wow {
  background: linear-gradient(135deg, #1f232a, #2a2f38);
  border: 1px solid #c9aa71;
  color: #f5e6c8;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.15s ease-in-out;
}

.btn-wow:hover {
  background: linear-gradient(135deg, #2a2f38, #343a45);
  color: #ffffff;
  border-color: #e0c78a;
}

.btn-wow:focus {
  box-shadow: 0 0 0 0.2rem rgba(201, 170, 113, 0.25);
}

.class-btn,
.spec-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.class-btn.active,
.spec-btn.active {
  border-color: #ffd36a;
  box-shadow: 0 0 10px rgba(255,211,106,0.6);
}

.wow-choice-btn {
  background: rgba(30, 35, 40, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #f5e6b3;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.2s ease-in-out;
}

.wow-choice-btn img {
  width: 28px;
  height: 28px;
}

.wow-choice-btn:hover {
  background: rgba(50, 60, 70, 0.95);
  border-color: rgba(255, 215, 0, 0.6);
}

.wow-choice-btn.active {
  background: linear-gradient(180deg, #3fa34d, #2e7d32);
  border-color: #7dff9a;
  color: #ffffff;
}


/* ===== 9. Alerts ===== */

.alert {
  color: #1b1b1b;
  background-color: #e6c36a;
  border: 1px solid #c89b3c;
}

.alert-success {
  background: rgba(40, 70, 40, 0.9);
  border-color: #4caf50;
  color: #e6ffe6;
}

.alert-danger {
  background: rgba(80, 30, 30, 0.9);
  border-color: #e74c3c;
  color: #ffe6e6;
}

.alert-warning {
  background: rgba(80, 65, 30, 0.9);
  border-color: #f1c40f;
  color: #fff9e0;
}


/* ===== 10. Prio System ===== */

.prio-header {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: transparent;
  border-bottom: 1px solid rgba(255, 215, 100, 0.3);
}

.prio-1 {
  color: #f5c97a;
  text-shadow: 0 0 6px rgba(245, 201, 122, 0.6);
}

.prio-2 {
  color: #9fd3ff;
  text-shadow: 0 0 6px rgba(159, 211, 255, 0.5);
}

.prio-3 {
  color: #d0d0d0;
  text-shadow: 0 0 4px rgba(208, 208, 208, 0.4);
}

.prio-empty {
  color: #e0e0e0;
  font-style: italic;
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 215, 0, 0.3);
}

.prio-summary-empty {
  color: #c9b26a;
  opacity: 0.8;
  font-style: italic;
}

.item-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.prio-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  text-align: center;
  min-height: 64px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(20, 25, 30, 0.9), rgba(10, 12, 15, 0.9));
  color: #f5c97a;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.6), 0 0 6px rgba(202,161,74,0.25);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.prio-item:hover {
  border-color: #f0c75e;
  background: rgba(30, 40, 50, 0.9);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.7), 0 0 10px rgba(245,201,122,0.45);
  transform: translateY(-1px);
}

.prio-item.active {
  border-color: #4cff9a;
  box-shadow: 0 0 10px rgba(76, 255, 154, 0.4);
  background: rgba(46, 204, 113, 0.08);
  cursor: pointer;
}

.prio-item-name {
  font-size: 0.95rem;
  line-height: 1.2;
}

.prio-item-type {
  margin-top: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(220, 220, 220, 0.7);
}

.prio-wow-link {
  cursor: help;
  text-decoration: none;
}

.prio-wow-link:active {
  pointer-events: none;
}


/* ===== 11. Items & Loot ===== */

.wow-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
}

.wow-item-link:hover {
  text-decoration: underline;
}

.wow-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #444;
}

/* WoWHead Auto-Icons */
.iconmedium {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
}

.iconmedium + a {
  margin-left: 8px;
}

.wow-item-link .wh-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  vertical-align: middle;
  transform: scale(1.4);
  transform-origin: left center;
  margin-right: 8px;
}

/* WoWHead Rarity-Farben nicht überschreiben */
.wow-item-link .q1,
.wow-item-link .q2,
.wow-item-link .q3,
.wow-item-link .q4,
.wow-item-link .q5,
.wow-item-link .q6 {
  color: inherit;
}

.loot-type {
  color: #e6d9a3;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.loot-table td,
.loot-table th {
  vertical-align: middle;
}

.loot-table .btn,
.loot-table .form-check-input {
  margin: 0 auto;
  display: block;
}

.patch-inactive {
  color: #b9b9b9;
  font-style: italic;
  letter-spacing: 0.03em;
}

.loot-character-select {
  width: 280px;
  max-width: 100%;
}

.loot-assign-row {
  justify-content: flex-start;
}


/* ===== 12. Raid Panel ===== */

.raid-panel-items .item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.raid-panel-items .prio-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(180,140,50,0.4);
  background: linear-gradient(180deg, rgba(20,20,20,0.85), rgba(10,10,10,0.85));
}

.raid-panel-items .prio-item:hover {
  background: rgba(180,140,50,0.15);
}

.raid-panel-items .prio-item.active {
  background: rgba(180,140,50,0.25);
  outline: 1px solid #b48c32;
}

.raid-panel-items .prio-item-name a {
  font-weight: 600;
  text-decoration: none;
}

.raid-panel-items .prio-item-type {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 4px;
}

.raid-char-row {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.raid-char-row img {
  display: block;
}

.signup-countdown {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: #f5d76e;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 0 6px rgba(245, 215, 110, 0.35);
  white-space: nowrap;
}

.signup-countdown.warning {
  color: #ff9f43;
  text-shadow: 0 0 6px rgba(255, 159, 67, 0.5);
}

.signup-countdown.expired {
  color: #ff6b6b;
  text-shadow: 0 0 6px rgba(255, 107, 107, 0.6);
}


/* ===== 13. Roster & Signups ===== */

.roster-entry,
.signup-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid #3a3f4b;
  background: #151a22;
  color: #f1f1f1;
  cursor: pointer;
}

.roster-entry:hover,
.signup-entry:hover {
  background: #1f2530;
}

.roster-name,
.signup-name {
  font-weight: 500;
}

.signup-status {
  font-size: 0.75rem;
  opacity: 0.85;
}

.signup-status.confirmed { color: #4caf50; }
.signup-status.tentative { color: #ffca28; }
.signup-status.bench     { color: #9e9e9e; }
.signup-status.absent    { color: #ef5350; }

.signup-card {
  width: 100%;
  display: flex;
  align-items: center;
}

.empty-slot {
  opacity: 0.4;
  text-align: center;
  font-style: italic;
  min-height: 41px;
}

.selectable.selected {
  outline: 2px solid #caa24a;
}

.player-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(202, 163, 77, 0.5);
  color: #f1f1f1;
}

.player-entry:hover {
  background: rgba(202, 163, 77, 0.15);
  cursor: pointer;
}


/* ===== 14. Characters ===== */

.char-name {
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.char-class {
  color: #e6c97a;
  font-weight: 600;
}

.char-spec {
  color: #9fd3ff;
  font-style: italic;
}

.char-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.char-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
}

.char-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.char-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.char-icon-small,
.spec-icon-small {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.9;
}

.spec-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.spec-icon.placeholder {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.role-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.6));
}

.ui-icon {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: middle;
  object-fit: contain;
}

.ui-icon-title {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}


/* ===== 15. News ===== */

#news-preview {
  border: 1px solid #c9aa71;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.6));
}

.news-meta {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #c9c9c9;
  opacity: 0.95;
}

.news-date {
  color: #bfbfbf;
}

.news-author {
  color: #e6c77d;
  font-weight: 500;
}

.news-separator {
  margin: 0 0.4rem;
  color: #888;
}


/* ===== 16. Tabs ===== */

.nav-tabs {
  border-bottom: 1px solid rgba(255,215,0,0.3);
}

.nav-tabs .nav-link {
  background: rgba(0,0,0,0.55);
  color: #d8c27a;
  border: 1px solid rgba(255,215,0,0.25);
  border-bottom: none;
}

.nav-tabs .nav-link:hover {
  background: rgba(0,0,0,0.75);
  color: #ffd700;
}

.nav-tabs .nav-link.active {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border-color: rgba(255,215,0,0.6);
  border-bottom: 3px solid #ffd700;
  font-weight: 600;
}

.prio-tab-status {
  font-size: 0.85rem;
  color: #4ade80;
}


/* ===== 17. Context Menu ===== */

.context-menu {
  position: fixed;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 5px 0;
  display: none;
  z-index: 9999;
  min-width: 180px;
}

.context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.context-menu li {
  padding: 8px 12px;
  cursor: pointer;
}

.context-menu li:hover {
  background: #333;
}


/* ===== 18. Raid Live View (shared: Panel + View) ===== */

#live-item-link {
  font-size: 1.4rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}

#live-item-link:hover {
  text-decoration: underline;
}

.live-item-type {
  font-size: 1.05rem;
  color: #f0d27a;
  opacity: 0.95;
}

.superprio {
  font-weight: bold;
  color: #ff6b6b;
}

.prio-table {
  table-layout: fixed;
  width: 100%;
}

.prio-table th:first-child,
.prio-table td:first-child {
  width: 10%;
}

.prio-table th:not(:first-child),
.prio-table td:not(:first-child) {
  width: 30%;
  text-align: center;
  vertical-align: middle;
}

.prio-table .table-warning {
  background-color: #3b2f14 !important;
  border: 1px solid #d6b35c;
}

.prio-table .table-warning a {
  color: #f0d27a !important;
  font-weight: 600;
}

.prio-table .table-danger {
  background-color: #5a1f1f !important;
}

.prio-cell.is-live {
  background-color: #3b2f14;
  border: 1px solid #d6b35c;
}

.prio-cell.is-live a {
  color: #f0d27a;
  font-weight: 600;
}

.ffa-notice {
  margin-top: 8px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  color: #e6c97a;
  background: rgba(80, 65, 30, 0.6);
  border: 1px solid #d6b35c;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.ffa-notice span {
  opacity: 0.85;
  font-weight: 500;
}

#live-prio-area {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  overflow-x: hidden;
}

.prio-live-box {
  background: rgba(10, 10, 10, 0.35);
  border-radius: 10px;
  padding: 14px 10px;
  border: 1px solid rgba(214, 179, 92, 0.25);
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

.prio-live-box h6 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f5e6a8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  margin-bottom: 6px;
}

.prio-live-box .prio-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.prio-live-box .prio-name.superprio {
  color: #ff7b7b;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 107, 107, 0.35), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.loot-meta {
  color: #d0c8a0;
  font-size: 0.9rem;
  margin-top: 4px;
  line-height: 1.3;
}

@keyframes liveItemFlash {
  0%   { background-color: rgba(214,179,92,0.65); }
  100% { background-color: transparent; }
}

.live-item-flash {
  animation: liveItemFlash 1.2s ease-out;
}


/* ===== 19. Raid Panel (Admin) ===== */

#item-container.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

#item-container.item-grid .prio-item {
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  min-height: 70px;
}

#item-container.item-grid .prio-item-name {
  font-weight: 600;
}

#item-container.item-grid .prio-item-type {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

@media (max-width: 992px) {
  #item-container.item-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #item-container.item-grid {
    grid-template-columns: 1fr;
  }

  .loot-character-select,
  #fallback-character-input {
    width: 100%;
  }
}

#housing-stats.card {
  background: rgba(40, 35, 20, 0.9);
  border: 1px solid #d6b35c;
}

#housing-stats .live-item-type {
  font-size: 1.05rem;
  color: #f0d27a;
  font-weight: 600;
}

.housing-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.housing-entry {
  color: #e6c97a;
  font-weight: 500;
}

.housing-count {
  opacity: 0.85;
  margin-left: 4px;
}

#delete-loot-menu {
  min-width: 420px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
}

#delete-loot-menu .dropdown-item {
  padding: 10px 14px;
}

#deleteLootButton {
  min-width: 420px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

#deleteLootButton a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loot-character-select,
#fallback-character-input {
  width: 420px;
  max-width: 100%;
}


/* ===== 20. Statistics ===== */

.stat-header-row {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.stat-header-row:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.collapse-arrow::before {
  content: "▶";
  display: inline-block;
  transition: transform 0.15s ease-in-out;
  font-size: 0.8rem;
  opacity: 0.8;
}

.stat-header-row:not(.collapsed) .collapse-arrow::before {
  transform: rotate(90deg);
}

.raid-participation {
  color: #cfd8ff;
  font-weight: 500;
  margin-left: 4px;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  content: "⇅";
  font-size: 0.7rem;
  margin-left: 6px;
  opacity: 0.5;
}

th.sortable.asc::after  { content: "▲"; opacity: 0.9; }
th.sortable.desc::after { content: "▼"; opacity: 0.9; }

.stat-num {
  text-align: left;
  padding-left: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dropchance-table .stat-header-row {
  background-color: rgba(255, 255, 255, 0.03) !important;
  font-weight: 600;
}

.dropchance-table .stat-header-row:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
}

.dropchance-table table thead th {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.badge.bg-purple {
  background-color: #9b59b6;
  color: #fff;
}


/* ===== 21. User Search ===== */

.search-highlight {
  background-color: rgba(255, 215, 0, 0.15);
}

.search-match {
  color: #ffd700;
  font-weight: 600;
}

.char-match {
  background-color: rgba(255, 215, 0, 0.25);
  border-radius: 4px;
  padding: 1px 4px;
}


/* ===== 22. Utility Classes ===== */

/* Icons */
.choice-icon  { width: 32px; height: 32px; }

/* Interaktion */
.clickable-row { cursor: pointer; }

/* Formular-Elemente */
.input-patch-name { max-width: 400px; }
.select-role      { width: 160px; }

/* Tabellen-Spalten (colgroup) */
.col-item      { width: 65%; }
.col-loot-type { width: 25%; }
.col-action    { width: 80px; }
.col-toggle    { width: 70px; }
.col-prio-label { width: 120px; }

/* Statistik */
.progress-thin        { height: 8px; }
.stat-pct-label       { width: 48px; }
.stat-participation-col { min-width: 100px; }

/* ===== 23. Character Form ===== */
.char-form-limit   { max-width: 600px; }
.char-preview-card { background: #1a1a2e; border: 1px solid #444; border-radius: 8px; max-width: 800px; }
.preview-avatar    { border-radius: 4px; }
.preview-name      { font-size: 1.2rem; font-weight: 600; }
.preview-meta      { color: #888; font-size: .85rem; }
.alert-link-warn   { background: #2a2000; border-color: #f59e0b; border-radius: 8px; max-width: 600px; }
.dark-panel        { background: #1a1a1a; border: 1px solid #444; border-radius: 8px; max-width: 600px; }
.text-muted-sm     { color: #aaa; }
