/* Global */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: #000;
  color: #eee;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 210px;
  background: #111;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar .logo a {
  display: inline-block;
}

.logo-img {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0;
  cursor: pointer;
}

.sidebar nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar nav a {
  color: #aaa;
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar nav a:hover {
  color: #fff;
}

/* Content */
.content {
  margin-left: 250px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  transition: margin-left 0.4s ease-in-out, opacity 0.5s ease-in-out;
  position: relative;
  background: #111;
}

iframe {
  flex: 1;
  border: none;
  width: 100%;
  transition: opacity 0.3s ease-in-out;
}

iframe.fade-out {
  opacity: 0;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 210px;
  right: 0;
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar Fullscreen */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .sidebar {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    z-index: 1001;
  }

  .sidebar.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 0;
  }

  .sidebar nav a {
    font-size: 1.5rem;
    text-align: center;
    color: #eee;
  }

  .sidebar nav a:hover {
    color: #fff;
  }

  .footer {
    left: 0;
    bottom: 20px;
    width: 100%;
    text-align: center;
  }

  .content {
    margin-left: 0;
  }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
