/* Fixed Header Banner */
.studio-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 170px;
  background: url('../assets/banner.png') top left / auto 170px repeat-x;
  z-index: 1000;
}

/* Logo Overlay */
.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 30px;
  z-index: 1001;
}

.logo {
  max-height: 140px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

/* Menu Button */
.menu-button {
  background-color: #222;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 8px 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 0 6px lime;
  font-family: 'Minecraftia', sans-serif;
}

/* Piston Menu Container */
#piston-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  background-color: #1a1a1a;
  border: 2px solid #00ff00;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

#piston-menu.open {
  max-height: 1000px;
  opacity: 1;
}

/* Menu Links */
#piston-menu a {
  background-color: #222;
  border: 2px solid #444;
  border-radius: 4px;
  padding: 6px;
  color: #ff4444;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 0 4px #000;
  transition: background 0.3s ease, color 0.3s ease;
}

#piston-menu a:hover {
  background-color: #333;
  color: #ffcc00;
  text-shadow: 0 0 8px #ffcc00;
}

/* Main Content */
body.loaded main {
  margin-top: 230px;
  padding-bottom: 100px;
}

.intro {
  padding: 2em;
  background-color: rgba(0, 0, 0, 0.7);
  margin: 1em;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* Carousel Images */
.half-size {
  max-width: 50%;
  height: auto;
}

/* Footer */
footer {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 1em;
  background-color: #0f0f0f;
  border-top: 2px solid #00ff00;
  color: #00ff00;
  font-family: 'Minecraftia', sans-serif;
  font-size: 0.85rem;
  box-shadow: 0 -2px 8px rgba(0, 255, 0, 0.2);
  z-index: 10;
}

/* Stats */
.stats-bar {
  background: #1a1a1a;
  color: #eee;
  border: 1px solid #4caf50;
  border-radius: 6px;
  padding: 10px;
}

.stat-box {
  padding: 10px;
}

/* Sidebar Panel */
#side-panel {
  position: fixed;
  top: 250px;
  right: 0;
  width: 320px;
  background: #111;
  color: #eee;
  border-left: 2px solid #4caf50;
  padding: 10px;
  z-index: 2001;
  transition: transform 0.3s ease;
}

#side-panel.collapsed {
  transform: translateX(100%);
}

/* Toggle Button */
#side-toggle {
  position: fixed;
  top: 210px;
  right: 0;
  z-index: 2002;
  background: #222;
  color: #4caf50;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  box-shadow: -2px 2px 6px rgba(0, 255, 0, 0.3);
}

/* User List */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
}

.role {
  margin-left: auto;
  font-size: 12px;
  color: #ccc;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}

.user-entry.pulse {
  animation: pulse 0.6s ease-out;
}

/* Accordion */
.accordion-button {
  font-family: 'Minecraftia', sans-serif;
  font-size: 1rem;
  border-bottom: 1px solid #4caf50;
}

.accordion-body {
  background-color: #111;
  border-left: 2px solid #4caf50;
  padding: 1em;
}

.accordion-item {
  border: 1px solid #4caf50;
  border-radius: 6px;
  margin-bottom: 10px;
}