/* =====================================================
   GLOBAL STYLES (used across all pages)
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body defaults (fallback gradient) */
body {
  margin: 0;
  background: linear-gradient(120deg, #0d2b56, #1a3e6e);
  min-height: 100vh;
  height: auto;
  display: block;
  flex-direction: column;
  padding-top: 100px;
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 60px;
  overflow-x: hidden;
  overflow-y: auto;
}
.container {
  display: flex;
  align-items: flex-start;
}

/* =====================================================
   NAVIGATION BAR (shown on all pages except login)
===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 40px;
  width: 40px;
}

.nav-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* About link */
.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffb400;
}

/* Login button */
.login-btn {
  text-decoration: none;
  background-color: #e94e1b;
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
  background-color: #ffb400;
  transform: scale(1.05);
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 25px;
  }

  .nav-title {
    font-size: 16px;
  }
}

/* =====================================================
   ALERT BOX (shared across pages)
===================================================== */
.alert-box {
  position: fixed;
  top: 20px;
  right: -400px;
  padding: 15px 25px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: right 0.4s ease-in-out, opacity 0.3s ease;
  z-index: 9999;
}

.alert-box.show {
  right: 20px;
  opacity: 1;
}

.alert-box.success {
  background-color: #28a745;
}

.alert-box.error {
  background-color: #e74c3c;
}

.alert-box.info {
  background-color: #3498db;
}
/* =====================================================
   PROFILE DROPDOWN (shared across pages)
===================================================== */

.profile-menu {
  position: relative;
  display: inline-block;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  object-fit: cover;
}

/* Show dropdown when hovering over the profile-menu */
.profile-menu:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  right: 1;
  background-color: white;
  border-radius: 8px;
  min-width: 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 0px;
  z-index: 100;
}

.dropdown li {
  list-style: none;
}

.dropdown li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown li a:hover {
  background-color: #f0f0f0;
}

/* =====================================================
   SIDEBAR (shared across pages)
===================================================== */
.sidebar {
  position: fixed;
  top: 70px;      /* below navbar */
  left: 0;
  width: 16%;
  height: calc(100vh - 70px);
  background-color: #29abe2;
  padding: 25px 20px;
  color: #fff;
  overflow-y: auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.sidebar ul {
  list-style: none;
  padding: 30px;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: #0d1b2a;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  padding: 5px 12px;
  display: block;
  border-radius: 6px;
}

.sidebar ul li a:hover {
  color: #ffffff;
}

/* Main content shifts to make space for sidebar and navbar*/
.main-content {
  margin-left: 16%;
  display: flex;
  justify-content: center;
  padding-top: 90px;
}

.content-wrapper {
  margin-left: 16%;    /* pushes content so it's NOT behind sidebar */
  padding: 30px 30px 30px 0;
  padding-top: 100px;  /* pushes content below navbar */
  width: calc(100% - 16%);
  box-sizing: border-box;
  max-width: 1200px;
}
/* =====================================================
   SEARCH BAR (shared across pages)
===================================================== */
.search-form {
  display: flex;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 2px solid #0d1b2a;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 5px 15px;
  align-items: center;
}

/* Search input field */
.search-input {
  border: none;
  outline: none;
  box-shadow: none;
  flex: 1;
  font-size: 15px;
  background: transparent;
  flex: 1;
}
/* Search icon */
.search-icon {
  position: relative;
  right: 0px;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-input {
  padding-right: 40px;
}

.search-form .form-control {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.search-form input[type="search"]::placeholder {
  color: #000000;
}

.search-icon {
  font-size: 1.4rem;
  color: #0d1b2a;
}
