
:root {
  --bg-1: #1f2125;
  --bg-2: #181212;
  --panel: #212024;
  --accent: #0ef174;
  --muted: #7dfdb9;
  --radius: 14px;

  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================
   BODY
   ========================================== */
html, body {
  margin: 0;
  height: 100%;
}

body {
  background: linear-gradient(180deg, var(--bg-1), #101316);
  color: #e6eef3;
  padding: 0;
}

/* ==========================================
   TOP BAR — przyklejony pasek u góry
   ========================================== */
/* ==========================================
   TOP BAR — przyklejony pasek u góry (fixed)
   ========================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between; /* rozdziela elementy na lewo i prawo */
  align-items: center;
  padding: 18px 24px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px) saturate(130%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box; /* upewnia się, że padding nie przesuwa elementów */
}

/* BACK BUTTON */
.back-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease, box-shadow 0.25s ease;
  margin: 0; /* usuwa margines, który mógł przesuwać w lewo */
  order: 2; /* upewnia się, że jest po prawej */
}

.back-button:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(14,241,116,0.35);
  transform: translateY(-2px);
}



/* Tytuł i podtytuł */
.top-left h1 {
  margin: 0;
  font-size: 22px;
}

.top-left .lead {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--accent);
}

/* Back button */
.back-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease, box-shadow 0.25s ease;
}


/* ==========================================
   WRAPPER — kontener główny
   ========================================== */
.wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 24px 24px 24px; /* 100px = wysokość top-bar + trochę marginesu */
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* ==========================================
   ITEM — kafelek serwera
   ========================================== */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 18px;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14,241,116,0.25);
  background: rgba(255,255,255,0.07);
}

/* LEWA CZĘŚĆ ITEM — INFO */
.item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-info h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.item-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #9db3c2;
}

/* ==========================================
   STATUS PILL
   ========================================== */
.status-pill {
  display: inline-flex; /* zamiast inline-block */
  align-items: center;  /* pionowe centrowanie */
  justify-content: center; /* poziome centrowanie */
  min-width: 60px; /* opcjonalnie, aby były równe szerokości */
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ce7b6;
  transition: all 0.25s ease;
  text-align: center; /* dodatkowo */
}


.status-pill.ok { border-color: #12ff6e; color: #12ff6e; }
.status-pill.warn { border-color: #ffd35f; color: #ffd35f; }
.status-pill.off { border-color: #ff7474; color: #ff7474; }

.status-pill:hover {
  box-shadow: 0 0 12px currentColor;
  background: rgba(255,255,255,0.07);
}

/* ==========================================
   DASHBOARD BUTTON PO PRAWEJ
   ========================================== */
.go-dashboard {
  padding: 12px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,241,116,0.25), rgba(14,241,116,0.05));
  border: 1px solid rgba(14,241,116,0.5);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease, box-shadow 0.25s ease;
}

.go-dashboard:hover {
  background: rgba(14,241,116,0.2);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 18px rgba(14,241,116,0.45);
}

/* ==========================================
   RESPONSYWNOŚĆ
   ========================================== */
@media (max-width: 600px) {
  .item {
    flex-direction: column;
    align-items: flex-start;
  }
  .go-dashboard {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}
footer {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 12px 24px;
  border-top: 1px dashed rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-time {
  color: #aaa;
  font-size: 12px;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-links a {
  color: rgb(139, 92, 246); /* fioletowy */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: var(--accent); /* zielony hover */
  transform: translateY(-2px) scale(1.1);
}

.social-links svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* padding bottom dla wrappera, żeby footer nie nachodził na treść */
.wrapper {
  padding-bottom: 367px;
}
