/* ============================
   RESET & BASE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #1f2937; /* Dark gray */
  line-height: 1.5;
}

/* ============================
   NAVBAR CONTAINER
============================ */
.navbar-container {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ============================
   NAVBAR LAYOUT
============================ */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left, Middle, Right sections */
.nav-left,
.nav-middle,
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ============================
   LINKS STYLES
============================ */
.nav-link,
.login-btn,
.register-btn,
.side-link {
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover,
.login-btn:hover,
.register-btn:hover,
.side-link:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* Home button special style */
.home-btn {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
}

/* Separator */
.separator {
  color: #9ca3af;
  font-weight: 600;
  user-select: none;
}

/* ============================
   PROFILE CIRCLE (Right)
============================ */
.profile-circle {
  width: 36px;
  height: 36px;
  background-color: #4f46e5; /* Indigo-600 */
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgb(79 70 229 / 0.4);
  transition: background-color 0.3s ease;
}

.profile-circle:hover {
  background-color: #4338ca; /* Indigo-700 */
}

/* ============================
   SIDEPAGE OVERLAY
============================ */
#sidepage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 41, 55, 0.5); /* Dark semi-transparent */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#sidepage-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================
   SIDEPAGE (Sidebar)
============================ */
#profile-sidepage {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1000;
}

#profile-sidepage.open {
  right: 0;
}

/* SIDEPAGE HEADER */
.sidepage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sidepage-header h3 {
  font-weight: 700;
  font-size: 1.3rem;
  color: #111827;
}

.sidepage-header button {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
}

.sidepage-header button:hover {
  color: #111827;
}

/* SIDEPAGE CONTENT */
.sidepage-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* USERNAME IN SIDEPAGE */
.side-username {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #111827;
}

/* ============================
   BUTTONS INSIDE SIDEPAGE
============================ */
.side-link {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.side-link:hover {
  background-color: #f3f4f6;
  border-color: #a5b4fc; /* Indigo-300 */
  color: #4338ca; /* Indigo-700 */
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
  }

  .nav-middle {
    gap: 12px;
  }

  .nav-link,
  .login-btn,
  .register-btn {
    font-size: 0.9rem;
    padding: 4px 8px;
  }

  #profile-sidepage {
    width: 280px;
  }
}

