.dashboard-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* TOP CARD */
.top-card {
  background: #fff;
  padding: 18px 22px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid #E3E1E5;
}

.top-left {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #4F075E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat-card {
  background: #fff;
  border-radius: 5px;
  padding: 20px;
  border: 1px solid #E3E1E5;
}

.stat-card h3 {
  font-weight: 700;
  margin: 6px 0;
}

.muted {
  color: #6b7280;
  font-size: 13px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
}

/* RING */
.ring {
  width: 120px;
  height: 120px;
  border: 10px solid #4F075E;
  border-radius: 50%;
  margin: 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* BOTTOM */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 22px;
  margin-top: 26px;
}

.service-card,
.chart-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #E3E1E5;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-top: 14px;
}


.chart-box {
  height: 260px;
  border-radius: 12px;
  margin-top: 12px;
}

.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* SIMPLE TOP RIGHT STATS */
.top-right-simple {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 40px;
  row-gap: 14px;
}

.stat-item {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}

.stat-item span {
  min-width: 140px;
  color: #6b7280;
}

.stat-item strong {
  font-weight: 600;
  color: #111827;
}

.stat-item i {
  font-size: 12px;
  margin-left: 4px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .top-right-simple {
    grid-template-columns: 1fr;
  }

  .stat-item span {
    min-width: auto;
  }
}

.user-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;   /* IMPORTANT */
}


.user-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;  /* LINE */
}

/* BODY */
.user-card-body {
  flex: 1;                  /* FULL HEIGHT LE */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

/* LEFT */
.user-left {
  display: flex;
  align-items: center;   /* vertical center */
  gap: 12px;
}
.user-icon {
  width: 40px;
  height: 40px;
  background: #e9d5ff;
  color: #6d28d9;
  border-radius: 12px; /* rounded corners for square */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}


.user-left h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.user-left p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* RIGHT */
.user-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* top + bottom */
  text-align: right;
  height: 100%;
}

.user-right .stat {
  margin-bottom: 8px;
}

.user-right strong {
  font-size: 18px;
  font-weight: 600;
}

.user-right span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}



/* RESPONSIVE */
@media (max-width: 768px) {
  .user-card-body {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .user-right {
    text-align: left;
  }
}

.user-right .stat:last-child {
  margin-top: auto; 
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.filter-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.filter-btn i {
  font-size: 13px;
  color: #6b7280;
}

.filter-tag {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #374151;
}


.chart-box {
  height: 260px;
  padding: 10px;
  position: relative;
}

.chart-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-count {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
  color: #111827;
}

.chart-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}

.chart-filter-btn i {
  font-size: 13px;
  color: #6b7280;
}

/* User icon smaller */
.user-left .user-icon.user img {
  width: 24px;
  height: 24px;
}

/* Staff icon slightly smaller */
.user-left .user-icon.staff img {
  height: 22px;
}


/* UP arrow */
.user-right .stat.up strong::after {
  content: " ▲";
  color: #16a34a; /* green */
  font-size: 15px;
}

/* DOWN arrow */
.user-right .stat.down strong::after {
  content: " ▼";
  color: #dc2626; /* red */
  font-size: 15px;
}

/* AUTHORITY CARD LAYOUT */
.authority-card {
  display: flex;
  align-items: center;        /* height ke center */
  justify-content: space-between;
  gap: 20px;
}

/* LEFT SIDE TEXT */
.authority-left small {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* RIGHT SIDE RING */
.authority-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* BIGGER RING */
.authority-card .ring {
  width: 140px;
  height: 140px;
  border-width: 12px;
  flex-direction: column;
}

/* COUNT */
.ring-count {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

/* LABEL INSIDE RING */
.ring-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* SERVICE LIST WITH FLAGS */
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.service-list li span {
  flex: 1; /* text left, number right */
}

/* FLAG ICON */
.flag {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.total-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.total-icon {
  height: 14px;
}
