/* =========================
   Event Manager Pro – Smart Dashboard (Admin)
   Loads ONLY on admin.php?page=event-manager
   Visual refactor only: no business logic.
========================= */

.emp-smartdash{
  --emp-bg:#f4f5ff;
  --emp-card:#ffffff;
  --emp-border:rgba(96,100,140,.14);
  --emp-shadow:0 26px 70px rgba(34,42,93,.14);
  --emp-shadow-sm:0 14px 34px rgba(34,42,93,.10);
  --emp-text:#131a32;
  --emp-muted:#66708a;
  --emp-primary:#6D5DF6;
  --emp-primary-2:#A78BFA;
  --emp-primary-dark:#4F46E5;
  --emp-success:#22C55E;
  --emp-warning:#F59E0B;
  --emp-danger:#EF4444;
  color:var(--emp-text);
  background:
    radial-gradient(1200px 800px at 22% 10%, rgba(167,139,250,.20), transparent 60%),
    radial-gradient(900px 700px at 80% 22%, rgba(109,93,246,.18), transparent 58%),
    linear-gradient(180deg,#f8f9ff 0%,#f2f4ff 55%,#f4f5fb 100%);
}
.emp-smartdash *{box-sizing:border-box}
.emp-smartdash .emp-shell{max-width:1280px;margin:0 auto;padding:22px}

/* Top hero */
.emp-smartdash .emp-hero{
  position:relative;overflow:hidden;border-radius:32px;padding:30px;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18), transparent 38%),
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.14), transparent 42%),
    linear-gradient(135deg,rgba(41,47,128,.98),rgba(79,70,229,.92) 46%,rgba(167,139,250,.90));
  box-shadow:var(--emp-shadow);
  color:#fff;
}
.emp-smartdash .emp-hero::before,
.emp-smartdash .emp-hero::after{content:"";position:absolute;pointer-events:none}
.emp-smartdash .emp-hero::before{
  inset:-1px;
  background:
    radial-gradient(circle at 40% 30%, rgba(255,255,255,.14), transparent 45%),
    radial-gradient(circle at 72% 62%, rgba(255,255,255,.10), transparent 38%);
  opacity:.9;
}
.emp-smartdash .emp-hero::after{
  width:520px;height:520px;right:-220px;top:-240px;border-radius:999px;
  background:radial-gradient(circle,rgba(255,255,255,.22),rgba(255,255,255,0) 60%);
}
.emp-smartdash .emp-hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:22px;align-items:stretch;
}
.emp-smartdash .emp-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:999px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(14px);
  font-size:13px;font-weight:800;margin-bottom:16px;
}
.emp-smartdash .emp-hero h1{
  margin:0;
  font-size:clamp(28px,3.6vw,44px);
  line-height:1.03;
  font-weight:900;
  letter-spacing:-.03em;
}
.emp-smartdash .emp-hero p{
  margin:14px 0 0;
  color:rgba(255,255,255,.88);
  font-size:15px;
  max-width:720px;
  line-height:1.6;
}
.emp-smartdash .emp-hero-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.emp-smartdash .emp-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 12px;border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  font-weight:700;font-size:13px;
}
.emp-smartdash .emp-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.emp-smartdash .emp-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  min-height:42px;
  transition:.22s ease;
}
.emp-smartdash .emp-btn:hover{transform:translateY(-1px)}
.emp-smartdash .emp-btn-primary{
  background:#fff;color:#27327a;
  box-shadow:0 10px 22px rgba(15,23,42,.10);
}
.emp-smartdash .emp-btn-ghost{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18);
  color:#fff;
}
.emp-smartdash .emp-btn-ghost:hover{background:rgba(255,255,255,.18)}

/* Hero buttons: force white text to avoid dark labels */
.emp-smartdash .emp-hero .emp-btn-primary,
.emp-smartdash .emp-hero .emp-btn-ghost{
  color:#fff !important;
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.14);
}
.emp-smartdash .emp-hero .emp-btn-primary:hover,
.emp-smartdash .emp-hero .emp-btn-ghost:hover{
  background:rgba(255,255,255,.22);
}

