:root {
  --brand-blue: #1E3F8F;
  --brand-blue-dark: #16316f;
  --brand-red: #C8362E;
  --brand-red-dark: #a52c25;
}

body {
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1b1f24;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-blue);
  padding: 0.85rem 1.5rem;
}
.navbar-links a {
  color: #cfd8f0;
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 1.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.navbar-links a.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--brand-red);
}
.navbar-links a:hover { color: #fff; }
.navbar-logout { color: #cfd8f0; text-decoration: none; font-size: 0.9rem; }
.navbar-logout:hover { color: #fff; }

button {
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}
button:hover { background: var(--brand-blue-dark); }

.error { background: #fdecea; border: 1px solid #eeb3ae; color: var(--brand-red-dark); padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; }
.warning { background: #fff4e5; border: 1px solid #f5c26b; color: #8a5a00; padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; }
.success { background: #eaf7ee; border: 1px solid #a9dcb8; color: #1e7b3a; padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; }

#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 1000;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--brand-red-dark); }
