*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f9fafb;
  --border:     #e5e7eb;
  --text:       #ffffff;
  --text-light: #6b7280;
  --white:      #ffffff;
  --yellow:     #f59e0b;
  --radius:     12px;
  --shadow:     0 1px 3px rgba(0,0,0,.08);
}

body {
  font-family: 'Google Sans', system-ui, sans-serif;
  background-image: linear-gradient(135deg, rgb(57, 188, 67) 0%, rgb(56, 160, 79) 20%, rgb(44, 134, 83) 40%, rgb(25, 111, 76) 60%, rgb(10, 90, 62) 80%, rgb(3, 72, 46) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ── */
.pub-header {
  background: transparent;
  color: #fff;
  padding: 0px 24px 0px 24px;
  text-align: center;
}

.pub-header-logo { height: 100px; width: auto; max-width: 100%; object-fit: contain; flex-shrink: 0; }

.pub-refresh-badge {
  background: rgba(255,255,255,.18); border-radius: 20px;
  padding: 5px 11px; font-size: .72rem; color: #fff;
  display: flex; align-items: center; gap: 4px;
}
.pub-refresh-badge .material-icons-outlined { font-size: 14px; }
.btn-login-link {
  background: rgba(255,255,255,.22); color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 20px; padding: 6px 14px;
  font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.btn-login-link:hover { background: rgba(255,255,255,.32); }

/* ── Body wrapper ── */
.pub-body {
  padding: 0px 20px 28px;
}

/* ── Loading ── */
.loading {
  text-align: center; padding: 80px 20px;
  color: var(--text-light); font-size: .95rem;
}

/* ── Stepper ── */
.dash-stepper {
  display: flex; align-items: flex-start;
  border-radius: var(--radius); /*box-shadow: var(--shadow);*/
  padding: 0px 34px; margin-bottom: 16px;
  /*background: var(--white);*/
}
.ds-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; flex: 0 0 auto; min-width: 110px;
}
.ds-ring-wrap {
  position: relative; width: 64px; height: 64px; margin-bottom: 8px; flex-shrink: 0;
}
.ds-ring {
  position: absolute; top: 0; left: 0; width: 64px; height: 64px;
  transform: rotate(-90deg);
}
.ds-ring-bg   { fill: none; stroke: rgba(11, 46, 14, 0.3); stroke-width: 3.5; }
.ds-ring-fill {
  fill: none; stroke: rgb(255, 255, 255, 0); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 169.6;
  transition: stroke-dashoffset .8s ease;
}
.ds-green  .ds-ring-fill { stroke: #fce93c }
.ds-red    .ds-ring-fill { stroke: #ef4444; }
.ds-yellow .ds-ring-fill { stroke: #F0B100; }
.ds-blue   .ds-ring-fill { stroke: #00B8DB; }

.ds-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ds-circle .material-icons-outlined { font-size: 1.8rem; }
.ds-connector { flex: 1; height: 2px; background: rgb(255, 255, 255, 0.4); margin-top: 32px; min-width: 20px; }
.ds-label { font-weight: 600; font-size: 1.1rem; color: var(--text); line-height: 1.3; }
.ds-sub   { font-size: 1rem; color: white; margin-top: 2px; }

.ds-green  .ds-circle { background: #00C951; color: #fff; }
.ds-red    .ds-circle { background: #ef4444; color: #fff; }
.ds-yellow .ds-circle { background: #F0B100; color: #fff; }
.ds-blue   .ds-circle { background: #00B8DB; color: #fff; }
.ds-green  .ds-label  { color: #fce93c; }
.ds-red    .ds-label  { color: #fce93c;}
.ds-yellow .ds-label  { color: #fce93c; }
.ds-blue   .ds-label  { color: #fce93c; }
.ds-green  .ds-connector { background: #00C951; }
.ds-red    .ds-connector { background: red; }
.ds-yellow .ds-connector { background: #F0B100; }
.ds-blue   .ds-connector { background: #00B8DB; }

/* ── Section label ── */
.dash-section-label {
  font-size: 1rem; font-weight: 700; color: #fff;
  margin: 12px 0 8px; padding-left: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* ── Dashboard grid ── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; align-items: stretch;
}
.dash-col { display: flex; flex-direction: column; gap: 16px; }
.dash-col:first-child .stat-card { flex: 1; }
.dash-col-pair { flex-direction: row; }
.dash-col-pair .stat-card { flex: 1; min-width: 0; }

/* ── Stat cards ── */
.stat-card {
  border-radius: var(--radius); padding: 14px 16px 12px;
  color: #111827; min-height: 120px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; border: 1px solid rgba(0,0,0,.08);
}
.stat-card.blue   { background: #dbeafe; border-color: #93c5fd; }
.stat-card.green  { background: #dcfce7; border-color: #86efac; }
.stat-card.red    { background: #fee2e2; border-color: #fecaca; }
.stat-card.yellow { background: #fef3c7; border-color: #fde047; }

.stat-card-title    { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.stat-card-subtitle { font-size: .8rem; font-weight: 700; }
.stat-card-numbers  { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.stat-card-main     { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-card-unit     { font-size: .85rem; font-weight: 600; }
.stat-card-desc     { font-size: .9rem; }
.single-line        { white-space: nowrap; }

.stat-card.blue   .stat-card-desc { color: #00B8DB; }
.stat-card.green  .stat-card-desc { color: #00C951; }
.stat-card.red    .stat-card-desc { color: red; }
.stat-card.yellow .stat-card-desc { color: #F0B100; }

.stat-card .icon-shape {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  color: #fff; padding: 14px; flex-shrink: 0;
}
.stat-card.blue   .icon-shape { background-color: #00B8DB; }
.stat-card.green  .icon-shape { background-color: #00C951; }
.stat-card.red    .icon-shape { background-color: red; }
.stat-card.yellow .icon-shape { background-color: #F0B100; }

.stat-card .double {
  display: flex; justify-content: space-between;
  align-items: stretch; gap: 16px;
}
.stat-card .double > div { width: 100%; }

.progress-bar-wrap { background: rgba(0,0,0,.1); border-radius: 100px; height: 8px; margin-top: 7px; }
.progress-bar-fill { height: 8px; border-radius: 100px; background: var(--yellow); }
.stat-card.red    .progress-bar-fill { background: #ef4444; }
.stat-card.green  .progress-bar-fill { background: #22c55e; }
.stat-card.blue   .progress-bar-fill { background: #3b82f6; }
.stat-card.yellow .progress-bar-fill { background: #eab308; }

/* ── Notification bubble ── */
#dash-notif {
  position: fixed; bottom: 80px; right: 24px; z-index: 8500;
  width: 680px; background: #fff; border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18); border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 28px; padding: 32px;
  overflow: hidden;
  animation: dashNotifIn .35s cubic-bezier(.22,1,.36,1);
}
#dash-notif.notif-exit { animation: dashNotifOut .3s ease forwards; pointer-events: none; }
.notif-icon {
  width: 112px; height: 112px; border-radius: 24px; flex-shrink: 0;
  background: linear-gradient(135deg, #047857, #10b981);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.notif-icon i { font-size: 56px; }
.notif-thumb  { width: 112px; height: 112px; border-radius: 24px; object-fit: cover; flex-shrink: 0; }
.notif-body  { flex: 1; min-width: 0; }
.notif-label { font-size: 1.44rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.notif-text  { font-size: 1.88rem; font-weight: 600; color: black; line-height: 1.35; margin-bottom: 4px; }
.notif-sub   { font-size: 1.56rem; color: var(--text-light); }
.notif-close { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 40px; line-height: 1; padding: 0; flex-shrink: 0; }
.notif-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: #059669; border-radius: 0 0 32px 32px;
  transform-origin: left; animation: dashNotifProgress 10s linear forwards;
}
@keyframes dashNotifIn  { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes dashNotifOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes dashNotifProgress { from { width: 100%; } to { width: 0; } }

/* ── Footer ── */
.pub-footer {
  text-align: center; font-size: .82rem; color: white;
  padding: 10px;
}

.pub-footer a {
  color: white;
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-col-pair { flex-direction: column; }
}
@media (max-width: 540px) {
  .dash-grid { grid-template-columns: 1fr; }
  .pub-body { padding: 0 12px 20px; }
  .stat-card { min-height: 0; }
  .pub-header-logo { height: auto; max-height: 70px; }
  .pub-header h1 { font-size: .95rem; }
  .pub-header p  { display: none; }
  .dash-stepper  { padding: 5px 8px 16px; overflow-x: auto; }
  .ds-step { min-width: 80px; }
  .ds-ring-wrap { width: 52px; height: 52px; }
  .ds-ring { width: 52px; height: 52px; }
  .ds-circle { width: 40px; height: 40px; }
  .ds-circle .material-icons-outlined { font-size: 1.4rem; }
  .ds-label { font-size: .8rem; }
  .ds-sub   { font-size: .72rem; }
}
@media (max-width: 420px) {
  .stat-card .double { flex-direction: column; gap: 8px; }
}
