/* Face Analysis Specific Styles */

/* Upload Area */
.upload-area {
  margin-top: 25px;
  padding: 40px 20px;
  background: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-area:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.02);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-icon {
  font-size: 3rem;
}

.upload-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  object-fit: contain;
}

/* Analyze Button */
#analyzeBtn {
  margin-top: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 45px;
  font-size: 1.15rem;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

#analyzeBtn:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--btn-shadow);
}

#analyzeBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Result Container */
.result-container {
  margin-top: 25px;
  padding: 25px;
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  display: none;
}

.result-container.active {
  display: block;
}

#label-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prediction-item {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.prediction-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.prediction-bar-container {
  height: 24px;
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.prediction-bar {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
}

.prediction-percent {
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  font-size: 1.1rem;
}

/* Navigation Links */
.navigation-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.nav-divider {
  color: var(--text-muted);
}

/* Logo animation */
.header .logo {
  animation: bounce-swap 2s ease-in-out infinite;
}

@keyframes bounce-swap {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-5px);
  }
}

/* Info section */
.info {
  margin-top: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.info-icon {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 520px) {
  .prediction-item {
    grid-template-columns: 80px 1fr 50px;
    gap: 8px;
  }

  .prediction-label {
    font-size: 0.9rem;
  }

  .prediction-percent {
    font-size: 1rem;
  }

  .upload-area {
    padding: 30px 15px;
    min-height: 150px;
  }

  .upload-icon {
    font-size: 2.5rem;
  }
}