/* Executive summary panel */
.emp-smartdash .emp-statpanel{
  padding:18px;border-radius:26px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(14px);
}
.emp-smartdash .emp-statpanel h3{margin:0 0 12px;font-size:18px;font-weight:900}
.emp-smartdash .emp-statgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.emp-smartdash .emp-statcard{
  padding:14px;border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
}
.emp-smartdash .emp-statlabel{font-size:11px;text-transform:uppercase;letter-spacing:.10em;color:rgba(255,255,255,.78);font-weight:900}
.emp-smartdash .emp-statvalue{margin-top:8px;font-size:28px;font-weight:900;line-height:1}
.emp-smartdash .emp-statmeta{margin-top:8px;font-size:13px;color:rgba(255,255,255,.80);font-weight:700}

/* KPI row */
.emp-smartdash .emp-mainkpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}
.emp-smartdash .emp-mainkpi{
  padding:18px;border-radius:22px;
  background:rgba(255,255,255,.80);
  border:1px solid rgba(96,100,140,.16);
  backdrop-filter:blur(10px);
  box-shadow:var(--emp-shadow-sm);
}
.emp-smartdash .emp-mainkpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.emp-smartdash .emp-mainkpi-label{font-size:12px;color:var(--emp-muted);font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.emp-smartdash .emp-mainkpi-ic{
  width:46px;height:46px;border-radius:16px;display:grid;place-items:center;
  font-size:20px;
  background:linear-gradient(135deg,rgba(109,93,246,.14),rgba(167,139,250,.22));
}
.emp-smartdash .emp-mainkpi-value{margin-top:12px;font-size:28px;letter-spacing:-.03em;font-weight:950}
.emp-smartdash .emp-mainkpi-meta{margin-top:8px;color:var(--emp-muted);font-size:13px;font-weight:700}

/* Main actions */
.emp-smartdash .emp-actions-section{margin-top:18px}
.emp-smartdash .emp-actions-title{
  margin:0 0 12px;
  font-size:24px;
  font-weight:950;
  letter-spacing:-.02em;
  color:#1f2a4f;
}
.emp-smartdash .emp-actions-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.emp-smartdash .emp-action-card{
  background:rgba(255,255,255,.84);
  border:1px solid rgba(96,100,140,.10);
  border-radius:22px;
  box-shadow:var(--emp-shadow-sm);
  padding:18px;
  display:grid;
  gap:8px;
}
.emp-smartdash .emp-action-ic{font-size:24px;line-height:1}
.emp-smartdash .emp-action-card h4{margin:0;font-size:30px;font-weight:900;line-height:1.1}
.emp-smartdash .emp-action-card p{margin:0;color:var(--emp-muted);font-size:14px}
.emp-smartdash .emp-action-card a{
  color:#5b56c9;
  text-decoration:none;
  font-weight:800;
  font-size:14px;
}
.emp-smartdash .emp-action-card a:hover{text-decoration:underline}

/* Main grid */
.emp-smartdash .emp-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);gap:18px;margin-top:18px}
.emp-smartdash .emp-card{
  background:var(--emp-card);
  border:1px solid var(--emp-border);
  border-radius:26px;
  box-shadow:var(--emp-shadow-sm);
}
.emp-smartdash .emp-card-head{padding:22px 22px 14px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.emp-smartdash .emp-card-head h3{margin:0;font-size:20px;letter-spacing:-.02em;font-weight:950}
.emp-smartdash .emp-card-sub{color:var(--emp-muted);font-size:14px;margin-top:6px;line-height:1.5}
.emp-smartdash .emp-card-body{padding:0 22px 22px}

/* Business overview inner cards */
.emp-smartdash .emp-performance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.emp-smartdash .emp-meter{
  padding:18px;border-radius:22px;
  background:#f8f9ff;border:1px solid rgba(96,100,140,.08);
}
.emp-smartdash .emp-meter-title{font-size:14px;font-weight:900}
.emp-smartdash .emp-meter-value{font-size:22px;font-weight:950}
.emp-smartdash .emp-progress{height:10px;background:#e9edff;border-radius:999px;overflow:hidden;margin-top:14px}
.emp-smartdash .emp-progress>span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--emp-primary-dark),var(--emp-primary-2))}
.emp-smartdash .emp-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.emp-smartdash .emp-mini-stat{padding:12px;border-radius:16px;background:#ffffff;border:1px solid rgba(96,100,140,.08)}
.emp-smartdash .emp-mini-stat strong{display:block;font-size:18px;font-weight:950}
.emp-smartdash .emp-mini-stat span{display:block;margin-top:4px;color:var(--emp-muted);font-size:12px;font-weight:800}

/* Events list */
.emp-smartdash .emp-eventslist{display:grid;gap:14px}
.emp-smartdash .emp-eventrow{
  display:grid;grid-template-columns:92px minmax(0,1fr) auto;
  gap:16px;padding:14px;border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfbff 100%);
  border:1px solid rgba(96,100,140,.10);
}
.emp-smartdash .emp-cover{width:92px;height:92px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#eef0ff,#dfe3ff)}
.emp-smartdash .emp-cover img{width:100%;height:100%;object-fit:cover;display:block}
.emp-smartdash .emp-cover-fallback{width:100%;height:100%;display:grid;place-items:center;font-size:26px;color:#4b53b1}
.emp-smartdash .emp-event-title{font-size:18px;font-weight:950;margin:0 0 6px}
.emp-smartdash .emp-meta{display:flex;flex-wrap:wrap;gap:8px 12px;color:var(--emp-muted);font-size:13px;font-weight:700}
.emp-smartdash .emp-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:950;white-space:nowrap}
.emp-smartdash .emp-badge-live{background:rgba(34,197,94,.16);color:#047857}
.emp-smartdash .emp-badge-upcoming{background:rgba(109,93,246,.14);color:#4338ca}
.emp-smartdash .emp-badge-past{background:rgba(107,114,128,.12);color:#475569}
.emp-smartdash .emp-badge-draft{background:rgba(245,158,11,.18);color:#b45309}

/* Sidebar */
.emp-smartdash .emp-actionside{display:grid;gap:14px}
.emp-smartdash .emp-sidegrid{display:grid;gap:12px}
.emp-smartdash .emp-linkcard{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 14px;
  border-radius:22px;
  border:1px solid rgba(96,100,140,.10);
  background:linear-gradient(180deg,#ffffff 0%,#fbfbff 100%);
  color:#243056;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.emp-smartdash .emp-linkcard:hover{
  transform:translateY(-1px);
  box-shadow:var(--emp-shadow-sm);
  border-color:rgba(109,93,246,.22);
  text-decoration:none;
  color:#243056;
}
.emp-smartdash .emp-linkcard-ic{
  width:44px;height:44px;
  border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(109,93,246,.14),rgba(167,139,250,.22));
  color:#2a2f7a;
  flex:0 0 auto;
  font-size:20px;
}
.emp-smartdash .emp-linkcard strong{display:block;font-weight:950;font-size:14px;line-height:1.1}
.emp-smartdash .emp-linkcard small{display:block;margin-top:4px;color:var(--emp-muted);font-weight:800;font-size:12px;line-height:1.25}
.emp-smartdash .emp-shortcuts-title{margin:18px 2px 10px;font-size:12px;font-weight:950;letter-spacing:.10em;text-transform:uppercase;color:#7b84a1}
.emp-smartdash .emp-shortcuts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.emp-smartdash .emp-mini-link{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;border-radius:18px;
  text-decoration:none;color:#243056;
  background:#f8f9ff;border:1px solid rgba(96,100,140,.10);
  font-weight:900;min-height:52px;
}
.emp-smartdash .emp-mini-link:hover{transform:translateY(-1px);box-shadow:var(--emp-shadow-sm);text-decoration:none}
.emp-smartdash .emp-mini-link span{display:block;line-height:1.2}

/* Bottom config (Figma-style) */
.emp-smartdash .emp-config-section{display:grid;gap:16px;margin-top:18px}
.emp-smartdash .emp-quickcheck-card{
  border-radius:26px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(135deg,rgba(41,47,128,.96),rgba(79,70,229,.92) 46%,rgba(167,139,250,.88));
  box-shadow:var(--emp-shadow-sm);
  color:#fff;
}
.emp-smartdash .emp-quickcheck-body{padding:24px;display:grid;gap:10px}
.emp-smartdash .emp-quickcheck-kicker{font-size:14px;font-weight:900;opacity:.95}
.emp-smartdash .emp-quickcheck-card h3{margin:0;font-size:22px;font-weight:900;letter-spacing:-.02em}
.emp-smartdash .emp-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width: 782px){
  .emp-smartdash .emp-config-grid{grid-template-columns:1fr}
}

/* Responsive */
@media (max-width: 1080px){
  .emp-smartdash .emp-hero-grid,.emp-smartdash .emp-layout{grid-template-columns:1fr}
  .emp-smartdash .emp-mainkpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emp-smartdash .emp-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 782px){
  .emp-smartdash .emp-shell{padding:14px}
  .emp-smartdash .emp-hero{padding:20px;border-radius:26px}
  .emp-smartdash .emp-mainkpis{grid-template-columns:1fr 1fr;gap:12px}
  .emp-smartdash .emp-actions-grid{grid-template-columns:1fr}
  .emp-smartdash .emp-performance,.emp-smartdash .emp-statgrid,.emp-smartdash .emp-mini-stats{grid-template-columns:1fr}
  .emp-smartdash .emp-eventrow{grid-template-columns:1fr}
  .emp-smartdash .emp-cover{width:100%;height:156px}
}

/* Softer typography: remove heavy weights across dashboard */
.emp-smartdash h1,
.emp-smartdash h2,
.emp-smartdash h3,
.emp-smartdash h4,
.emp-smartdash h5,
.emp-smartdash strong,
.emp-smartdash .emp-btn,
.emp-smartdash .emp-kicker,
.emp-smartdash .emp-chip,
.emp-smartdash .emp-mainkpi-label,
.emp-smartdash .emp-mainkpi-value,
.emp-smartdash .emp-mainkpi-meta,
.emp-smartdash .emp-action-card a,
.emp-smartdash .emp-action-card p,
.emp-smartdash .emp-mini-link,
.emp-smartdash .emp-statlabel,
.emp-smartdash .emp-statvalue,
.emp-smartdash .emp-statmeta {
  font-weight: 400 !important;
}

/* =========================
   Reports page
========================= */
.emp-reports .emp-backlink{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:16px;color:var(--emp-muted);text-decoration:none;font-weight:700;font-size:14px
}
.emp-reports .emp-backlink:hover{color:var(--emp-primary)}
.emp-reports .emp-reports-hero{margin-bottom:4px}
.emp-reports .emp-reports-kpis{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:18px
}
.emp-reports .emp-reports-section-title{
  margin:24px 0 12px;font-size:20px;font-weight:900;color:#1f2a4f;letter-spacing:-.02em
}
.emp-reports .emp-reports-insights-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:12px
}
.emp-reports .emp-insight-card{
  padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,rgba(109,93,246,.08),rgba(167,139,250,.06));
  border:1px solid rgba(109,93,246,.16)
}
.emp-reports .emp-insight-text{font-size:14px;color:#1f2a4f;line-height:1.5;font-weight:600}
.emp-reports .emp-reports-charts{margin-top:24px}
.emp-reports .emp-reports-charts-grid{
  display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:start
}
.emp-reports .emp-chart-card{
  padding:0;overflow:hidden
}
.emp-reports .emp-chart-card-wide{grid-column:1/-1}
.emp-reports .emp-chart-wrap{padding:20px 22px;min-height:200px;position:relative}
.emp-reports .emp-chart-wrap-sm{min-height:180px}
.emp-reports .emp-chart-wrap-pie{display:flex;align-items:center;justify-content:center;padding:16px}
.emp-reports .emp-chart-wrap canvas{max-height:260px}
.emp-reports .emp-reports-extra{margin-top:18px}
.emp-reports .emp-stat-highlight{
  padding:20px 24px;border-radius:22px;
  background:linear-gradient(135deg,rgba(109,93,246,.12),rgba(167,139,250,.08));
  border:1px solid rgba(109,93,246,.18)
}
.emp-reports .emp-stat-highlight-inner{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.emp-reports .emp-stat-highlight-label{font-size:14px;font-weight:800;color:var(--emp-muted)}
.emp-reports .emp-stat-highlight-value{font-size:22px;font-weight:950;color:#1f2a4f}
.emp-reports .emp-stat-highlight-meta{font-size:13px;color:var(--emp-muted);font-weight:700}
@media (max-width:1080px){
  .emp-reports .emp-reports-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .emp-reports .emp-reports-charts-grid{grid-template-columns:1fr}
}
@media (max-width:782px){
  .emp-reports .emp-reports-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .emp-reports .emp-reports-insights-grid{grid-template-columns:1fr}
}

