/* ===== BASE STYLES ===== */
:root {
  /* Dark Minecraft Color Palette */
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: #1e1e1e;
  --input-bg: #2d2d2d;
  --border-color: #333;
  
  /* Vibrant Accents */
  --grass: #5cdb95;
  --diamond: #00ffff;
  --gold: #ffd700;
  --redstone: #ff5555;
  --emerald: #00fa9a;
}

/* ===== LAYOUT ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--dark-bg);
  color: white;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  margin: 80px auto 2rem; /* Account for fixed navbar */
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  background-color: #1a1a1a;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: var(--grass);
  font-family: 'Minecraft', sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--diamond);
}

.nav-link.active {
  color: var(--gold);
}

/* Yellow active indicator */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--gold);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.3); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ===== INPUT FORM ===== */
.input-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.server-input {
  width: 100%;
  padding: 12px 15px;
  background: var(--input-bg);
  border: 2px solid var(--diamond);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.server-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* ===== CHECKBOX ===== */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald);
}

/* ===== BUTTONS ===== */
.primary-btn {
  background: linear-gradient(to right, var(--grass), var(--emerald));
  color: black;
  border: none;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 1rem;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 219, 149, 0.3);
}

.server-btn {
  background: rgba(45, 45, 45, 0.5);
  color: white;
  border: 1px solid var(--grass);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 0.25rem;
  transition: all 0.2s;
}

.server-btn:hover {
  background: rgba(92, 219, 149, 0.2);
}

/* ===== SERVER LIST ===== */
.server-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* ===== STATUS PAGE SPECIFIC ===== */
.status-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
}

.status-badge.online {
  background: rgba(92, 219, 149, 0.1);
  color: var(--grass);
  border: 1px solid var(--grass);
}

.status-badge.offline {
  background: rgba(255, 85, 85, 0.1);
  color: var(--redstone);
  border: 1px solid var(--redstone);
}

/* STATUS PAGE STYLES */
.status-background {
  background-color: var(--dark-bg);
  min-height: 100vh;
  padding: 20px;
}

.status-container {
  max-width: 800px;
  margin: 80px auto 2rem;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.status-title {
  color: var(--grass);
  font-family: 'Minecraft', sans-serif;
  font-size: 24px;
  margin: 0;
}

.status-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-badge.online .status-icon {
  background-color: var(--grass);
  box-shadow: 0 0 8px var(--grass);
}

.status-badge.offline .status-icon {
  background-color: var(--redstone);
  box-shadow: 0 0 8px var(--redstone);
}

.server-type {
  color: #aaa;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Status Sections */
.status-section {
  margin-bottom: 25px;
}

.section-title {
  color: var(--diamond);
  font-family: 'Minecraft', sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.motd-box {
  background-color: var(--input-bg);
  padding: 15px;
  border-radius: 6px;
  font-family: 'Minecraft', monospace;
  white-space: pre-wrap;
  line-height: 1.5;
  border-left: 4px solid var(--gold);
}

.player-count {
  font-size: 20px;
  font-weight: bold;
  color: var(--emerald);
  margin-bottom: 5px;
}

.player-list {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: #ccc;
  background-color: var(--input-bg);
  padding: 10px;
  border-radius: 4px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.info-item {
  background-color: var(--input-bg);
  padding: 12px;
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
}

.info-item span {
  color: var(--gold);
}

.back-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background-color: #444;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .container, .status-container {
    padding: 1rem;
  }
  
  .input-card, .status-card {
    padding: 1.5rem;
  }
  
  .server-list, .info-grid {
    grid-template-columns: 1fr;
  }
  
  .server-btn {
    width: 100%;
    margin: 0.25rem 0;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: space-around;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}