/* Africana Phenotype Predictor (scoped styles) */

.predictor-view {
  /* This replaces the old body styles */
  font-family: Arial, sans-serif;
  color: #333;
  margin: 0 auto;
  padding: 32px 16px 48px;
  max-width: 960px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Form/Card Box (renamed from .overlay to avoid modal clash) */
.predictor-view .predictor-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 720px;      /* wider like your good layout */
  margin: 24px auto;     /* center in the column */
  position: relative;    /* neutralize any global overlay rules */
  inset: auto;
}

/* Logo Styling */
.predictor-view .logo-container img {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

/* Title & Description */
.predictor-view h1 {
  font-size: 26px;
  font-weight: bold;
  color: #D83F87;
  margin: 16px 0 10px;
}

.predictor-view p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

/* Upload Button */
.predictor-view .upload-btn {
  background: linear-gradient(45deg, #D83F87, #FF7F50);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.predictor-view .upload-btn:hover {
  background: linear-gradient(45deg, #FF7F50, #D83F87);
}

/* Inputs */
.predictor-view label {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #444;
  margin: 10px 0 6px;
}

.predictor-view select,
.predictor-view input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Footer */
.predictor-view .footer {
  font-size: 12px;
  color: #777;
  margin-top: 20px;
}

/* Profile Section */
.predictor-view .profile-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  width: 100%;
  max-width: 720px;  /* match card width */
  gap: 20px;
  text-align: left;
}

.predictor-view .profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #D83F87;
  flex-shrink: 0;
}

.predictor-view .profile-info {
  flex: 1;
}

.predictor-view .profile-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 6px;
}

.predictor-view .profile-description {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.predictor-view .social-link {
  background: #D83F87;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.predictor-view .social-link:hover {
  background: #FF7F50;
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .predictor-view .predictor-card {
    padding: 24px;
  }
  .predictor-view .profile-container {
    flex-direction: column;
    text-align: center;
  }
}
