body {
  background: #f7f5ff;
}

.disease-ui-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 10px 20px;
}
#disease-results.loading {
    opacity: .5;
    pointer-events: none;
}

/* category buttons */
.disease-categories {
  text-align: center;
  margin-bottom: 25px;
}

.category-btn {
  border: 0;
  padding: 10px 20px;
  margin: 6px;
  background: #eee;
  border-radius: 30px;
  cursor: pointer;
  transition: .3s;
  font-weight: 600;
}

.category-btn:hover,
.category-btn.active {
  background: #6a00ff;
  color: #fff;
}

/* grid */
.disease-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(330px,1fr));
  gap: 25px;
}

/* card */.disease-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px 18px;
  overflow: hidden;

  /* NEW — purple border */
  border: 2px solid #b388ff;

  /* smoother look */
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  transition: all .25s ease;
}

.disease-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(106, 0, 255, .25);
  border-color: #7e22ce;   /* deeper purple */
}

.disease-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg,#ff00b1,#6a00ff,#ff7a00);
}

.disease-icon {
  font-size: 32px;
  margin-top: 10px;
}

.disease-card h3 {
  margin: 10px 0;
}

.disease-category {
  color: #9c27b0;
  font-size: 14px;
}

.disease-description {
  color: #555;
}

.disease-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #6a00ff;
}
