/* uPlot Base Styles */
.uplot,.uplot *,.uplot :after,.uplot :before{box-sizing:border-box}
.uplot{font-family:Inter,sans-serif;line-height:1.5;width:max-content}
.uplot .title{text-align:center;font-size:18px;font-weight:700}
.uplot .wrap{position:relative;user-select:none}
.uplot .over,.uplot .under{position:absolute;overflow:hidden}
.uplot canvas{display:block;position:relative;width:100%;height:100%}
.uplot .legend{font-size:14px;margin:auto;text-align:center}
.uplot .legend.inline{display:block}
.uplot .legend.inline *{display:inline-block}
.uplot .legend.inline tr{margin-right:16px}
.uplot .legend th{font-weight:600}
.uplot .legend th>*{vertical-align:middle;display:inline-block}
.uplot .legend .ident{width:1em;height:1em;margin-right:4px;border:2px solid transparent}
.uplot .legend.inline th:after{content:":";vertical-align:middle}
.uplot .legend .series>*{padding:4px}
.uplot .legend .series th{cursor:pointer}
.uplot .legend .off>*{opacity:.3}
.uplot .select{background:rgba(0,0,0,.07);position:absolute;pointer-events:none}
.uplot .select.off{display:none}
.uplot .cursor-x,.uplot .cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform;z-index:100}
.uplot .cursor-x{height:100%;border-right:1px dashed #607d8b}
.uplot .cursor-y{width:100%;border-bottom:1px dashed #607d8b}
.uplot .cursor-pt{position:absolute;top:0;left:0;border-radius:50%;filter:brightness(85%);pointer-events:none;will-change:transform;z-index:100}

/* Icon Font */
@font-face{
  font-family:icomoon;
  src:url(icomoon.26d3d291.ttf) format("truetype"),
      url(icomoon.a1429cb9.woff) format("woff"),
      url(icomoon.9fc0dd81.svg) format("svg");
  font-weight:400;
  font-style:normal;
  font-display:block
}

[class*=" icon-"],[class^=icon-]{
  font-family:icomoon!important;
  speak:none;
  font-style:normal;
  font-weight:400;
  font-variant:normal;
  text-transform:none;
  line-height:1;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale
}

.icon-star:before{content:"\f005"}
.icon-star-o:before{content:"\f006"}
.icon-lock:before{content:"\f023"}
.icon-eye:before{content:"\f06e"}
.icon-eye-slash:before{content:"\f070"}
.icon-cogs:before,.icon-gears:before{content:"\f085"}
.icon-globe:before{content:"\f0ac"}
.icon-code:before{content:"\f121"}
.icon-sort-amount-desc:before{content:"\f161"}
.icon-street-view:before{content:"\f21d"}

/* CSS Variables - Unique 2026 Palette - Deep Space Cyberpunk */
:root {
  --color-dark-gray: #94a3b8;
  --color-gold: #ffb700;
  
  /* Unique color scheme - Electric Emerald & Neon Coral */
  --color-primary: #00f5a0;      /* Electric emerald */
  --color-primary-dim: #00d48a;
  --color-secondary: #ff6b9d;    /* Neon coral */
  --color-accent: #ffd93d;       /* Electric yellow */
  --color-accent-cool: #00e5ff;  /* Electric cyan */
  
  /* Glass morphism */
  --glass-bg: rgba(10, 15, 25, 0.75);
  --glass-border: rgba(0, 245, 160, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  /* Card styles */
  --card-bg: rgba(18, 25, 38, 0.85);
  --card-border: rgba(0, 245, 160, 0.12);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --card-hover-shadow: 0 20px 60px rgba(0, 245, 160, 0.2);
  
  /* Modern radius */
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --border-radius-lg: 20px;
  
  /* Text */
  --text-color: #e8f4f0;
  --text-color-secondary: #b8d4cc;
  --text-color-muted: #7a9c92;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-width: 800px;
  background-image: url(Background.gif);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-color);
  position: relative;
}

/* Modern backdrop overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 245, 160, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 157, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 15, 25, 0.7) 0%, rgba(5, 10, 18, 0.85) 100%);
  z-index: -1;
  pointer-events: none;
}

body, html {
  height: 100%;
}

a {
  text-decoration: none;
  color: var(--color-accent-cool);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.5);
}

#push {
  display: none;
  position: relative;
  min-height: 100%;
}

strong {
  font-weight: 700;
}

.logo-text {
  letter-spacing: -1px;
  color: var(--color-primary);
  font-weight: 800;
  text-shadow: 
    0 0 30px rgba(0, 245, 160, 0.5),
    0 0 60px rgba(0, 245, 160, 0.3),
    0 0 90px rgba(0, 245, 160, 0.1);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 
      0 0 30px rgba(0, 245, 160, 0.5),
      0 0 60px rgba(0, 245, 160, 0.3),
      0 0 90px rgba(0, 245, 160, 0.1);
  }
  50% {
    text-shadow: 
      0 0 40px rgba(0, 245, 160, 0.7),
      0 0 80px rgba(0, 245, 160, 0.4),
      0 0 120px rgba(0, 245, 160, 0.2);
  }
}

/* Header - Glassmorphism Style */
header {
  overflow: auto;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  margin: 20px;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover {
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5);
  border-color: rgba(148, 163, 184, 0.3);
}

header .column-left {
  float: left;
}

header .column-right {
  float: right;
}

header .logo-image {
  --fixed-logo-image-size: 48px;
  width: var(--fixed-logo-image-size);
  height: var(--fixed-logo-image-size);
  margin-right: 12px;
  display: inline-block;
  border-radius: 12px;
  box-shadow: 
    0 4px 16px rgba(0, 245, 160, 0.3),
    0 0 30px rgba(0, 245, 160, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 245, 160, 0.3);
}

header .logo-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 8px 24px rgba(0, 245, 160, 0.5),
    0 0 50px rgba(0, 245, 160, 0.3);
  border-color: rgba(0, 245, 160, 0.5);
}

header .logo-text {
  font-size: 52px;
  margin: -6px 0;
  display: inline-block;
}

header .logo-status {
  font-size: 18px;
  color: var(--text-color-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

/* Header Buttons - Modern Card Style */
header .header-button {
  color: var(--text-color);
  width: 90px;
  height: 90px;
  text-align: center;
  line-height: 20px;
  font-size: 13px;
  margin-left: -1px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

header .header-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

header .header-button:hover::before {
  left: 100%;
}

header .header-button > span:first-of-type {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  color: var(--color-primary);
  filter: drop-shadow(0 0 8px rgba(0, 245, 160, 0.4));
}

header .header-button-group {
  display: inline-block;
}

header .header-button-group:first-of-type {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

header .header-button-group:last-of-type {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

header .header-button-group:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 245, 160, 0.25),
    0 0 30px rgba(0, 245, 160, 0.15);
  border-color: rgba(0, 245, 160, 0.4);
}

header .header-button-single {
  display: none;
  cursor: pointer;
  border-radius: var(--border-radius);
  margin-right: 16px;
}

header .header-button-single:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 245, 160, 0.3),
    0 0 40px rgba(0, 245, 160, 0.2);
}

/* Footer */
footer {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: var(--text-color);
  border-top-right-radius: var(--border-radius-lg);
  border-top-left-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  padding: 16px 0;
  text-align: center;
  width: 90%;
  margin: 15px auto 0;
}

footer a {
  color: var(--color-primary);
  font-weight: 500;
}

footer a:hover {
  color: var(--text-color);
}

/* Status Overlay */
#status-overlay {
  padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  height: 180px;
  width: 380px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -110px;
  margin-left: -190px;
  color: var(--text-color);
}

#status-overlay .logo-image {
  --fixed-logo-image-size: 80px;
  width: var(--fixed-logo-image-size);
  height: var(--fixed-logo-image-size);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 245, 160, 0.4),
    0 0 50px rgba(0, 245, 160, 0.3);
  border: 1px solid rgba(0, 245, 160, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 8px 32px rgba(0, 245, 160, 0.4),
      0 0 50px rgba(0, 245, 160, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 12px 48px rgba(0, 245, 160, 0.6),
      0 0 80px rgba(0, 245, 160, 0.5);
  }
}

