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

html, body, .main-layout {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
}

.server-status {
  position: absolute;
  right: 24px;
  bottom: 16px;
  background: rgba(32,32,32,0.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-size: 1em;
  z-index: 3;
  min-width: 110px;
  text-align: right;
}
.server-status .status-online { color: #42f56c; font-weight: bold;}
.server-status .status-offline { color: #fc4343; font-weight: bold;}
.server-status .srv-motd { font-size: 0.95em; opacity: 0.8;}

.header {
  position: relative;
  height: 180px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  z-index: 2;
  overflow: hidden;
}

.header-content-box {
  background: rgba(40, 40, 40, 0.7); /* semi-transparent gray */
  border-radius: 12px;
  padding: 18px 32px;
  display: inline-block;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  margin-left: 10px;
  margin-top: 12px;
}

.panorama-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.panorama-strip {
  display: flex;
  height: 100%;
  will-change: transform;
}

.panorama-strip img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

.header-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('header-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
  z-index: 1;
}

.logo {
  z-index: 2;
  margin: 0 20px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.header-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.header h1 {
  font-size: 2em;
  margin-bottom: 0.3em;
}

.header p {
  font-size: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-toggle {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 3;
  background: #444;
  border: none;
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: #666;
}

.body-area {
  display: flex;
  height: calc(100vh - 180px);
  min-height: 0;
}

.side-nav {
  width: 210px;
  min-width: 180px;
  background: #292929;
  color: #fff;
  padding-top: 20px;
  transition: transform 0.3s;
  transform: translateX(0);
  z-index: 1;
  overflow-y: auto;
}

.side-nav.closed {
  transform: translateX(-100%);
}

.side-nav ul {
  list-style: none;
}

.side-nav li {
  margin-bottom: 18px;
}

.side-nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  display: block;
  border-left: 4px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.side-nav a.active,
.side-nav a:hover {
  background: #444;
  border-left: 4px solid #00baff;
}

.main-content {
  flex: 1;
  padding: 36px;
  overflow-y: auto;
  background: #f7f7f7;
  height: 100%;
}

@media (max-width: 800px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 16px;
    text-align: center;
  }
  .logo {
    margin: 0 auto 12px;
  }
  .nav-toggle {
    top: 12px;
    left: 12px;
  }
  .body-area {
    flex-direction: column;
  }
  .side-nav {
    position: absolute;
    left: 0; top: 180px; bottom: 0;
    height: calc(100vh - 180px);
    z-index: 10;
  }
}

@media (max-width: 500px) {
  .side-nav {
    width: 80vw;
    min-width: 0;
  }
  .main-content {
    padding: 14px;
    }


}

