/* Visual polish layered on top of the canvas styles. Loaded last; delete this file
   (and its <link>) to get back to the plain canvas look. Motion is switched off by
   the prefers-reduced-motion rule in base.css. */

/* Navy bands: a soft light source top right, kept faint so text contrast holds. */
.hero, .wp-banner, .page-hero, .wp-hero {
  background-color: var(--hero);
  background-image:
    radial-gradient(900px 260px at 92% -30%, rgba(91, 143, 208, 0.22), transparent 65%),
    radial-gradient(520px 220px at -5% 130%, rgba(110, 231, 183, 0.08), transparent 60%);
  box-shadow: 0 10px 30px -12px rgba(18, 38, 63, 0.45);
}
.wp-tile { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* Cards lift slightly off the page. */
.card, .panel, .facts {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
}

/* Smooth, quick state changes. */
.nav-link, .wp-tab, .table tbody tr, .cl-row, .cl-group-head, .cl-filter,
.button, .link-button, .row-link, .cell-link, .card-link, .dropzone, .search {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.wp-tab:not([aria-current='page']):hover { border-bottom-color: var(--border-input); }
.button--primary:hover:not(:disabled) { background: #16304F; }
.button:active:not(:disabled) { transform: translateY(1px); }
.dropzone:hover { border-color: var(--navy); background: #F0F5FC; }

/* Progress bars with a little depth. */
.bar-fill { background-image: linear-gradient(90deg, #1E3A5F, #3B6FB0); }
.bar-fill.is-complete { background-image: linear-gradient(90deg, #146C43, #1F9D62); }

/* Brand tile in the sidebar. */
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-tile {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF; background: linear-gradient(135deg, #1E3A5F, #12263F);
  box-shadow: 0 2px 6px rgba(18, 38, 63, 0.3);
}
.brand-tile .icon { font-size: 20px; }
.brand-text { display: flex; flex-direction: column; }

/* Toasts and dialogs ease into place. */
.toast { animation: toast-in 0.2s ease-out; }
.toast--leaving { animation: toast-out 0.16s ease-in forwards; }
/* The bar is the auto-dismiss clock (see toast.js); hover or focus stops it. */
.toast-timer { animation: toast-timer 8s linear forwards; }
.toast-area:hover .toast-timer, .toast-area:focus-within .toast-timer { animation-play-state: paused; }
.confirm-dialog[open] { animation: dialog-in 0.15s ease-out; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}
@keyframes toast-timer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
/* A shrinking bar is not motion in the vestibular sense, and without it the toast would never leave. */
@media (prefers-reduced-motion: reduce) {
  .toast-timer { animation: toast-timer 8s linear forwards !important; }
  .toast-area:hover .toast-timer, .toast-area:focus-within .toast-timer { animation-play-state: paused !important; }
}
@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to { opacity: 1; transform: none; }
}
