/* ========================= */
/* Components */
/* ========================= */

/* Buttons (global style for ebtn, action buttons, etc.) */
.ebtn {
  cursor: pointer;
  font-weight: bold;
  font-size: 21px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  user-select: none;
  padding: 10px 18px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(2px);
}

.ebtn:hover,
.ebtn:focus {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.ebtn.small {
  font-size: 16px;
  margin: 10px;
  padding: 8px 14px;
}

/* Modal close button fix */
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  background: none;   /* prevent gray box */
  border: none;       /* remove button border */
  outline: none;      /* clean focus outline */
}

.close-modal:hover {
  color: #fff;
}

/* RGB underline animation */
@keyframes rgbFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 800% 50%; }
}

/* Forms (error feedback) */
.form-error {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #ff6b6b;
  min-height: 20px;
}

/* Navigation links */
.dash-link {
  color: white;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.dash-link::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, violet, red);
  background-size: 800% 100%;
  animation: rgbFlow 150s linear infinite;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.dash-link:hover::after {
  transform: scaleX(1);
}
