#displayResponce {
  width: 100%;
  max-width: 1200px;
  max-height: 100px;
  margin: 30px auto;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

#displayResponce::-webkit-scrollbar {
  width: 7px;
}

#displayResponce::-webkit-scrollbar-track {
  background: transparent;
}

#displayResponce::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 20px;
}

#displayResponce::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.response-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.response-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.response-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.response-success::before {
  background: #22c55e;
}

.response-error::before {
  background: #ef4444;
}

.response-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.response-plan {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.response-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.response-plan-id {
  display: block;
  max-width: 100%;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-all;
}

.response-tag {
  flex-shrink: 0;
  min-height: 26px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.response-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tag-saved {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.tag-saved::before {
  background: #22c55e;
}

.tag-unsuccessful {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.tag-unsuccessful::before {
  background: #ef4444;
}

.response-message {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  #displayResponce {
    max-height: 400px;
    margin: 20px auto;
    padding: 3px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
  }

  .response-card {
    padding: 17px;
    border-radius: 16px;
  }

  .response-header {
    gap: 10px;
  }

  .response-plan-id {
    font-size: 12px;
  }

  .response-message {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  #displayResponce {
    grid-template-columns: 1fr;
  }

  .response-card {
    padding: 16px;
  }
}