/* Admin styles for CrazzyUniverse */

/* Import Minecraft font from style.css */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* General admin styles */
body {
  background-color: #0a0a23;
  color: #e6e6e6;
  font-family: 'Minecraft', 'VT323', monospace, Arial, sans-serif;
  background: linear-gradient(to bottom, #0a0a23 0%, #1a1a4a 100%);
  background-attachment: fixed;
  position: relative;
  image-rendering: pixelated;
}

/* Create stars effect with pseudo-elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 2px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 1px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 2px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  z-index: -1;
  animation: twinkling 10s linear infinite;
}

@keyframes twinkling {
  from { opacity: 0.7; }
  50% { opacity: 1; }
  to { opacity: 0.7; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  background-color: rgba(21, 21, 21, 0.9);
  padding: 20px 0;
  border-bottom: 4px solid #5d4a1f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

header h1 {
  margin: 0;
  color: #55ff55; /* Minecraft green */
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li a {
  color: #aaaaaa; /* Minecraft light gray */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  text-shadow: 1px 1px 0 #000;
  padding: 5px 10px;
  border: 2px solid transparent;
}

nav ul li a:hover {
  color: #ffffff;
  border: 2px solid #5d4a1f; /* Minecraft brown */
  background-color: rgba(0, 0, 0, 0.3);
}

/* Main content styles */
main {
  padding: 40px 0;
}

.admin-section {
  background-color: rgba(21, 21, 21, 0.8);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 4px solid #5d4a1f;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #000;
  image-rendering: pixelated;
}

.admin-section h2 {
  color: #ffff55; /* Minecraft yellow */
  margin-top: 0;
  border-bottom: 2px solid #5d4a1f;
  padding-bottom: 10px;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
}

/* Protocol configuration styles */
.protocol-config {
  background-color: rgba(21, 21, 21, 0.8);
  border: 4px solid #5d4a1f;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #000;
  image-rendering: pixelated;
  position: relative;
}

.protocol-config h3 {
  color: #ffaa00; /* Minecraft gold */
  margin-top: 0;
  text-shadow: 1px 1px 0 #000;
  border-bottom: 2px solid #5d4a1f;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #55ff55; /* Minecraft green */
  text-shadow: 1px 1px 0 #000;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #5d4a1f;
  background-color: rgba(0, 0, 0, 0.6);
  color: #aaaaaa; /* Minecraft light gray */
  font-family: inherit;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.form-group input[type="checkbox"] {
  transform: scale(1.5);
  margin-right: 10px;
  accent-color: #5d4a1f;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #aaaaaa; /* Minecraft light gray */
  font-style: italic;
  text-shadow: 1px 1px 0 #000;
}

/* Button styles */
.btn {
  position: relative;
  background-color: #5d4a1f; /* Minecraft brown */
  color: white;
  border: 2px solid #000;
  padding: 12px 24px;
  border-radius: 0;
  cursor: pointer;
  font-weight: bold;
  font-family: inherit;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
  box-shadow:
    inset -2px -4px #0006,
    inset 2px 2px #FFF7;
  image-rendering: pixelated;
}

.btn:hover {
  background-color: #7e6a2f;
}

/* Footer styles */
footer {
  background-color: rgba(21, 21, 21, 0.9);
  padding: 20px 0;
  text-align: center;
  border-top: 4px solid #5d4a1f;
  position: relative;
}

/* Minecraft dirt border at top of footer */
footer::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABUSURBVDiNY2AYBYMIfGBg+P+BgeE/lM3AwMDwH8q+/4GBgfEDAwMjAyYACmBggrKZGBgYGP5D5ZkYGBgYmaAK/kPFmKBsRgYGBkYmqDwjAyMD4wADAKiuB4Q3KkPEAAAAAElFTkSuQmCC');
  background-repeat: repeat-x;
  image-rendering: pixelated;
}

footer p {
  margin: 0;
  color: #aaaaaa; /* Minecraft light gray */
  text-shadow: 1px 1px 0 #000;
}

/* Minecraft-inspired pixel border effect - already applied above */
