/* this style is only used for the basic non-customizable model embeds and will be removed
once the custom JS/CSS is added */
.model-embed {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* custom CSS for model classifier widget */
.classifier-widget {
  padding: 1.5rem;
  border-radius: 16px;
  background: #faf8f5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.drop-zone {
  width: 100%;
  max-width: 400px;
  padding: 2rem 1rem;
  border: 2px dashed #c9a227;
  border-radius: 12px;
  background: #fff;
  transition: 0.3s ease-in-out;
}

.drop-zone.dragover {
  background: #fdf3df;
  border-color: #df6a3b;
}

.drop-zone-text {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 19px;
}

.image-preview {
  max-width: 100%;
  max-height: 320px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.result-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 3px solid #c9a227; 
  background: #fff;
  border-radius: 5px;
  width: 55%;
}

.classify-btn {
  background-color: #df6a3b;
  color: white;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.classify-btn:hover {
  background-color: #b9550e;
  transition: 0.3s ease-in-out;
}

.confidence-breakdown {
  color: gray;
  font-weight: 800;
  font-size: 16px;
}

.predicted-class {
  font-size: 26px;
}

.custom-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-custom {
  display: inline-block;
  background-color: #787880;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-custom:hover {
  background-color: rgb(75, 78, 82);
  transition: 0.3s ease-in-out;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.clear-btn {
  background-color: transparent;
  color: #787880;
  border: 1px solid #787880;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.clear-btn:hover {
  background-color: #c9c9c9;
  transition: 0.3s ease-in-out;
}

.example-row {
  width: 100%;
  max-width: 400px;
}

.example-label {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

.example-thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.example-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease-in-out;
}

.example-thumb:hover {
  border-color: #c9a227;
  transform: scale(1.05);
}

.footer-text {
  font-size: 15px;
  padding-top: 15px;
  padding-bottom: 0px;
}

.confidence-details {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.confidence-details summary {
  cursor: pointer;
  color: #787880;
}
.confidence-details summary:hover {
  color: #df6a3b;
}
.confidence-list {
  list-style: none;
  margin: 0.75rem 0 0 0;
  padding: 0;
}
.confidence-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.confidence-label {
  flex: 0 0 90px;
  font-size: 0.85rem;
  color: #333;
}
.confidence-bar-track {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.confidence-bar-fill {
  display: block;
  height: 100%;
  background: #c9a227;
}
.confidence-pct {
  flex: 0 0 40px;
  text-align: right;
  font-size: 0.8rem;
  color: #666;
}

/* Bold the actual chosen category in the prediction list */
.top-prediction {
  font-weight: 700;
  color: #10b981;
}