/* Face Beauty Recognition - UI Styling */
.tool-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Title Styling */
.tool-container h2 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tooltip {
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-left: 6px;
  color: #555;
  font-weight: bold;
  user-select: none;
}

.tooltip {
  font-size: 0.85em;
  vertical-align: middle;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 260px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 10px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  margin-left: -130px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Upload Button */
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Analyze Button */
#analyzeButton {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#analyzeButton:hover {
    background-color: #0056b3;
}

/* Results Box */
#results {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1rem;
    color: #333;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .tool-container {
        width: 90%;
    }

    #analyzeButton {
        font-size: 1rem;
        padding: 10px;
    }
}
#canvasOutput {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 2px solid #444;
}

.disclaimer {
  margin-top: 20px;
  font-size: 0.9rem;
  background: #f9f9f9;
  padding: 12px;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  text-align: left;
}

.sample-images {
  margin-top: 20px;
  text-align: center;
}

.sample-images h4 {
  margin-bottom: 10px;
  color: #007bff;
  font-size: 1.1rem;
}

.samples-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.samples-grid img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 6px;
}

