:root {

  --theme-skin: #fdf0e5;        /* Softer warm cream */
  --theme-skin-light: #fff9f5;
  --theme-blue: #1e3a5f;        /* Softer deep navy */
  --theme-blue-hover: #16304f;  /* Slightly deeper for hover */
  --theme-red: rgb(142 75 29 / 0.91);         /* Muted, less harsh red */
  --theme-red-hover: rgb(136 79 38 / 0.87);
  --shadow: 0 2px 12px rgba(21, 62, 117, 0.10);
}

/* ============================
   SIDEBAR TOGGLE (MOBILE)
   ============================ */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: var(--theme-blue);
  color: var(--theme-skin-light);
  border: 1.5px solid rgba(192, 57, 43, 0.5);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1rem;
}

.sidebar-toggle:hover {
  background: var(--theme-red);
  border-color: var(--theme-blue);
}

/* ============================
   MAIN SIDEBAR CONTAINER
   ============================ */
.sidebar {
  width: 250px;
  background: var(--theme-blue);
  color: var(--theme-skin);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
  border-right: 1px solid rgba(192, 57, 43, 0.3);
  box-shadow: var(--shadow);
}

/* Sidebar Internal Header Elements */
.institution-header-sidebar {
  background-color: rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(253, 240, 232, 0.08);
}

.admission-menu-title {
  color: var(--theme-skin) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 1rem;
  margin-top: 15px;
  opacity: 0.9;
}

/* ============================
   NAVIGATION LINKS
   ============================ */
.sidebar .nav-link {
  color: rgba(253, 240, 232, 0.85) !important;
  padding: 10px 18px;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: background 0.2s ease, border-left 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
  font-weight: 400;
  font-size: 0.92rem;
}

.sidebar .nav-link:hover:not(.disabled) {
  background-color: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
  text-decoration: none;
  border-left: 3px solid rgba(192, 57, 43, 0.6);
}

.sidebar .nav-link.active {
  background-color: rgba(192, 57, 43, 0.2);
  color: #ffffff !important;
  text-decoration: none;
  border-left: 3px solid var(--theme-red);
  font-weight: 500;
  box-shadow: none;
}

.nav-link.disabled {
  pointer-events: none;
  opacity: 0.3;
  background-color: transparent;
}

/* Sidebar section headers */
.sidebar .section-header {
  background: rgba(192, 57, 43, 0.18);
  color: rgba(253, 240, 232, 0.75);
  padding: 8px 12px;
  margin: 16px 0 8px 0;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-left: 2px solid rgba(192, 57, 43, 0.5);
}

/* ============================
   MOBILE OVERLAY
   ============================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 62, 117, 0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* ============================
   RESPONSIVE LOGIC
   ============================ */
@media (min-width: 1024px) {
  .sidebar-toggle {
    display: none;
  }
  .main-content {
    margin-left: 250px !important;
  }
}

@media (max-width: 992px) {
  .institution-header {
    margin-left: 0px;
    padding: 40px 15px 30px;
  }

  .main-content {
    margin-left: 0px !important;
    width: 100%;
    padding: 15px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: all 0.3s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
    transition: all 0.3s ease;
  }
}