/* Minecraft-flavored UI theme shared by index.html and admin.html.
   CSS-only approximation (gradients + beveled borders + a pixel font) —
   deliberately doesn't use any actual Mojang game textures/assets. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --grass: #5d9c3f;
  --grass-dark: #3f6e2a;
  --dirt: #8b5a2b;
  --dirt-dark: #5e3b1c;
  --stone: #8a8a8a;
  --stone-light: #c6c6c6;
  --stone-dark: #4a4a4a;
  --panel: #c6c6c6;
  --panel-shadow: #373737;
  --panel-highlight: #ffffff;
  --emerald: #17b06a;
  --redstone: #d8342a;
  --gold: #f7c948;
  --text: #2b2b2b;
}

* { box-sizing: border-box; }

body.mc-theme {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--grass) 0%, var(--grass) 12%, var(--dirt) 12%, var(--dirt-dark) 100%);
  background-attachment: fixed;
  padding: 24px 16px;
}

.mc-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  text-align: center;
  color: #fff;
  text-shadow: 3px 3px 0 #3f3f3f;
  margin: 8px 0 28px;
  letter-spacing: 1px;
}

.mc-panel {
  background: var(--panel);
  border: 4px solid var(--panel-shadow);
  box-shadow:
    inset 3px 3px 0 var(--panel-highlight),
    inset -3px -3px 0 #8b8b8b;
  border-radius: 2px;
  padding: 20px;
  max-width: 460px;
  margin: 0 auto 20px;
}

.mc-panel h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  margin: 0 0 16px;
  color: var(--text);
}

.mc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 4px;
  color: #444;
}

.mc-input, .mc-select {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 3px solid var(--panel-shadow);
  background: #fff;
  box-shadow: inset 2px 2px 0 #8b8b8b;
  border-radius: 0;
}

.mc-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #fff;
  text-align: center;
  padding: 14px 10px;
  border: 3px solid var(--panel-shadow);
  background: var(--stone);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.4),
    inset -2px -2px 0 rgba(0,0,0,0.4);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-shadow: 1px 1px 0 #000;
  transition: transform 0.05s;
}
.mc-btn:hover { filter: brightness(1.15); }
.mc-btn:active { transform: translateY(2px); box-shadow: none; }
.mc-btn:disabled { opacity: 0.5; cursor: default; }

.mc-btn-green { background: var(--emerald); }
.mc-btn-red { background: var(--redstone); }
.mc-btn-gold { background: var(--gold); color: #3f3200; text-shadow: none; }

.mc-btn-row { display: flex; gap: 10px; margin-top: 16px; }
.mc-btn-row .mc-btn { flex: 1; }

.mc-duration-row { display: flex; gap: 8px; margin-top: 6px; }
.mc-duration-row button {
  flex: 1;
  padding: 10px 4px;
  font-size: 11px;
  font-family: 'Press Start 2P', monospace;
  border: 3px solid var(--panel-shadow);
  background: var(--stone-light);
  cursor: pointer;
}
.mc-duration-row button.selected {
  background: var(--emerald);
  color: #fff;
}

.mc-msg { text-align: center; font-size: 13px; margin-top: 10px; min-height: 1.2em; font-weight: 600; }
.mc-msg.error { color: var(--redstone); }
.mc-msg.ok { color: var(--emerald); }

.mc-list { list-style: none; padding: 0; margin: 0; }
.mc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #dcdcdc;
  border: 2px solid var(--panel-shadow);
  margin-bottom: 6px;
  font-size: 13px;
}
.mc-list li .mc-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  color: #fff;
  margin-left: 6px;
}
.mc-tag-whitelisted { background: var(--emerald); }
.mc-tag-blocked { background: var(--redstone); }

.mc-inline-btn {
  font-size: 10px;
  padding: 6px 8px;
  border: 2px solid var(--panel-shadow);
  cursor: pointer;
  margin-left: 6px;
  color: #fff;
}

.mc-center { text-align: center; }
.mc-muted { color: #666; font-size: 13px; text-align: center; }
