@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1e293b;
    color: #f1f5f9;
  }

  header, footer {
    background-color: #0f172a;
    color: #f1f5f9;
  }

  section {
    background-color: #1e293b;
  }

  input, select, textarea {
    background-color: #334155;
    color: #f1f5f9;
    border-color: #64748b;
  }

  input::placeholder, select::placeholder, textarea::placeholder {
    color: #cbd5e1;
  }

  a:hover {
    color: #4ade80;
  }

  button {
    background-color: #22c55e;
  }

  button:hover {
    background-color: #16a34a;
  }
}

a, button {
  transition: all 0.3s ease;
}

section > div > div:hover,
section > div > article:hover {
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

button {
  width: 100%;
}

@media (min-width: 768px) {
  button {
    width: auto;
  }
}

.menu-link {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-link:hover {
  color: #166534;
  cursor: pointer;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#camera-view {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1);
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.control-btn {
    background: rgba(22, 163, 74, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.control-btn:hover {
    background: rgba(22, 163, 74, 1);
    transform: translateY(-2px);
}

#captured-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detection-box {
    position: absolute;
    border: 2px solid red;
    background: rgba(255, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.detection-label {
    background: red;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: -25px;
    white-space: nowrap;
}

#detection-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.report-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.report-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.report-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background: #E5F2E5;
    color: #166534;
}
