/* ===================================================
   Roll20 Modern Dark Theme for PlanarAlly VTT
   =================================================== */

:root {
  --r20-bg-dark: #0f1118;
  --r20-card-bg: #181c26;
  --r20-card-border: rgba(255, 255, 255, 0.08);
  --r20-red: #e02424;
  --r20-red-hover: #c81e1e;
  --r20-red-glow: rgba(224, 36, 36, 0.35);
  --r20-text: #f1f5f9;
  --r20-text-muted: #94a3b8;
  --r20-input-bg: rgba(255, 255, 255, 0.05);
  --r20-input-border: rgba(255, 255, 255, 0.12);
}

body {
  background-color: var(--r20-bg-dark) !important;
  color: var(--r20-text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ===================================================
   1. DASHBOARD & SIDEBAR (Roll20 Styling)
   =================================================== */
main[data-v-b4039efd] {
  background-color: rgba(15, 17, 24, 0.85) !important;
  border: 1px solid var(--r20-card-border) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 20px !important;
}

main #sidebar nav[data-v-b4039efd] {
  background-color: rgba(24, 28, 38, 0.95) !important;
  border: 1px solid var(--r20-card-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  border-radius: 16px !important;
}

main #sidebar nav .nav-item[data-v-b4039efd] {
  color: var(--r20-text-muted) !important;
  transition: all 0.2s ease !important;
}

main #sidebar nav .nav-active[data-v-b4039efd],
main #sidebar nav .nav-item[data-v-b4039efd]:hover {
  color: #ffffff !important;
  border-bottom: 4px solid var(--r20-red) !important;
}

main #sidebar nav .nav-data>span[data-v-b4039efd]:first-child {
  color: #ff6b6b !important;
}

main #sidebar nav button[data-v-b4039efd] {
  background-color: var(--r20-red) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px var(--r20-red-glow) !important;
  transition: all 0.2s ease !important;
}

main #sidebar nav button[data-v-b4039efd]:hover {
  background-color: var(--r20-red-hover) !important;
  transform: translateY(-1px) !important;
}

/* Campaign cards */
.game-card, .campaign-card, div[data-v-b4039efd] .element {
  background-color: rgba(28, 32, 45, 0.8) !important;
  border: 1px solid var(--r20-card-border) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

/* ===================================================
   2. GAME VIEW: HIDE EXTERNAL / LICENSE / PATREON LINKS
   =================================================== */
#logo-links {
  display: none !important;
}

#logo img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

#logo-version {
  color: var(--r20-text-muted) !important;
  font-size: 0.75rem !important;
}

/* Radial Menu & Toolbars */
#radialmenu, .rm-wrapper {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) !important;
}

.rm-toggler {
  background: var(--r20-red) !important;
  border: 2px solid #ffffff !important;
}

/* ===================================================
   3. AUTH / LOGIN PAGE CUSTOMIZATIONS
   =================================================== */
.google-login-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  height: 3.4rem !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border-radius: 8px !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s ease !important;
  margin-bottom: 1.25rem !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.google-login-btn:hover {
  background: #f8fafc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

.google-icon {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
}

.auth-divider {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
  color: var(--r20-text-muted) !important;
  font-size: 0.9rem !important;
}

.auth-divider::before,
.auth-divider::after {
  content: "" !important;
  flex: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.auth-divider span {
  padding: 0 14px !important;
  text-transform: lowercase !important;
  letter-spacing: 0.5px !important;
}

/* Dialogs and Modals */
.modal-container, .dialog, .panel {
  background-color: var(--r20-card-bg) !important;
  border: 1px solid var(--r20-card-border) !important;
  color: var(--r20-text) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.modal-header {
  border-bottom: 1px solid var(--r20-card-border) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.modal-footer {
  border-top: 1px solid var(--r20-card-border) !important;
}
