/* =====================================================
   Dashboard-specific blocks: KPIs, lists, calendars
   ===================================================== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.kpi-card {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border-radius: 5px;
  color: #fff;
  padding: 20px 18px;
}

.kpi-card::before,
.kpi-card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.kpi-card::before {
  right: -16px;
  top: -34px;
  width: 88px;
  height: 88px;
}

.kpi-card::after {
  right: 10px;
  top: -15px;
  width: 52px;
  height: 52px;
}

.kpi-card h3 {
  position: relative;
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 850;
}

.kpi-card strong {
  position: relative;
  display: block;
  font-size: 19px;
  font-weight: 850;
}

.kpi-purple {
  background: linear-gradient(135deg, var(--purple-2), var(--purple));
}

.kpi-orange {
  background: linear-gradient(135deg, #863808, var(--orange));
}

.kpi-green {
  background: linear-gradient(135deg, #0a4721, #094b27);
}

.kpi-cyan {
  background: linear-gradient(135deg, #10b7d5, #10aac9);
}

.kpi-red {
  background: linear-gradient(135deg, #fcfc67, #f4eda1b5);
}

.metric-card {
  min-height: 122px;
  padding: 18px;
}

.metric-card .metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
}

.metric-card strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 25px;
  font-weight: 800;
}

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(107, 59, 242, 0.16);
  color: var(--purple);
}

.users-total {
  position: absolute;
  right: 22px;
  top: 18px;
  color: var(--purple);
  font-size: 34px;
  font-weight: 900;
}

.mini-country-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  color: var(--muted);
}

.mini-country-table th,
.mini-country-table td {
  border: 1px solid var(--border);
  padding: 8px 14px;
}

.mini-country-table th {
  color: var(--text);
  font-weight: 850;
}

.mini-country-table td:last-child,
.mini-country-table th:last-child {
  text-align: right;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.product-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.product-thumb {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #8ae8f6, #6533f1);
  color: #fff;
}

.product-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.product-item p,
.product-item span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 28px;
  min-height: 250px;
  padding: 18px 24px 0;
}

.podium-card {
  position: relative;
  min-height: 168px;
  border-radius: 5px;
  background: rgba(72, 63, 156, 0.32);
  padding: 58px 22px 22px;
  text-align: center;
}

.podium-card.winner {
  min-height: 205px;
  background: rgba(34, 90, 75, 0.45);
}

.podium-avatar {
  position: absolute;
  left: 50%;
  top: -35px;
  transform: translateX(-50%);
  border: 4px solid #ffd000;
}

.rank-badge {
  position: absolute;
  right: -4px;
  bottom: 2px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ffd000;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.podium-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 850;
}

.score-pill {
  display: inline-flex;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 850;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.score-row .progress-track {
  grid-column: 1 / -1;
  height: 7px;
}

.welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  min-height: 188px;
  background: linear-gradient(135deg, #7138fb, #6332eb);
  color: #fff;
  padding: 26px;
}

.welcome-card h2 {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.12;
}

.task-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 120px));
  gap: 14px;
}

.task-mini {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  padding: 14px;
}

.task-mini span {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.task-mini strong {
  display: block;
  font-size: 18px;
  font-weight: 850;
}

.person-illustration {
  width: 132px;
  height: 132px;
  justify-self: end;
  border-radius: 35% 42% 40% 38%;
  background:
    radial-gradient(circle at 51% 24%, #ffd6a4 0 15%, transparent 16%),
    radial-gradient(circle at 50% 56%, #3c2532 0 26%, transparent 27%),
    radial-gradient(circle at 50% 83%, #9e8d7b 0 24%, transparent 25%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.stat-card {
  display: grid;
  min-height: 188px;
  place-items: center;
  text-align: center;
}

.stat-card i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: rgba(107, 59, 242, 0.14);
  color: var(--purple);
  font-size: 20px;
}

.stat-card h3 {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
}

.stat-card strong {
  display: block;
  color: var(--purple);
  font-size: 33px;
  font-weight: 900;
}

.stat-card.green strong,
.stat-card.green i {
  color: var(--green);
}

.stat-card.red strong,
.stat-card.red i {
  color: var(--red);
}

.stat-card.cyan strong,
.stat-card.cyan i {
  color: var(--cyan);
}

.small-calendar {
  border-radius: 7px;
  background: #0f1728;
  padding: 18px;
}

.small-calendar-header,
.small-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  text-align: center;
}

.small-calendar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 850;
}

.small-calendar-header {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.small-calendar-grid span {
  color: var(--text);
  font-weight: 750;
}

.small-calendar-grid .dim {
  color: #55647a;
}

.note-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.note-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-left: 3px solid var(--border);
  padding-left: 12px;
}

.note-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.note-item h3 {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 850;
}

.note-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.gantt {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 22px 18px 10px;
}

.gantt-labels,
.gantt-bars {
  display: grid;
  gap: 24px;
}

.gantt-labels span {
  display: flex;
  height: 36px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.gantt-bars {
  position: relative;
}

.gantt-bars::before {
  position: absolute;
  inset: 18px 0 18px;
  background-image: linear-gradient(to bottom, transparent 0 35px, rgba(132, 151, 176, 0.14) 35px 36px);
  background-size: 100% 60px;
  content: "";
}

.gantt-bar {
  position: relative;
  z-index: 1;
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.gantt-bar.blue {
  background: var(--blue);
}

.gantt-dates {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.activity-feed {
  position: relative;
  display: grid;
  gap: 26px;
  margin: 18px 0 0 8px;
  padding-left: 24px;
}

.activity-feed::before {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  content: "";
}

.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.activity-item::before {
  position: absolute;
  left: -24px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--purple);
  content: "";
}

.activity-item.cyan::before {
  background: var(--cyan);
}

.activity-item h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
}

.activity-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.activity-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.activity-gallery {
  display: grid;
  max-width: 270px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.activity-gallery span {
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(135deg, #ffd32d, #19bee0);
}

.contributor-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contributor-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 100px minmax(160px, 0.65fr);
  align-items: center;
  gap: 20px;
}

.calendar-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, 0.75fr);
}

.project-top-grid {
  grid-template-columns: minmax(380px, 2fr) repeat(4, minmax(190px, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.mini-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fc {
  color: var(--muted);
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
  border-color: var(--border);
}

.fc .fc-toolbar-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
}

.fc .fc-button-primary {
  border-color: var(--border);
  background: var(--surface-3);
  box-shadow: none;
  text-transform: capitalize;
}

.fc .fc-button-primary:not(:disabled):hover,
.fc .fc-button-primary:not(:disabled).fc-button-active {
  border-color: var(--purple);
  background: var(--purple);
}

.fc .fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
  color: var(--muted);
}

.fc .fc-day-today {
  background: rgba(107, 59, 242, 0.12) !important;
}

.fc-event {
  border: 0;
  border-radius: 4px;
  background: var(--purple);
  padding: 2px 4px;
  font-weight: 750;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  border-left: 3px solid var(--purple);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.event-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.event-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
