/*
 * Estates7 buttons — light purple, premium feel (signed-in pages and login / sign-up pages).
 * Loaded last so it wins over Bootstrap and the older panel styles.
 *   .btn-primary          → main action: soft violet gradient, white text, gentle glow
 *   .btn-outline-*, .btn-light, .btn-secondary → quiet action: lavender fill, purple text
 */
:root {
  --btn-violet-1: #6a4de0;      /* gradient start (also the solid colour) — white text 5.6:1 */
  --btn-violet-2: #7a5cf0;      /* gradient end, lighter purple — white text 4.55:1 */
  --btn-violet-ink: #5536c9;    /* text on lavender buttons */
  --btn-lav: #f3effe;           /* lavender fill */
  --btn-lav-line: #ddd3fc;      /* lavender border */
  --btn-glow: rgba(122, 92, 240, .30);
}

.btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(122, 92, 240, .45) !important; outline: 0; }

/* Main action */
.btn-primary,
.area-admin .content .btn-primary {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff;
  --bs-btn-bg: var(--btn-violet-1); --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--btn-violet-1); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #6a4de0; --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-bg: #b9a9f8; --bs-btn-disabled-border-color: transparent;
  background-image: linear-gradient(135deg, var(--btn-violet-1) 0%, var(--btn-violet-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px -6px var(--btn-glow);
  text-shadow: 0 1px 1px rgba(60, 30, 160, .25);
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.05) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px -8px rgba(122, 92, 240, .5); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.98); filter: none; box-shadow: inset 0 2px 4px rgba(50, 20, 140, .25); }
.btn-primary:disabled, .btn-primary.disabled { background-image: none; box-shadow: none; text-shadow: none; }

/* Quiet actions: lavender */
.btn-outline-primary, .btn-outline-secondary, .btn-light, .btn-secondary {
  --bs-btn-color: var(--btn-violet-ink); --bs-btn-bg: var(--btn-lav); --bs-btn-border-color: var(--btn-lav-line);
  --bs-btn-hover-color: var(--btn-violet-ink); --bs-btn-hover-bg: #e9e2fd; --bs-btn-hover-border-color: #cbbcfa;
  --bs-btn-active-color: var(--btn-violet-ink); --bs-btn-active-bg: #e0d6fc; --bs-btn-active-border-color: #bfaef8;
  --bs-btn-disabled-color: #9a8cc9; --bs-btn-disabled-bg: var(--btn-lav); --bs-btn-disabled-border-color: var(--btn-lav-line);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-light:hover, .btn-secondary:hover { transform: translateY(-1px); }
.btn-outline-primary:active, .btn-outline-secondary:active, .btn-light:active, .btn-secondary:active { transform: scale(.98); }

/* Bigger, thumb-friendly buttons on phones */
@media (max-width: 575.98px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}
