/* Dashboard colour theme: brighter cards in the main area (right of the green menu).
   Only touches the staff dashboard (.adm2 .adm-main); the public website is not affected.
   Colours are dark enough for white text to stay readable. */

.adm2 .adm-main {
  --g-teal: linear-gradient(135deg, #0F9F84 0%, #0B6E5C 100%);
  --g-blue: linear-gradient(135deg, #0E7490 0%, #1D4ED8 100%);
  --g-purple: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  --g-orange: linear-gradient(135deg, #D9480F 0%, #B45309 100%);
  --g-green: linear-gradient(135deg, #047857 0%, #065F46 100%);
  --g-red: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  --g-strip: linear-gradient(90deg, #0F9F84, #1D4ED8 50%, #7C3AED);
  background:
    radial-gradient(900px 300px at 100% 0, rgba(124, 58, 237, .06), transparent 70%),
    radial-gradient(700px 260px at 0 0, rgba(15, 159, 132, .07), transparent 70%);
}

/* ---------- status tiles on the home screen (Awaiting, Confirmed, Arrived, Completed, Cancelled) ---------- */
.adm2 .adm-main .stat {
  --tile-bg: var(--g-teal);
  background: var(--tile-bg);
  border: 0;
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(15, 30, 60, .55);
  overflow: hidden;
  isolation: isolate;
}
.adm2 .adm-main .stat-warn { --tile-bg: var(--g-orange); }
.adm2 .adm-main .stat-info { --tile-bg: var(--g-blue); }
.adm2 .adm-main .stat-go { --tile-bg: var(--g-purple); }
.adm2 .adm-main .stat-ok { --tile-bg: var(--g-green); }
.adm2 .adm-main .stat-bad { --tile-bg: var(--g-red); }
.adm2 .adm-main .stat b { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.adm2 .adm-main .stat span { color: rgba(255, 255, 255, .92); }
.adm2 .adm-main .stat .stat-ic { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
/* soft light circles for depth */
.adm2 .adm-main .stat::after { background: radial-gradient(circle, rgba(255, 255, 255, .22) 0, transparent 70%); z-index: -1; }
.adm2 .adm-main .stat::before { content: ""; position: absolute; left: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .07); z-index: -1; pointer-events: none; }
.adm2 .adm-main .stat:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -16px rgba(15, 30, 60, .6); }
.adm2 .adm-main .stat.is-on, .adm2 .adm-main .stat[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(15, 30, 60, .25), 0 18px 32px -16px rgba(15, 30, 60, .6); }
.adm2 .adm-main .stat:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* ---------- panels: colour strip on top and a coloured dot before the title ---------- */
.adm2 .adm-main .panel,
.adm2 .adm-main .wc-panel {
  background: var(--g-strip) top / 100% 4px no-repeat, var(--surface);
  border-color: #E3E9F1;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -22px rgba(15, 30, 60, .35);
}
.adm2 .adm-main .panel > .h-sm:first-child::before,
.adm2 .adm-main .wc-panel > h2:first-child::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, #0F9F84, #7C3AED);
  box-shadow: 0 0 0 4px rgba(15, 159, 132, .12);
}
.adm2 .adm-main .wc-panel > h2:first-child { display: flex; align-items: center; gap: 10px; }
/* the two side panels on the home screen get their own colours */
.adm2 .adm-main .ov-side .panel:nth-child(1) { background: linear-gradient(90deg, #D9480F, #F59E0B) top / 100% 4px no-repeat, var(--surface); }
.adm2 .adm-main .ov-side .panel:nth-child(1) > .h-sm:first-child::before { background: linear-gradient(135deg, #D9480F, #F59E0B); box-shadow: 0 0 0 4px rgba(217, 72, 15, .12); }
.adm2 .adm-main .ov-side .panel:nth-child(2) { background: linear-gradient(90deg, #7C3AED, #1D4ED8) top / 100% 4px no-repeat, var(--surface); }
.adm2 .adm-main .ov-side .panel:nth-child(2) > .h-sm:first-child::before { background: linear-gradient(135deg, #7C3AED, #1D4ED8); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
/* bookings-by-service bars in colour */
.adm2 .adm-main .bars i, .adm2 .adm-main .bars em { background: linear-gradient(90deg, #0F9F84, #1D4ED8) !important; }

/* ---------- number tiles on other pages (Staff, Careers, Camps, Content) ---------- */
.adm2 .adm-main .staff-tile,
.adm2 .adm-main .camp-stats li,
.adm2 .adm-main .ca-stat {
  position: relative; overflow: hidden; isolation: isolate;
  border: 0; color: #fff; background: var(--g-teal);
  box-shadow: 0 10px 24px -14px rgba(15, 30, 60, .55);
}
.adm2 .adm-main .staff-tile:nth-child(4n+2), .adm2 .adm-main .camp-stats li:nth-child(4n+2), .adm2 .adm-main .ca-stat:nth-child(4n+2) { background: var(--g-blue); }
.adm2 .adm-main .staff-tile:nth-child(4n+3), .adm2 .adm-main .camp-stats li:nth-child(4n+3), .adm2 .adm-main .ca-stat:nth-child(4n+3) { background: var(--g-purple); }
.adm2 .adm-main .staff-tile:nth-child(4n+4), .adm2 .adm-main .camp-stats li:nth-child(4n+4), .adm2 .adm-main .ca-stat:nth-child(4n+4) { background: var(--g-orange); }
.adm2 .adm-main .staff-tile::after, .adm2 .adm-main .camp-stats li::after, .adm2 .adm-main .ca-stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 0, transparent 70%); z-index: -1; pointer-events: none;
}
.adm2 .adm-main .staff-tile strong, .adm2 .adm-main .camp-stats li strong, .adm2 .adm-main .camp-stats li b,
.adm2 .adm-main .ca-stat strong { color: #fff; }
.adm2 .adm-main .staff-tile span, .adm2 .adm-main .camp-stats li span, .adm2 .adm-main .camp-stats li small,
.adm2 .adm-main .ca-stat small { color: rgba(255, 255, 255, .9); }
.adm2 .adm-main .camp-stats li .ic, .adm2 .adm-main .ca-stat .ca-stat-ic { background: rgba(255, 255, 255, .2) !important; color: #fff !important; }
.adm2 .adm-main .ca-stat:hover { transform: translateY(-2px); }
.adm2 .adm-main .ca-stat[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(15, 30, 60, .25); }

/* ---------- small touches ---------- */
.adm2 .adm-main .dash-head h1 { background: linear-gradient(90deg, #0B6E5C, #1D4ED8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adm2 .adm-main .link-more { font-weight: 700; }
.adm2 .adm-main .empty { color: #64748B; }

@media (prefers-reduced-motion: reduce) {
  .adm2 .adm-main .stat:hover, .adm2 .adm-main .ca-stat:hover { transform: none; }
}
