:root {
  --bg-dark: #f1f1f1;
  --card-bg-dark: #f1f1f1;
  --text-dark: #333333;
  --orange-dark: #ff7b00;
  
  --bg-light: #f1f1f1;
  --card-bg-light: #ffffff;
  --text-light: #333333;
  --orange-light: #ff6600;

  --bg: var(--bg-dark);
  --card-bg: var(--card-bg-dark);
  --text: var(--text-dark);
  --orange: var(--orange-dark);
}
/* Tema escuro (padrão) */
[data-theme="dark"] {
  --bg: var(--bg-dark);
  --card-bg: var(--card-bg-dark);
  --text: var(--text-dark);
  --orange: var(--orange-dark);
}

/* Tema claro */
[data-theme="light"] {
  --bg: var(--bg-light);
  --card-bg: var(--card-bg-light);
  --text: var(--text-light);
  --orange: var(--orange-light);
}
#theme-toggle {
  background-color: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);

  /* Posicionamento fixo no canto inferior direito */
  position: fixed;
  bottom: 20px;   /* Distância do fundo */
  left: 20px;    /* Distância da direita */
  z-index: 1000;  /* Garante que o botão fique acima de outros elementos */
}

#theme-toggle:hover {
  background-color: var(--orange-dark);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.7);
  transform: scale(1.05);
}

#theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 15px var(--orange);
}

#theme-toggle:active {
  transform: scale(0.98);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: orange;
  padding: 5px;
  border-radius: 5px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: var(--card-bg);
  padding: 20px;
  text-align: center;
}

header h1 {
  color: var(--orange);
  margin-bottom: 10px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav button {
  background: none;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

nav button:hover {
  background: var(--orange);
  color: #000;
}

main {
  flex: 1;
  padding: 20px;
}

.tab {
  display: none;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tab.active {
  display: flex;
}

.card, .server, .content {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.1);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card h3, .server h3, .content h2 {
  color: var(--orange);
  margin-bottom: 5px;
}

.server .status {
  font-weight: bold;
  color: limegreen;
}

.server .status.offline {
  color: red;
}

.content ul {
  margin-top: 10px;
  padding-left: 20px;
}

footer {
  background: var(--card-bg);
  color: var(--gray);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .card, .server, .content {
    width: 100%;
  }

  nav button {
    flex: 1 1 100%;
    max-width: 300px;
  }
}

/*    Servers    */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

.loader {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #333;
  border-top: 6px solid var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--orange);
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

.server-page {
  padding: 20px;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}

.server-page h1 {
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 10px;
}

.server-page .desc {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
}

.server-page .status {
  font-weight: bold;
  margin-bottom: 20px;
}

.code-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.code-box input {
  background: #333;
  border: 1px solid #444;
  padding: 10px;
  color: #fff;
  width: 220px;
  border-radius: 5px;
  text-align: center;
}

.code-box button {
  background: var(--orange);
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.code-box button:hover {
  opacity: 0.85;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-wrapper img {
  display: block;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0; /* aqui sim */
}

.new-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgb(255, 102, 0);
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 10; /* garante que vai ficar por cima da imagem */
}