/* Sidebar */
nav.sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #E75480;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 6px 0 25px rgba(193, 64, 111, 0.7);
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: left 0.3s ease;
}
nav.sidebar:hover {
  background-color: #c1406f;
  box-shadow: 6px 0 30px rgba(193, 64, 111, 0.9);
}
nav.sidebar h4 {
  color: #fff;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 1.2px;
  cursor: default;
  user-select: none;
  transition: text-shadow 0.3s ease;
}
nav.sidebar h4 i {
  margin-right: 10px;
  color: #ffd1e3;
  transition: transform 0.3s ease;
}
nav.sidebar:hover h4 i {
  transform: rotate(15deg);
}
nav.sidebar:hover h4 {
  text-shadow: 0 0 8px #ffd1e3;
}
nav.sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}
nav.sidebar li {
  margin-bottom: 15px;
}
nav.sidebar a.nav-link {
  color: #fff;
  padding: 12px 18px;
  display: block;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: capitalize;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  box-shadow: none;
  user-select: none;
  text-decoration: none;
}
nav.sidebar a.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px 2px #ff5fa2;
  transform: translateX(7px) scale(1.03);
  text-shadow: 0 0 6px #fff;
}
nav.sidebar a.nav-link.active {
  background-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 12px 3px #ff2e6f;
  font-weight: 900;
  text-shadow: 0 0 8px #ff2e6f;
  transform: scale(1.05);
}
nav.sidebar a.nav-link:focus {
  outline: none;
  box-shadow: 0 0 15px 4px #ff2e6f;
}
nav.sidebar a.nav-link:hover {
  animation: bounce 0.4s ease;
}

/* Logout button pinned at bottom */
.logout-btn {
  width: 100%;
  margin-top: auto;
  background-color: #ff2e6f;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px #ff2e6f88;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  padding: 12px 0;
}
.logout-btn:hover {
  background-color: #e82a64;
  box-shadow: 0 0 25px #ff2e6fcc;
  transform: scale(1.05);
}
.logout-btn:focus {
  outline: none;
  box-shadow: 0 0 35px #ff2e6fee;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  nav.sidebar {
    left: -250px;
  }
  nav.sidebar.show {
    left: 0;
  }
  #sidebarToggle {
    display: inline-block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1060;
  }
  main.container {
    margin-left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
@media (min-width: 768px) {
  #sidebarToggle {
    display: none;
  }
  main.container {
    margin-left: 270px !important;
  }
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

/* --- Button Styles from announcement.css --- */
.btn-success,
.btn-primary {
  background-color: #ff2e6f;
  border: none;
  color: #fff;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-success:hover,
.btn-primary:hover {
  background-color: #e82a64;
  box-shadow: 0 0 8px #ff2e6f;
  transform: scale(1.03);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid #ff2e6f;
  color: #ff2e6f;
  background-color: transparent;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: #ff2e6f;
  color: #000000;
}

/* Action buttons */
.btn-edit,
.btn-delete {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Courier New', monospace;
}
.btn-edit {
  background: linear-gradient(135deg,#ff2e6f, #ff2e6f);
}
.btn-edit:hover {
  background: linear-gradient(135deg, #e84393, #c41f5a);
  transform: scale(1.05);
}
.btn-delete {
  background-color: #cc224e;
}
.btn-delete:hover {
  background: linear-gradient(135deg, #c62828, #880e4f);
  transform: scale(1.05);
}

/* Back button */
.btn-back {
  background-color: transparent;
  color: #ccc;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}
.btn-back:hover {
  background-color: #ff2e6f;
  color: #fff;
  border-color: #ff2e6f;
}
