/* ============================================================
   Fundraise Tap — Admin (full-page Laravel build)
   Loaded after hifi.css + hifi-admin.css. Turns the fixed
   1440x900 prototype frame into a responsive full-page shell
   and adds the STATIC page badge.
   ============================================================ */

html, body { height: 100%; }
body { background: var(--surface); }

/* full-page shell: override the fixed prototype frame */
.admin {
  width: 100%;
  height: 100vh;
  flex: none;
  border: 0;
  border-radius: 0;
}

/* centered auth / wizard screens */
.admin.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}
.admin.auth.top { align-items: flex-start; overflow-y: auto; }

/* STATIC marker badge — flags pages that are not wired to data yet */
.badge.b-static {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: transparent;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--mono);
  font-size: 10px;
}

/* normalise <select> to match the design system (custom chevron, no native arrow) */
select.filter,
select.input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c6877' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
select.filter { line-height: 1.2; }
select.filter:hover { border-color: var(--primary); }
select.filter:focus,
select.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* saved billing card visual */
.pay-card {
  width: 300px;
  border-radius: 14px;
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, var(--primary), #0e2e4f);
  color: #fff;
  box-shadow: var(--el-pop);
  position: relative;
  overflow: hidden;
}
.pay-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.pay-card .pc-top { display: flex; align-items: center; justify-content: space-between; }
.pay-card .pc-chip { width: 32px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #e7c873, #c9a13b); }
.pay-card .pc-brand { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.pay-card .pc-num { font-family: var(--mono); font-size: 17px; letter-spacing: 2px; margin: 22px 0 14px; }
.pay-card .pc-meta { display: flex; justify-content: space-between; font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.pay-card .pc-meta b { font-weight: 600; font-size: 13px; letter-spacing: .5px; }

/* button loading spinner (shown on form submit) */
.btn-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}

/* full-page submit veil for slow actions (e.g. charity create → Stripe) */
.page-loading {
  position: fixed;
  inset: 0;
  background: rgba(247, 248, 250, .72);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 2000;
}
.page-loading.on { display: flex; }
.page-loading .spin { width: 48px; height: 48px; }
.page-loading .msg { font-size: 14px; color: var(--text-muted); font-weight: 600; }

/* plan picker pills (Add-Charity wizard) */
.plan-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-radio:checked + .plan-label { background: var(--primary); color: #fff; border-color: var(--primary); }
.plan-radio:focus-visible + .plan-label { box-shadow: 0 0 0 3px var(--primary-soft); }

/* wizard stepper */
.stepper { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.stepper .st { display: flex; align-items: center; gap: 8px; }
.stepper .st .num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--text-subtle); }
.stepper .st.on .num, .stepper .st.done .num { background: var(--primary); color: #fff; }
.stepper .st .lbl { font-size: 14px; color: var(--text-subtle); }
.stepper .st.on .lbl { color: var(--text); font-weight: 600; }
.stepper .sep { width: 40px; height: 1px; background: var(--border); margin: 0 6px; }

/* flash notifications */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.flash .flash-k {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
  opacity: .85;
}
.flash .flash-msg { flex: 1; }
.flash .flash-x {
  flex: none;
  background: none;
  border: 0;
  color: inherit;
  opacity: .55;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  line-height: 1;
}
.flash .flash-x:hover { opacity: 1; }
.flash-success { background: var(--success-soft); border-color: #bfe3cd; color: #15703f; }
.flash-error   { background: var(--error-soft);   border-color: #e9b8b8; color: var(--error); }
.flash-info    { background: var(--info-soft);    border-color: #cfe0f1; color: #1f4a78; }
.flash-warning { background: var(--warning-soft); border-color: #ecd9a6; color: #8a6312; }

/* chart bar hover tooltip */
.chart-bars .bar { cursor: pointer; outline: none; }
.chart-bars .bar:hover, .chart-bars .bar:focus-visible { filter: brightness(1.08); }
.chart-bars .bar .bar-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  text-align: center;
  box-shadow: var(--el-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s, transform .12s;
  z-index: 5;
}
.chart-bars .bar .bar-tip span { display: block; opacity: .8; font-size: 11px; }
.chart-bars .bar .bar-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary);
}
.chart-bars .bar:hover .bar-tip,
.chart-bars .bar:focus-visible .bar-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* a thin banner used at the top of each page body */
.static-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warning-soft);
  border: 1px dashed var(--warning);
  color: #8a6312;
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 12px;
  margin-bottom: 22px;
}
.static-banner .badge { flex: none; }