#status-text {
  margin-top: 12px;
  color: var(--text-color-secondary);
}

/* Tooltip */
#tooltip {
  display: none;
  position: absolute;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  z-index: 10000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

/* Server List */
#server-list {
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.server {
  padding: 20px;
  width: 820px;
  display: inline-block;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.server::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--color-primary) 30%, 
    var(--color-secondary) 70%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.5);
}

.server:hover::before {
  opacity: 1;
}

.server:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(148, 163, 184, 0.3);
}

.server .column {
  float: left;
}

.server .column-favicon {
  width: 90px;
}

.server .column-favicon .server-favicon {
  --fixed-server-favicon-size: 72px;
  width: var(--fixed-server-favicon-size);
  height: var(--fixed-server-favicon-size);
  border-radius: var(--border-radius-sm);
  margin-top: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.server:hover .column-favicon .server-favicon {
  transform: scale(1.05);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 245, 160, 0.3);
  border: 1px solid rgba(0, 245, 160, 0.2);
}

.server .column-favicon .server-rank {
  display: block;
  width: 72px;
  text-align: center;
  font-weight: 600;
  color: var(--text-color-secondary);
  margin-top: 4px;
}

.server .column-status {
  width: 290px;
}

.server .column-status .server-name {
  display: inline-block;
  font-weight: 600;
  font-size: 20px;
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
}

.server .column-status .server-error {
  display: none;
  color: #ef4444;
  font-weight: 500;
}

.server .column-status .server-label {
  display: none;
}

.server .column-status .server-label,
.server .column-status .server-value {
  color: var(--text-color-muted);
  font-size: 15px;
}

