* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}
body {
  margin: 0;
  background: #b9d9f4;
  font-family: "Segoe UI", sans-serif;
}
.main-nav {
    width: 100%;
    background: linear-gradient(40deg,rgba(12, 34, 199, 1) 0%, rgba(91, 156, 253, 1) 65%, rgba(80, 145, 248, 1) 79%, rgba(11, 79, 217, 1) 100%);
    color: #fff;
}
.nav-up {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 28px;
}
.nav-logo img {
    height: 75px;
    width: 75px;
}
.nav-head h3 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.3px;
}
.nav-line {
    width: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 10px;
}
.nav-down {
    background: linear-gradient(40deg,rgba(12, 34, 199, 1) 0%, rgba(91, 156, 253, 1) 65%, rgba(80, 145, 248, 1) 79%, rgba(11, 79, 217, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 28px 0px;
}
.nav-subhead h2 {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.95;
}
.menu-items {
    background: linear-gradient(40deg,rgba(12, 34, 199, 1) 0%, rgba(91, 156, 253, 1) 65%, rgba(80, 145, 248, 1) 79%, rgba(11, 79, 217, 1) 100%);
    color: #fff;
    padding: 10px 58px;
    border-radius: 20px 0px 0px 0px;
}
.menu-items ul {
    display: flex;
    gap: 26px;
    list-style: none;
}
.menu-items ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 6px;
    position: relative;
}
.menu-items ul li a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.menu-items ul li a:hover:after {
    width: 100%;
}
.menu-items ul li:first-child a:after {
    width: 100%;

}
.menu-items i {
  margin-top: 3px;
  margin-right: 4px;
  color:#2921fe;
  background-color: #fff;
  padding: 5px;
  border-radius: 49%;
}
.container {
  margin-left: 20px;
  margin-right: 20px;
}
.dashboard {
  display: grid;
  overflow: hidden;
  grid-template-columns: 60% 40%;
  gap:10px;
  padding: 15px;

}
.analytics-card {
  grid-row: 1 / span 2;
  grid-column: 1;
  transform-origin: top left;
  background: #f3f6f9;
  border-radius: 8px;
  padding: 10px;
}

/* ================= HEADER ================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.header-icon h2 {
  margin-right: 2px;
  font-size: 22px;
  font-weight: 700;
}
.header-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-icon i {
  font-size: 17px;
  color: #fff;
  background: #2921fe;
  border-radius: 55%;
  padding: 8px;
}
.header select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cccdd2;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 23% 52% 27%;
  grid-template-rows: 50% 50%;
  height: 330px;
  border-radius: 8px;
  padding: 0px 10px 15px 10px;
  box-shadow: inset 6px 6px 12px #d1d9e6, 
                inset -6px -6px 12px #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.state-list {
  grid-row: 1 / span 2;
  grid-column: 1;
  border-right: 1px solid #dfe6ee;
  margin-top: 16px;
}
.pie-chart {
  grid-row: 1 / span 2;
  grid-column: 3;
  padding: 12px;
}
.analytics-grid h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  position: relative;
}

.analytics-grid h3::after {
  content: "";
  display: none;
  width: 40px;
  height: 5px;
  background: #cfd8e3;
  margin-top: 4px;
}

#statesList {
  list-style: none;
  margin-right: 10px;
  padding: 0;
  margin-top: 10px;
}
#statesList li {
  display: flex;
  overflow: hidden;
  align-items: stretch; 
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  font-size: 13px;
  font-weight: 600;
}
#statesList li span:first-child {
  flex: 1;
  padding: 7px 12px;
  border-radius: 6px 0 0 6px;
  color: #000;
  background: none;
  border: 2px solid #2921fe;
  display: flex;
  align-items: center;
}
#statesList li span:last-child {
  padding: 3px 7px;
  color: #eaf3ff;
  font-weight: 700;
  background: linear-gradient(40deg,rgba(12, 34, 199, 1) 0%, rgba(80, 145, 248, 1) 59%, rgba(11, 79, 217, 1) 100%);
  display: flex;
  align-items: center;
}
#statesList li {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#statesList li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(79,134,198,0.35);
}
.state-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.state-left::before {
  content: "✉";
  font-size: 13px;
  opacity: 0.85;
}
.state-name {
  border-bottom: 1px solid rgba(255,255,255,.45);
  padding-bottom: 2px;
}
.chart-wrap {
  position: relative;
  width: 100%;
  height: calc(100% - 26px);
}
.pie-chart .chart-wrap {
  height: 80%;
}
.pie-chart canvas {
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.12));
}
.recommendation-card-1 {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    background: #f3f6f9;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.trend-slider-section {
  grid-column: 2;
  margin: 10px;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid #dfe6ee;
}
.chart-slider {
  flex: 1; 
  display: flex;
  width: 200%;
  transition: transform 0.6s ease;
}
.chart-slide {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chart-slide h3 {
  margin: 0 0 6px 0;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.chart-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}
.chart-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}
.slider-dots .dot:first-child {
  border-left: 3px solid #446ac5ff;
  border-bottom: 3px solid #446ac5ff;
  transform: rotate(45deg);
}
.slider-dots .dot:last-child {
  border-right: 3px solid #446ac5ff;
  border-bottom: 3px solid #446ac5ff;
  transform: rotate(-45deg);
}
.custom-legend {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 23px;
}
.legend-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.orange { 
  background: #e64a19; 
}
.blue   { 
  background: #196fd2ff; 
}
.green  { 
  background: #26c203ff; 
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* CARD */
.kpi-card {
  background: linear-gradient(40deg,rgba(12, 34, 199, 1) 0%, rgba(91, 156, 253, 1) 65%, rgba(80, 145, 248, 1) 79%, rgba(11, 79, 217, 1) 100%);
  color: #fff;
  padding: 16px 18px;
  border-radius: 6px;
  margin: 0px 4px -13px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}
@keyframes startup-sweep {
  0% {
    left: -120%; /* Start hidden on the left */
  }
  30% {
    left: 150%;  /* Sweep across to the right */
  }
  100% {
    left: 150%; /* Stay on the right */
  }
}

/* 2. Apply it to your KPI card's ray */
.kpi-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%; /* Initial position */
  width: 30%;
  height: 200%;
  background: linear-gradient(
    to right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  /*transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); */
  animation: startup-sweep 2s ease-in-out 0.5s infinite;
  z-index: 1;
}
.kpi-card:hover::before {
  left: 120%;
}
.kpi-card:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
.kpi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;

}
.kpi-header span {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-left: 10px;
  text-decoration: none;  
}

