.scan-result-container {
  max-width: 1100px;
  margin: auto;
}

.scan-result-card {
  background: white;
  border-radius: 1rem;
  padding: 30px 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.flex {
  display: flex;
  justify-content: space-between;
  /* margin: 0 20px; */
  align-items: center;
}

.flex-col {
  flex-direction: column;
}

.scan-header {
  font-size: 1.875rem;
  font-weight: 800;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.summary-item {
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.summary-item p {
  margin: 0;
}

.count {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0.25rem;
}

.bg-indigo {
  background-color: #e5e7eb;
  color: #3730a3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-red {
  background-color: #fef2f2;
  color: #991b1b;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-yellow {
  background-color: #fffbeb;
  color: #854d0e;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-green {
  background-color: #ecfdf5;
  color: #166534;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.group-card {
  border-radius: 1rem;
  padding: 1.5rem;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
  margin-bottom: 1rem;
}

.border-red {
  border-color: #dc2626;
}

.border-yellow {
  border-color: #d97706;
}

.border-green {
  border-color: #059669;
}

.group-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.risk-high {
  color: #dc2626;
}

.risk-medium {
  color: #d97706;
}

.risk-low {
  color: #059669;
}

.mt-6 {
  margin-top: 1.5rem;
}

.instance {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.75rem;
}

.instance-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.instance-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

@media (max-width: 768px) {
  .flex {
    display: flex;
    flex-direction: column;

    /* justify-content: space-between; */
    /* margin: 0 20px; */
    align-items: center;
  }

  .scan-result-container {
    max-width: 600px;
    margin: auto;
  }

  h1 {
    font-size: 1.875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 390px) {
  .scan-result-container {
    max-width: 300px;
    margin: auto;
  }

  .scan-result-card {
    padding: 20px 30px;
  }

  .scan-header img {
    width: 18px;
    height: 18px;
  }

  .scan-header h1,
  .scan-header h2 {
    font-size: 15px;
    font-weight: 800;
  }
}
