:root {
  --font-heading: 'Cinzel', 'Kanit', serif;
  --font-body: 'Kanit', 'Outfit', sans-serif;
  --bg-dark: #070a12;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --border-gold: rgba(241, 196, 15, 0.4);
  --border-gold-glow: #f1c40f;
  --accent-cyan: #00e5ff;
  --accent-purple: #9b59b6;
  --accent-green: #2ecc71;
  --accent-red: #e74c3c;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #f39c12;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(241, 196, 15, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #050810 0%, #0c1220 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sleek Clean Custom Vertical Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Glassmorphism Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.glass-panel-gold {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 16px rgba(241, 196, 15, 0.15), inset 0 0 15px rgba(241, 196, 15, 0.04);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: var(--accent-cyan);
}

.btn-cyan {
  background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* QUICK CLICKABLE JOB FILTER BADGES */
.job-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.job-filter-chip {
  padding: 3px 7px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  user-select: none;
}

.job-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.job-filter-chip.active {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

/* Status Badges */
.badge-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-attending {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}
.badge-absent {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}
.badge-tentative {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.4);
}

/* Drag and Drop Visual Feedback */
.drag-over-active {
  border: 2px dashed var(--accent-cyan) !important;
  background: rgba(0, 229, 255, 0.18) !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.5) !important;
}

.member-card-draggable {
  cursor: grab;
  user-select: none;
  transition: all 0.18s ease;
}
.member-card-draggable:active {
  cursor: grabbing;
}
.member-card-draggable:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  border-color: rgba(241, 196, 15, 0.5) !important;
}

/* Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.3); }
  50% { box-shadow: 0 0 18px rgba(241, 196, 15, 0.7); }
  100% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.3); }
}

.glow-animation {
  animation: pulseGlow 2.5s infinite;
}

/* MOUSE WHEEL SCROLLABLE RAID SECTION */
.raid-scroll-canvas {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scroll-behavior: smooth;
}

.raid-40-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

/* Party Member Slot Container */
.party-slot-card {
  min-height: 48px;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}
.party-slot-card.filled {
  background: rgba(24, 35, 60, 0.9);
  border: 1px solid rgba(241, 196, 15, 0.35);
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.member-table-row:hover {
  background: rgba(241, 196, 15, 0.05);
}