.kpi-header i {
  font-size: 17px;
  color: #2921fe;
  opacity: 1;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
}
.kpi-divider {
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.35);
  margin: 8px 0 10px;
}

/* VALUE */
.kpi-value {
  font-size: 30px;
  margin-left: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* SUBTEXT */
.kpi-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-left: 5px; 
  margin-top: 4px;
}

/* UP / DOWN */
.up {
  color: #84ff00;
  font-weight: 600;
}

.growth {
  font-size: 16px;
  margin-left: 6px;
  color: #84ff00;
}

/* ARROW ICON */
.arrow-up {
  color: #ffe082;
  margin-right: 6px;
}
.kpi-sparkline {
  position: absolute;
  display: flex;
  bottom: 12px;
  right: 67px;
  width: 80px;
  font-size: 70px;
  opacity: 0.3;
}

.kpi-title {
  letter-spacing: 0.2px;
}

.kpi-value {
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  margin: 12px 0 6px;
  letter-spacing: 0.5px;
}

.kpi-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.kpi-sub {
  opacity: 0.8;
}

.kpi-growth {
  font-weight: 600;
}

.kpi-growth.up {
  font-size: 16px;
  color: #84ff00;
}

.kpi-growth.down {
  color: #ffb1b1;
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.ai-header {
  background: linear-gradient(40deg,rgba(12, 34, 199, 1) 0%, rgba(91, 156, 253, 1) 65%, rgba(80, 145, 248, 1) 79%, rgba(11, 79, 217, 1) 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-body {
  margin: 7px 0px 0px 0px;
  overflow: hidden;
}

.ai-text {
  font-size: 18px;
  color: #2c3e50;
  line-height: 1.5;
  margin-top: 5px;
}
.ai-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00f449;
  display: inline-block;
  margin-right: 4px;
}

.ai-dot.thinking {
  animation: aiPulse 1.2s infinite ease-in-out;
}

@keyframes aiPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  50%  { transform: scale(1.6); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}
.insight-group {
  overflow: hidden;
  background: #fff;
  border-left: 3px solid #2b6cff;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 5px;

}
.insight-group p {
  margin: 4px 0;
  font-size: 14px;
}
.ai-thinking {
  opacity: 1;
  transition: opacity 0.45s ease;
}

.ai-thinking.fade-out {
  opacity: 0;
}
.dashboard-2 {
  display: grid;
  grid-template-columns: 60% 40%;
  grid-template-rows: 50% 50%;
  gap: 10px;
  padding: 15px;
  overflow: hidden;
  animation: smoothReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* The Shimmer Animation */
@keyframes shimmer-sweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes smoothReveal {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}
.analytics-card-2 {
    position: relative;
    grid-row: 1 / span 2;
    grid-column: 1;
    transform-origin: top left;
    background: #f3f6f9;
    border-radius: 8px;
    padding: 10px;
}
.analytics-grid-2 {
  flex: 1;
  display: grid;
  grid-template-columns: 30% 42% 28%;
  grid-template-rows: 60% 40%;
  height: 345px;
  border-radius: 8px;
  padding: 0px 10px 17px 10px;
  box-shadow: inset 6px 6px 12px #d1d9e6, 
                inset -6px -6px 12px #ffffff;
}
.analytics-grid-2 h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 8px 8px;
  position: relative;
}

.analytics-grid-2 h3::after {
  content: "";
  display: none;
  width: 40px;
  height: 5px;
  background: #cfd8e3;
  margin-top: 4px;
}
.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: none !important;
}
.stateMap {
  grid-row: 1 / span 2;
  grid-column: 1;
  border-right: 1px solid #dfe6ee;
}
#stateMap {
  height: 100%;
  width: 100%;
  min-height: 320px;
  border-radius: 10px;
  background: none;
  animation: pulse 3s ease-out 9;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(33,150,243,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(33,150,243,0); }
  100% { box-shadow: 0 0 0 0 rgba(33,150,243,0); }
}
.districtMap {
  grid-row: 1 / span 2;
  grid-column: 2;
  border-right: 1px solid #dfe6ee;
  border-left: 1px solid #dfe6ee;
  max-height: 230px;
}
#districtMap {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  background: none;
}
.update-q {
  display: inline-block;
  border-left: 1px solid #dfe6ee;
} 
.biovsdem {
  grid-row: 1;
  grid-column: 3;
  border-left: 1px solid #dfe6ee;
  border-bottom: 1px solid #dfe6ee;
}
.update-age {
  grid-row: 2;
  grid-column: 3;
   border-left: 1px solid #dfe6ee;
}
#pieChart {
  height: 100px;
  width: 100px; 
}
.chart-wrapper {
  position: relative;
  height: calc(100% - 62px);
  width: 100%;
}
.chart-wrapper canvas {
  width: 100%;
  height: 100%;
}
.chart-wrapper-2 {
  position: relative;
  height: calc(100% - 8px);
  width: 100%;
}
.chart-wrapper-2 canvas {
  width: 100%;
  height: 100%;
}
.recommendation-card-3 {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 100%;
  background: #f3f6f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  overflow-y: auto;
}
.heatmap-legend-3d {
  width: 280px;
  margin: 0 auto;
  font-family: sans-serif;
}
.legend-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: bold;
  color: #3a3a3a;
  margin-bottom: 8px;
}
.status-badge {
  background: #4caf50;
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.gradient-track {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.05);
}
.grad-segment {
  flex: 1;
  background: linear-gradient(to right, var(--start), var(--end));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.grad-segment .label {
  font-size: 9px;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  opacity: 0.9;
}
.legend-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: #888;
  font-weight: 600;
}
.ai-risk-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 5px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  animation: ai-slide-fade 0.4s ease-in;
}
.ai-risk-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.ai-risk-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-risk-icon {
    font-size: 17px;
    color: #fff;
    background: #2921fe;
    border-radius: 55%;
    padding: 4px;
}
.ai-risk-title {
  font-weight: 700;
  font-size: 15px;
}
.ai-risk-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eee;
}
.ai-risk-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}
.ai-risk-action {
  font-size: 13px;
  background: #f7f9fc;
  padding: 6px 8px;
  border-radius: 6px;
}
.ai-critical {
  border-left: 5px solid #e53935;
  border-radius: 6px;
}
.ai-critical .ai-risk-badge {
  background: #fdecea;
  color: #c62828;
  margin: -2px 8px 10px;
  border-radius: 6px;
}
.ai-watch {
  border-left: 5px solid #fb8c00;
      border-radius: 6px;
}
.ai-watch .ai-risk-badge {
  background: #fff3e0;
  color: #ef6c00;
  margin: -2px 8px 10px;
}
.ai-mustdo {
  border-left: 5px solid #2921fe;
      border-radius: 6px;
}
.ai-mustdo .ai-risk-badge {
  border-radius: 6px;
  margin: -2px 8px 10px;
  background: #e3f2fd;
  color: #1565c0;
}
.ai-info {
  border-left: 5px solid #43a047;
      border-radius: 6px;
}
.ai-info .ai-risk-badge {
  border-radius: 6px;
  margin: -2px 8px 10px;
  background: #e8f5e9;
  color: #2e7d32;
}
@keyframes ai-slide-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ai-insights-wrapper {
  height: 330px;
  overflow-y: auto;
  padding-right: 6px;
  margin-top: 5px;
}
#ai-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    background-size: cover;
    backdrop-filter: blur(4px);
    z-index: 10;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2921fe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.ai-loading-text {
  font-size: 16px;
  color: #555;
  font-weight: 600;
  z-index: 10;
} 
.hidden {
  display: none!important;
}
.analytics-card-3 {
    position: relative;
    grid-column: 1;
    transform-origin: top left;
    background: #f3f6f9;
    border-radius: 8px;
    padding: 10px;
}
.analytics-grid-3 {
  flex: 1;
  display: grid;
  grid-template-columns: 50% 50%;
  height: 430px;
  border-radius: 8px;
  padding: 0px 10px 17px 10px;
  box-shadow: inset 6px 6px 12px #d1d9e6, 
                inset -6px -6px 12px #ffffff;
}
.analytics-grid-3 h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 8px 8px;
  position: relative;
}
.graph-3 {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-left: 1px solid #dfe6ee;
}

