@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Prompt', sans-serif;
}

body {
  background: #fafafa;
  color: #333;
}

/* Main Layout */
.body-wrapper {
  display: flex;
  flex-direction: row;
  height: 100vh;
  padding: 1rem;
  gap: 1rem;
}

/* Sidebar */
.nav-bar {
  width: 15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 3rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 8rem;
  cursor: pointer;
}

.expbtn img {
  width: 1.25rem;
  cursor: pointer;
}

.navlinks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #555;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-tab:hover {
  background-color: #f6f6f6;
  color: #000;
}

.page-anchor {
  text-decoration: none;
}

/* Content Area */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Title Bar */
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.page-sum {
  font-size: 1rem;
  color: #9d9d9d;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.notification img {
  width: 1.8rem;
}

.profile-pic img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

/* Mobile Nav */
.menu-button {
  display: none;
  cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    width: 90%;
    background-color: white;
    border-radius: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    height: fit-content;
    transition: top 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.mobile-nav.show {
    display: flex;
    top: 5rem;
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ============== Responsive ============== */

@media (min-width: 1000px) and (max-width: 1700px) {
  /* Main Layout */
.body-wrapper {
  display: flex;
  flex-direction: row;
  height: 100vh;
  padding: 1rem;
  gap: 1rem;
}

/* Sidebar */
.nav-bar {
  width: 15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 3rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 8rem;
  cursor: pointer;
}

.expbtn img {
  width: 1.25rem;
  cursor: pointer;
}

.navlinks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #555;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-tab:hover {
  background-color: #f6f6f6;
  color: #000;
}

.page-anchor {
  text-decoration: none;
}

/* Content Area */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Title Bar */
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.page-sum {
  font-size: 1rem;
  color: #9d9d9d;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.notification img {
  width: 1.8rem;
}

.profile-pic img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

/* Mobile Nav */
.menu-button {
  display: none;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  background-color: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mobile-nav.show {
  display: flex;
}

}

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .body-wrapper {
    flex-direction: column;
    height: auto;
  }

  .nav-bar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 0.8rem 1rem;
  }

  .navlinks {
    flex-direction: row;
    gap: 1rem;
  }

  .nav-tab p {
    display: none; /* Keep icons only for compact tablet view */
  }

  .title-bar {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .nav-bar {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .profile-container {
    display: none;
  }

  .body-wrapper {
    padding: 0.5rem;
  }

  .title-bar {
    justify-content: space-between;
  }

  .page-heading {
    font-size: 1.3rem;
  }

  .page-sum {
    font-size: 0.9rem;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .page-heading {
    font-size: 1.1rem;
  }

  .page-sum {
    font-size: 0.8rem;
  }

  .title-bar {
    padding: 0.6rem;
  }

  .profile-pic img {
    width: 2.5rem;
    height: 2.5rem;
  }
}