body { font-family: 'Plus Jakarta Sans', sans-serif; }
.nav-link.active {
background-color: rgba(99, 102, 241, 0.15);
color: #a5b4fc;
}
/* Game tile placeholder art: tinted per game via --hue (set from the slug) */
.game-art {
background:
  radial-gradient(circle at 85% 20%, hsl(var(--hue) 85% 60% / 0.45), transparent 55%),
  radial-gradient(circle at 10% 90%, hsl(calc(var(--hue) + 40) 80% 45% / 0.35), transparent 60%),
  linear-gradient(135deg, hsl(var(--hue) 45% 18%), hsl(calc(var(--hue) + 25) 40% 10%));
}
.game-accent { color: hsl(var(--hue) 90% 75%); }
.game-tile:hover .game-art-initials { transform: scale(1.06) rotate(-3deg); }
.tab-btn.active {
background-color: rgba(99, 102, 241, 0.15);
color: #818cf8;
border-color: rgba(99, 102, 241, 0.4);
}

/* AION 2 Class Colors for Party Roster Rows */
.class-templar     { background-color: rgba(59, 130, 246, 0.22); border-left: 3px solid #3b82f6; } /* Royal Blue */
.class-gladiator   { background-color: rgba(239, 68, 68, 0.22);  border-left: 3px solid #ef4444; } /* Red */
.class-assassin    { background-color: rgba(168, 85, 247, 0.22); border-left: 3px solid #a855f7; } /* Shadow Purple */
.class-ranger      { background-color: rgba(34, 197, 94, 0.22);  border-left: 3px solid #22c55e; } /* Forest Green */
.class-sorcerer    { background-color: rgba(6, 182, 212, 0.22);  border-left: 3px solid #06b6d4; } /* Arcane Cyan */
.class-spiritmaster{ background-color: rgba(236, 72, 153, 0.22); border-left: 3px solid #ec4899; } /* Magenta/Pink */
.class-cleric      { background-color: rgba(234, 179, 8, 0.22);  border-left: 3px solid #eab308; } /* Gold/Yellow */
.class-chanter     { background-color: rgba(249, 115, 22, 0.22); border-left: 3px solid #f97316; } /* Orange */
.class-brawler     { background-color: rgba(20, 184, 166, 0.22); border-left: 3px solid #14b8a6; } /* Teal */
.class-default     { background-color: rgba(51, 65, 85, 0.4);   border-left: 3px solid #64748b; }

/* Color-coded Combat Role Badges */
.role-badge {
font-size: 9px;
font-weight: 800;
padding: 1px 6px;
border-radius: 9999px;
letter-spacing: 0.02em;
white-space: nowrap;
line-height: 1.4;
}
.role-tank       { background: rgba(59, 130, 246, 0.22); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.role-healer     { background: rgba(34, 197, 94, 0.22);  color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }
.role-melee-dps  { background: rgba(239, 68, 68, 0.22);  color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.role-ranged-dps { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.role-unassigned { background: rgba(100, 116, 139, 0.22); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.4); }

/* Squad Gap Warning — flags a group missing a Tank or Healer */
.role-gap {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
border: 1px dashed rgba(239, 68, 68, 0.55);
animation: pulse-gap 2s ease-in-out infinite;
}
@keyframes pulse-gap {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}

/* Custom Tooltip Styling */
.player-row:hover .player-card-tooltip {
display: flex;
opacity: 1;
visibility: visible;
}

/* Flatpickr overrides to match the portal's indigo/slate theme */
.flatpickr-calendar {
background: #0f172a !important;
border: 1px solid #1e293b !important;
box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
background: #6366f1 !important;
border-color: #6366f1 !important;
}
.flatpickr-day:hover { background: rgba(99,102,241,0.2) !important; }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover {
background: rgba(99,102,241,0.15) !important;
}

/* Nav pill (Account) while its page is open */
.nav-pill.active {
background-color: rgba(99, 102, 241, 0.2);
color: #c7d2fe;
border-color: rgba(99, 102, 241, 0.45);
}

/* Account page toggle switches */
.toggle { position: relative; width: 2.25rem; height: 1.25rem; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border-radius: 9999px; background: #334155; transition: background .15s; cursor: pointer; }
.toggle span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem; border-radius: 9999px; background: #e2e8f0; transition: transform .15s; }
.toggle input:checked + span { background: #6366f1; }
.toggle input:checked + span::after { transform: translateX(1rem); }
.toggle input:focus-visible + span { outline: 2px solid #a5b4fc; outline-offset: 2px; }
