/* ===================================================================
   AsPVP Network - Official Crimson & Carbon Glassmorphism Theme
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --aspvp-red: #ff2a4d;
  --aspvp-red-hover: #ff4770;
  --aspvp-red-dim: rgba(255, 42, 77, 0.14);
  --aspvp-red-glow: rgba(255, 42, 77, 0.38);
  --aspvp-bg-deep: #07080c;
  --aspvp-card-bg: rgba(15, 16, 23, 0.78);
  --aspvp-card-border: rgba(255, 42, 77, 0.16);
  --aspvp-card-hover: rgba(22, 23, 34, 0.92);
}

/* Global Font & Smooth Rendering */
body, html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--aspvp-bg-deep) !important;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 42, 77, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(225, 29, 72, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(255, 42, 77, 0.04) 0px, transparent 50%) !important;
  background-attachment: fixed !important;
  color: #f1f5f9 !important;
  letter-spacing: -0.01em;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(9, 10, 15, 0.7);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 77, 0.32);
  border-radius: 999px;
  transition: all 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--aspvp-red);
  box-shadow: 0 0 10px var(--aspvp-red);
}

/* Top Navigation & App Header */
header, .mantine-AppShell-header {
  background: rgba(10, 11, 17, 0.86) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--aspvp-card-border) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6) !important;
}

/* Navigation Sidebar */
aside, .mantine-AppShell-navbar {
  background: rgba(9, 10, 15, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-right: 1px solid var(--aspvp-card-border) !important;
}

/* Sidebar Active / Hover Navigation Links */
aside a, .mantine-AppShell-navbar a, aside button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 8px !important;
}
aside a:hover, aside button:hover {
  background: var(--aspvp-red-dim) !important;
  color: var(--aspvp-red) !important;
  transform: translateX(3px);
}
aside a[data-active="true"], aside a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(255, 42, 77, 0.22) 0%, rgba(255, 42, 77, 0.04) 100%) !important;
  border-left: 3px solid var(--aspvp-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 15px rgba(255, 42, 77, 0.1);
}

/* Glassmorphism Cards & Panels */
.mantine-Paper-root, 
.mantine-Card-root, 
div[class*="Card"], 
div[class*="Paper"] {
  background: var(--aspvp-card-bg) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--aspvp-card-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Interactive Server Cards on Dashboard */
a[href*="/server/"], 
div[class*="ServerCard"], 
div[class*="server-card"] {
  position: relative;
  overflow: hidden;
}
a[href*="/server/"]::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--aspvp-red), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
a[href*="/server/"]:hover {
  transform: translateY(-3px) scale(1.008) !important;
  border-color: rgba(255, 42, 77, 0.48) !important;
  background: var(--aspvp-card-hover) !important;
  box-shadow: 0 16px 35px -8px rgba(255, 42, 77, 0.25), 0 0 20px -2px rgba(255, 42, 77, 0.18) !important;
}
a[href*="/server/"]:hover::before {
  opacity: 1;
}

/* Console & Terminal Windows */
div[class*="terminal"], 
div[class*="xterm"], 
div[class*="Console"], 
pre, code {
  font-family: 'JetBrains Mono', monospace !important;
}
div[class*="terminal"] {
  background: #040508 !important;
  border: 1px solid rgba(255, 42, 77, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Server Controls (Start, Restart, Stop) */
button[class*="Button"] {
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border-radius: 9px !important;
  transition: all 0.2s ease !important;
}
button:hover {
  transform: translateY(-1px);
}
button:active {
  transform: translateY(1px);
}

/* Primary buttons with Crimson styling */
button[data-variant="filled"], button[class*="filled"] {
  background: linear-gradient(135deg, #ff2a4d 0%, #d91438 100%) !important;
  box-shadow: 0 4px 14px rgba(255, 42, 77, 0.35) !important;
  border: none !important;
}
button[data-variant="filled"]:hover, button[class*="filled"]:hover {
  background: linear-gradient(135deg, #ff4770 0%, #ff2a4d 100%) !important;
  box-shadow: 0 6px 20px rgba(255, 42, 77, 0.5) !important;
}

/* Pulsing Status Badges */
span[class*="Badge"] {
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
}

/* Inputs & Form Fields */
input, select, textarea {
  background: rgba(9, 10, 16, 0.8) !important;
  border: 1px solid rgba(255, 42, 77, 0.2) !important;
  color: #f8fafc !important;
  border-radius: 9px !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--aspvp-red) !important;
  box-shadow: 0 0 0 2px rgba(255, 42, 77, 0.25) !important;
}

/* Modals & Popups */
div[class*="Modal-content"], div[class*="Dialog"] {
  background: rgba(12, 13, 20, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 42, 77, 0.3) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 42, 77, 0.15) !important;
  border-radius: 16px !important;
}

/* Glow Accent Lines */
hr, .mantine-Divider-root {
  border-color: rgba(255, 42, 77, 0.12) !important;
}
