/* -------------------------
   BODY & BACKGROUND
------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Poppins", sans-serif;
  color: #f8f5ff;
  background: #222;
  overflow-y: scroll;
}

.background {
  position: fixed;
  inset: 0;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(3px);
  z-index: -1;
}

/* -------------------------
   SIDEBAR
------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(42,42,42,0.85), rgba(101,64,255,0.85));
  border-radius: 0 20px 20px 0;
  border-right: 2px solid rgba(150,115,255,0.5);
  box-shadow: inset -2px 0 5px rgba(150,115,255,0.2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.sidebar-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #f0e6ff;
  text-shadow: 0 0 5px rgba(150,115,255,0.6);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.85em;
  color: #d0c0ff;
  text-align: center;
  line-height: 1.3;
}

.sidebar-footer a {
  color: #bfaaff;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(150,115,255,0.5);
  transition: all 0.3s ease;
}

.sidebar-footer a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(150,115,255,0.8);
}

/* -------------------------
   SIDEBAR BUTTONS
------------------------- */
.tab-button {
  background-color: rgba(47,47,47,0.3);
  color: #bfaaff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: rgba(101,64,255,0.7);
  color: white;   
}

.tab-button.active {
  background-color: rgba(122,92,255,0.8);
  color: white;
}

/* -------------------------
   TOPBAR
------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 200px;
  right: 0;
  height: 50px;
  background: rgba(255, 0, 0, 0.8); /* temporary test */
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 30; /* <--- bump this higher than sidebar’s 10 */
  min-height: 50px; /* ensure height isn’t collapsing */
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar .welcome-message {
  font-weight: 500;
}

.topbar-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-left: 8px;
  transition: opacity 0.2s;
}

.topbar-controls button:hover {
  opacity: 0.7;
}

/* -------------------------
   CONTENT AREA
------------------------- */
.content {
  margin-left: 220px;
  margin-top: 70px;
  margin-right: 36px;
  background: rgba(30,30,34,0.92);
  max-width: 920px;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  position: relative;
}

/* -------------------------
   LOGO & HEADINGS
------------------------- */
.logo {
  display: block;
  margin: 0 auto 18px;
  width: 60%;
  max-width: 700px;
  height: auto;
}

h1 {
  text-align: center;
  color: #a88aff;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(150,115,255,0.3);
}

h2 {
  color: #6540ff;
  margin: 12px 0 8px;
}

/* -------------------------
   TEXT & LINKS
------------------------- */
p, li {
  font-size: 1.1em;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(255,255,255,0.25);
}

a {
  color: #7a73ff;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(150,115,255,0.3);
  transition: all 0.3s ease;
}

a:hover {
  color: #b8a1ff;
  text-decoration: underline;
  text-shadow: 0 0 20px rgba(150,115,255,0.9);
}

a:visited {
  color: #7b4fff;
}

/* -------------------------
   TAB CONTENT (animated)
------------------------- */
.tab-area {
  position: relative;
  min-height: 40px;
}

.tab-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 360ms cubic-bezier(.2,.9,.25,1), transform 360ms cubic-bezier(.2,.9,.25,1);
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 800px) {
  .sidebar { width: 160px; }
  .topbar { left: 160px; }
  .content { margin-left: 180px; padding: 24px; }
  .logo { width: 75%; }
}