/* style.css */
body {
  margin: 0;
  font-family: sans-serif;
  height: 100vh;
  overflow: hidden;
  background-color: #111;
  display: flex;
  width: 100%;
}

/* Layout chung */
#app {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Sidebar - Luôn hiện trên desktop */
#sidebar {
  width: 250px;
  background-color: #0056b3;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 50; /* Đảm bảo sidebar trên 3D */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}
nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}
nav ul li {
  margin: 15px 0;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  display: block;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.logo-container {
  margin-bottom: 30px;
}
.main-logo {
  width: 150px;
}
.partnership-logo {
  margin-top: auto;
  margin-bottom: 0;
}
.partnership-logo-img {
  width: 100px;
  opacity: 0.7;
}

/* Main Content */
#main-content {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

/* 3D background */
#three-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* Quan trọng: cho phép #three-bg nhận sự kiện chuột */
}
#three-bg canvas {
  display: block;
} /* Loại bỏ khoảng trắng dưới canvas */

/* Khung tuyển sinh (overlay) - Luôn ở góc trên bên trái trên desktop */
#overlay-content {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 80vw;
  max-width: 80vh;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none; /* Mặc định không nhận sự kiện chuột */
}
#overlay-content h1 {
  font-size: 1.4em;
  margin: 0 0 8px 0;
}
#overlay-content p {
  font-size: 0.9em;
  margin-bottom: 15px;
}
#overlay-content button {
  background: #0056b3;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  pointer-events: auto; /* Chỉ nút mới nhận sự kiện */
}
#overlay-content button:hover {
  background-color: #004085;
}

/* Mobile (dưới 768px) */
#menu-toggle {
  display: none;
} /* Mặc định ẩn, chỉ hiện trên mobile */
@media (max-width: 768px) {
  body {
    display: block;
  } /* Bỏ flexbox cho mobile để sidebar có thể trượt */

  /* Menu Toggle Button */
  #menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100; /* Cao nhất */
    background: #0056b3;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
  }
  #menu-toggle:hover {
    background-color: #004085;
  }

  /* Sidebar */
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    transform: translateX(-100%); /* Ẩn ra ngoài */
    transition: transform 0.3s ease-in-out;
    z-index: 90; /* Dưới menu-toggle */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
  }
  #sidebar.active {
    transform: translateX(0);
  } /* Hiện khi active */

  /* Overlay Content - điều chỉnh cho mobile */
  #overlay-content {
    position: absolute;
    top: 80px;
    left: 20px;
    max-width: calc(100% - 40px);
    z-index: 5; /* Trên 3D nhưng dưới menu/sidebar */
  }
}
