/* Custom styles for SMART KINERJA Dashboard */
.radial-progress {
  --value: 0;
  --size: 4rem;
  --thickness: 0.5rem;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, white 79%, transparent 80% 100%),
    conic-gradient(#0a68ff calc(var(--value) * 1%), #e9ecef 0);
}
.dark .radial-progress {
  background: radial-gradient(closest-side, #1e1e1e 79%, transparent 80% 100%),
    conic-gradient(#0a68ff calc(var(--value) * 1%), #4a4a4a 0);
}

/* KPI Gauge Card Styles */
.kpi-card {
  background-color: #ffffff;
  border: 1px solid #f1f3f5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 5px 15px rgba(99, 115, 129, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 20px rgba(99, 115, 129, 0.15);
}

.dark .kpi-card {
  background-color: #1e1e1e;
  border-color: #4a4a4a;
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.text-content .title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: #212b36;
  margin: 0;
}

.dark .text-content .title {
  color: #e0e0e0;
}

.text-content .metric {
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  color: #ffab00;
  margin: 0;
}

.text-content .subtitle {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #637381;
  margin: 0;
}

.dark .text-content .subtitle {
  color: #a0aec0;
}

.chart-container {
  position: relative;
  width: 90px;
  height: 60px;
  margin-left: 16px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-track {
  stroke: #f4f6f8;
  stroke-width: 12px;
  stroke-linecap: round;
  fill: none;
}

.dark .chart-track {
  stroke: #4a4a4a;
}
.collapse{
  visibility: visible !important;
}
.chart-progress-fill {
  stroke: #0a68ff;
  stroke-width: 12px;
  stroke-linecap: round;
  fill: none;
  transition: stroke-dashoffset 1.2s ease-out;
}

.percentage-label {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: #637381;
  white-space: nowrap;
}

.dark .percentage-label {
  color: #a0aec0;
}

/* Count up animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric.animate {
  animation: countUp 1.2s ease-out;
}

/* Score Card - Penilaian SKM OPD */
.score-card {
  background-color: #2979ff;
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: filter 0.2s ease-in-out;
  cursor: pointer;
}

.score-card:hover {
  filter: brightness(1.1);
}

.score-card .score-title {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.score-card .score-value {
  font-family: "Inter", sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -2px;
}

.score-card .star-rating {
  display: flex;
  gap: 8px;
  align-items: center;
}

.score-card .star {
  width: 28px;
  height: 28px;
  fill: #ffc107;
}

.score-card .star.half {
  fill: url(#halfGradient);
}

.score-card .score-summary {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.score-card .summary-label {
  font-weight: 600;
}

/* Score Card Animations */
@keyframes scoreCountUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.score-card .score-value.animate {
  animation: scoreCountUp 1.5s ease-out;
}

@keyframes starFill {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.score-card .star {
  opacity: 0;
  transform: scale(0);
  animation: starFill 0.5s ease-out forwards;
}

.score-card .star:nth-child(1) {
  animation-delay: 0.1s;
}
.score-card .star:nth-child(2) {
  animation-delay: 0.2s;
}
.score-card .star:nth-child(3) {
  animation-delay: 0.3s;
}
.score-card .star:nth-child(4) {
  animation-delay: 0.4s;
}
.score-card .star:nth-child(5) {
  animation-delay: 0.5s;
}

/* Insight Card - AI Insight */
.insight-card {
  background-color: #ffffff;
  border: 1px solid #f1f3f5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.insight-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.insight-card .insight-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #172b4d;
  margin: 0;
}

.insight-card .robot-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.insight-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-card .insight-body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #212b36;
  margin: 0;
}

.insight-card .insight-note {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #637381;
  margin: 0;
}

.insight-card .card-footer {
  margin-top: auto;
}

.insight-card .cta-button {
  width: 100%;
  padding: 12px 12px;
  background-color: #0a68ff;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.insight-card .cta-button:hover {
  background-color: #0052cc;
  transform: scale(1.02);
}

/* Insight Card Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.insight-card .card-header {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.insight-card .card-body {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.insight-card .card-footer {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

/* Dark mode support */
.dark .insight-card {
  background-color: #1e1e1e;
  border-color: #4a4a4a;
}

.dark .insight-card .insight-title {
  color: #e0e0e0;
}

.dark .insight-card .insight-body {
  color: #e0e0e0;
}

.dark .insight-card .insight-note {
  color: #a0aec0;
}

/* Additional utility styles */
.profile-picture {
  width: 10rem;
  height: 10rem;
}

/* Gauge chart styles (for backward compatibility) */
.gauge-chart {
  width: 100%;
  max-width: 200px;
  height: 100px;
  position: relative;
  margin: 0 auto;
}

.gauge-bg {
  width: 100%;
  height: 100%;
  border-radius: 100px 100px 0 0;
  background: conic-gradient(
    from -90deg at 50% 100%,
    #e9ecef 0deg 180deg,
    transparent 180deg
  );
  position: absolute;
  top: 0;
  left: 0;
}

.dark .gauge-bg {
  background: conic-gradient(
    from -90deg at 50% 100%,
    #4a4a4a 0deg 180deg,
    transparent 180deg
  );
}

.gauge-fill {
  width: 100%;
  height: 100%;
  border-radius: 100px 100px 0 0;
  background: conic-gradient(
    from -90deg at 50% 100%,
    #ffab00 0deg,
    transparent 0deg
  );
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 1s ease-in-out;
}

.gauge-cover {
  width: 80%;
  height: 80%;
  background: #ffffff;
  border-radius: 100px 100px 0 0;
  position: absolute;
  bottom: 0;
  left: 10%;
}

.dark .gauge-cover {
  background: #1e1e1e;
}

.gauge-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.statistik-kehadiran {
  height: 20rem;
}
