/* ✅ Sidebar Green Theme */
.sidebar .nav-link {
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 8px 12px;
  position: relative;
  color: #166534; /* darker green text */
  font-weight: 500;
}

.sidebar .nav-link:hover {
  background-color: #ecfdf5;
  color: #15803d;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.15);
}

/* Left highlight bar */
.sidebar .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background-color: transparent;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.sidebar .nav-link:hover::before {
  background-color: #22c55e;
}

/* Icon tone */
.sidebar .nav-link i {
  margin-right: 8px;
  transition: transform 0.3s ease;
  color: #22c55e;
}

.sidebar .nav-link:hover i {
  transform: rotate(-3deg) scale(1.1);
}

/* Divider style */
.sidebar hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #d1fae5, #bbf7d0, #d1fae5);
  margin: 14px 0;
}

/* Active page */
.sidebar .nav-link.active {
  background-color: #d1fae5;
  color: #166534;
  font-weight: bold;
  box-shadow: inset 4px 0 0 #22c55e;
}

/* Logout remains distinct red */
.sidebar .nav-link[href*="logout.php"] {
  color: #dc3545;
}

.sidebar .nav-link[href*="logout.php"]:hover {
  background-color: #ffe6e6;
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.25);
  color: #dc3545;
}

.sidebar-menu-box {
  background: #f9fdfb;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}


/* ✅ Top Navbar Green Theme */
.navbar-dark {
  background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  border-bottom: 2px solid #22c55e;
}

.navbar .navbar-brand img {
  height: 42px;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

.navbar-nav .nav-link {
  color: #f0fdf4;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 6px 12px;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(209, 250, 229, 0.1);
  color: #22c55e;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.3);
}

.navbar-nav .nav-link i {
  margin-right: 6px;
  color: #22c55e;
}


/* ✅ Footer Green Theme */
.footer {
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  background: #1a1a1a;
  color: #f0fdf4;
  border-top: 2px solid #22c55e;
  margin-top: 40px;
  box-shadow: inset 0 4px 6px rgba(0,0,0,0.3);
}

.footer a {
  color: #22c55e;
  text-decoration: underline;
}

.footer a:hover {
  color: #86efac;
}