.server .column-graph {
  height: 100px;
  width: 420px;
  position: relative;
}

/* Graph styling - modern gradient */
.server .column-graph canvas {
  border-radius: var(--border-radius-sm);
}

.server-is-favorite {
  cursor: pointer;
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
  transition: all 0.3s ease;
}

.server-is-favorite:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8));
}

.server-is-favorite:hover:before {
  content: "\f006";
}

.server-is-not-favorite {
  cursor: pointer;
  color: var(--text-color-muted);
  transition: all 0.3s ease;
}

.server-is-not-favorite:hover {
  color: var(--color-gold);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
  transform: scale(1.2);
}

.server-highlighted-label {
  font-size: 17px;
  color: var(--text-color-secondary);
}

.server-highlighted-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent-cool);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.global-stat {
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(0, 245, 160, 0.4);
}

/* Sort and Settings Buttons */
#sort-by {
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.3);
  box-shadow: 
    0 4px 16px rgba(255, 107, 157, 0.2),
    inset 0 0 30px rgba(255, 107, 157, 0.1);
}

#sort-by:hover {
  box-shadow: 
    0 8px 24px rgba(255, 107, 157, 0.3),
    0 0 40px rgba(255, 107, 157, 0.2),
    inset 0 0 40px rgba(255, 107, 157, 0.15);
  background: rgba(255, 107, 157, 0.2);
}

#settings-toggle {
  background: rgba(0, 245, 160, 0.15);
  border: 1px solid rgba(0, 245, 160, 0.3);
  box-shadow: 
    0 4px 16px rgba(0, 245, 160, 0.2),
    inset 0 0 30px rgba(0, 245, 160, 0.1);
}

#settings-toggle:hover {
  box-shadow: 
    0 8px 24px rgba(0, 245, 160, 0.3),
    0 0 40px rgba(0, 245, 160, 0.2),
    inset 0 0 40px rgba(0, 245, 160, 0.15);
  background: rgba(0, 245, 160, 0.2);
}

/* Big Graph */
#big-graph {
  padding-right: 65px;
  margin: 0 auto 20px;
  width: 90%;
}

#big-graph canvas {
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#big-graph-controls {
  width: 90%;
  margin: 10px auto;
  display: none;
}

#big-graph-controls-drawer {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: var(--border-radius-lg);
  padding-bottom: 16px;
  box-shadow: var(--card-shadow);
  overflow: auto;
  display: none;
}

#big-graph-controls-drawer .graph-controls-setall {
  text-align: center;
  display: block;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

#big-graph-checkboxes {
  margin: 20px auto 0;
  width: 90%;
}

#big-graph-checkboxes > table {
  width: 100%;
}

.graph-controls-show {
  color: var(--text-color);
}

#big-graph-controls .icon-star {
  color: var(--color-gold);
}

/* Buttons - Modern Style */
.button {
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  box-shadow: 
    0 4px 12px rgba(0, 245, 160, 0.2),
    inset 0 0 20px rgba(0, 245, 160, 0.05);
  position: relative;
  overflow: hidden;
  color: var(--color-primary);
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 245, 160, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 245, 160, 0.3),
    0 0 30px rgba(0, 245, 160, 0.2),
    inset 0 0 30px rgba(0, 245, 160, 0.1);
  border-color: rgba(0, 245, 160, 0.5);
  background: rgba(0, 245, 160, 0.18);
}

.button:active {
  transform: translateY(0);
}

/* Percentage Bar - Modern Gradient */
#perc-bar {
  height: 4px;
  position: relative;
  overflow-x: hidden;
  background: rgba(15, 23, 42, 0.5);
}

#perc-bar .perc-bar-part {
  height: 100%;
  display: inline-block;
  position: absolute;
  transition: all 0.3s ease;
}

/* Mojang Status Colors - Modern */
.mojang-status-online {
  background: #00f5a0;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.4);
}

.mojang-status-unstable {
  background: #ffd93d;
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.4);
}

.mojang-status-offline {
  background: #ff6b9d;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

/* Responsive */
@media only screen and (max-width: 1050px) {
  header {
    padding: 0 !important;
  }
  
  .header-possible-row-break {
    padding-top: 20px;
    width: 100%;
    text-align: center;
  }
  
  .header-possible-row-break:last-of-type {
    margin-bottom: 20px;
  }
}

/* uPlot Selection */
.uplot .select {
  background: rgba(0, 245, 160, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 245, 160, 0.4);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.2);
}

/* Custom Scrollbar - Modern Design */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 15, 25, 0.6);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 160, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid rgba(10, 15, 25, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 160, 0.5);
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.4);
}

/* Selection styling */
::selection {
  background: rgba(0, 245, 160, 0.25);
  color: var(--text-color);
  text-shadow: 0 0 10px rgba(0, 245, 160, 0.3);
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: transform, box-shadow, border-color, background;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}