/* Shared TaxAI app-page styling for dashboard and board pages. */
:root {
  --app-panel: rgba(255,255,255,.62);
  --app-panel-strong: rgba(255,255,255,.78);
  --app-panel-soft: rgba(250,247,255,.66);
  --app-border: rgba(76,29,149,.14);
  --app-border-strong: rgba(124,58,237,.28);
  --app-shadow: 0 14px 38px rgba(35,18,72,.07), inset 0 1px 0 rgba(255,255,255,.72);
  --app-shadow-hover: 0 22px 58px rgba(35,18,72,.13), 0 0 0 1px rgba(168,85,247,.08), inset 0 1px 0 rgba(255,255,255,.76);
}

body {
  background:
    radial-gradient(circle at 14% 6%, rgba(196,181,253,.34), transparent 26rem),
    radial-gradient(circle at 86% 4%, rgba(168,85,247,.22), transparent 28rem),
    radial-gradient(circle at 50% 105%, rgba(76,29,149,.11), transparent 34rem),
    linear-gradient(180deg, #fbfaff 0%, #f5f1ff 44%, #fbfaff 100%) !important;
  overflow-x: hidden;
}

body::before {
  z-index: -2 !important;
  background-image:
    linear-gradient(rgba(124,58,237,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.045) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.78), transparent 76%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(168,85,247,.16), transparent 58%),
    radial-gradient(ellipse at 72% 10%, rgba(196,181,253,.2), transparent 56%);
  filter: blur(2px);
}

.header {
  height: 72px !important;
  padding: 0 clamp(18px, 4vw, 48px) !important;
  gap: 14px !important;
  background: rgba(255,255,255,.64) !important;
  border-bottom: 1px solid rgba(76,29,149,.14) !important;
  box-shadow: 0 14px 42px rgba(35,18,72,.08), inset 0 1px 0 rgba(255,255,255,.75) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
}

.logo {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 54%, #a855f7 100%) !important;
  box-shadow: 0 14px 32px rgba(124,58,237,.32), inset 0 1px 0 rgba(255,255,255,.3) !important;
}

.header h1 {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em !important;
}

.header-sub {
  color: var(--text-muted, var(--muted)) !important;
  font-size: 13px !important;
}

.header-right {
  gap: 8px !important;
}

.header-btn,
.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  border: 1px solid rgba(76,29,149,.16) !important;
  background: rgba(255,255,255,.56) !important;
  color: var(--text-dim, var(--dim)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 24px rgba(35,18,72,.05) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.header-btn:hover,
.btn:hover {
  color: var(--accent) !important;
  border-color: rgba(124,58,237,.38) !important;
  background: rgba(255,255,255,.78) !important;
  transform: translateY(-1px);
}

.btn-primary {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 52%, #a855f7 100%) !important;
  box-shadow: 0 16px 38px rgba(124,58,237,.28), inset 0 1px 0 rgba(255,255,255,.32) !important;
}

.main {
  padding-top: clamp(30px, 4vw, 48px) !important;
}

.topline,
.intro {
  margin-bottom: 24px !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 999px;
  background: rgba(124,58,237,.11);
  color: #6d28d9 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68), 0 10px 28px rgba(124,58,237,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.intro h2,
.topline h2 {
  font-size: clamp(32px, 4vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
  max-width: 820px;
}

.intro p,
.topline p {
  color: var(--text-muted, var(--muted)) !important;
  font-size: 16px;
  line-height: 1.7;
}

.quick-status,
.activity,
.tool-card,
.stat,
.toolbar,
.new-task,
.column,
.panel,
.preview,
.filters,
.card,
.modal-card,
.empty {
  background: var(--app-panel) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: var(--radius-lg, 16px) !important;
  box-shadow: var(--app-shadow) !important;
  backdrop-filter: blur(20px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(155%) !important;
}

.tool-card,
.card {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.tool-card:hover,
.card:hover,
.card:focus-visible {
  border-color: var(--app-border-strong) !important;
  box-shadow: var(--app-shadow-hover) !important;
  transform: translateY(-2px);
}

.tool-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,255,255,.38)),
    radial-gradient(circle at 50% 0%, rgba(196,181,253,.18), transparent 16rem) !important;
  border-color: rgba(255,255,255,.58) !important;
  border-radius: 18px !important;
}

.tool-icon,
.avatar,
.modal-avatar {
  background: linear-gradient(135deg, #6d28d9, #a855f7) !important;
  box-shadow: 0 14px 28px rgba(124,58,237,.2), inset 0 1px 0 rgba(255,255,255,.26) !important;
}

.chip,
.tag,
.cert,
.count,
.plan-tag {
  border-radius: 999px !important;
  background: rgba(124,58,237,.11) !important;
  border: 1px solid rgba(124,58,237,.22) !important;
  color: #6d28d9 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
}

.column {
  background: rgba(255,255,255,.66) !important;
}

.task,
.detail-item,
.check-card,
.upload-box,
.contact-item,
.status-bar,
.user-pill {
  background: rgba(255,255,255,.62) !important;
  border-color: rgba(76,29,149,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68) !important;
}

input,
select,
textarea {
  background: rgba(255,255,255,.62) !important;
  border-color: rgba(76,29,149,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124,58,237,.58) !important;
  box-shadow: 0 0 0 4px rgba(124,58,237,.14), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.preview-top,
.banner,
.modal-banner {
  background:
    linear-gradient(135deg, rgba(124,58,237,.18), rgba(168,85,247,.1)),
    radial-gradient(circle at 75% 0%, rgba(196,181,253,.42), transparent 18rem) !important;
}

.modal {
  background: rgba(20,18,36,.46) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 760px) {
  .header {
    height: auto !important;
    min-height: 72px;
    padding: 12px 16px !important;
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-btn {
    flex: 0 0 auto !important;
  }

  .user-pill {
    flex: 1 0 100%;
    max-width: none !important;
  }

  .main {
    padding-inline: 18px !important;
  }

  .intro h2,
  .topline h2 {
    font-size: clamp(30px, 10vw, 38px) !important;
  }
}