.view-pane.hidden { display: none; }

.back-btn {
    position: absolute;
    top: 40px; right: 10px;
    z-index: 1000;
    padding: 5px 15px;
    background: #444; color: white; border: none; border-radius: 4px;
}

.f-btn { border: none; padding: 6px 12px; border-radius: 20px; font-size: 11px; cursor: pointer; margin-left: 5px; }
.f-btn.bio { background: #ffebeb; color: #ff4d4d; }
.f-btn.demo { background: #ebf5ff; color: #3498db; }


#indiaMap {
    height: 100%;
    width: 100%;
    min-height: 370px;
    border-radius: 10px;
    background: none;
}
.chart-wrapper-3 {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}
#rkAgeLineChart {
   margin: 20px 5px 5px 10px;
   min-height: 340px;
 
}
.chart-wrapper-3 canvas {
  height: 340px !important;
}
.rk-risk-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rk-risk-cards {
  height: 100%;
  overflow-y: scroll;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rk-risk-cards::-webkit-scrollbar {
  width: 6px;
}
.rk-risk-cards::-webkit-scrollbar-thumb {
  background: #cfd8dc;
  border-radius: 6px;
}
.rk-risk-cards::-webkit-scrollbar-track {
  background: transparent;
}
.rk-risk-card {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 14px 16px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  animation: ai-slide-fade 0.4s ease-in;
}
.rk-risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rk-risk-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rk-risk-title {
  font-size: 15px;
  font-weight: 700;
  color: #212121;
}
.rk-risk-level {
  font-size: 11px;
  font-weight: 700;
  padding: 5px;
  border-radius: 6px;
  color: #fff;
  line-height: 1;
  margin-top: 0;
}
.critical .rk-risk-level {
  background: #d32f2f;
  border-radius: 6px;
}
.moderate .rk-risk-level {
  background: #f57c00;
  border-radius: 6px;
}
.low .rk-risk-level {
  background: #388e3c;
  border-radius: 6px;
}
.rk-risk-score {
  font-size: 22px;
  font-weight: 800;
  color: #111;
}
.rk-risk-metrics {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #424242;
    margin: 6px 0;
    line-height: 1.2;
    background: #ffffffbd;
    padding: 4px;
    border-radius: 6px;
}
.rk-risk-metrics br {
  display: none;
}
.rk-risk-metrics span,
.rk-risk-metrics > * {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.rk-risk-bar {
  height: 5px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}

.rk-risk-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff7043, #fbc02d);
}
.rk-risk-ai {
  font-size: 12px;
  color: #555;
  font-style: italic;
  margin-top: 4px;
}
.dashboard-3 {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 10px;
    padding: 15px;
    overflow: hidden;
    animation: smoothReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.recommendation-card-4 {
    grid-column: 2;
    background: #f3f6f9;
    max-height: 530px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    overflow-y: auto;
}
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: -3px;
  padding: 3px 7px;
  background: #fff;
  border: 1px solid #2921fe;
  color: #2921fe;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: all .2s ease;
}
.upload-btn:hover {
  background: #1e40af;
  color: #fff;
  transform: translateY(-1px);
}

.upload-btn:active {
  transform: scale(.97);
}

