* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 600px;
  width: 100%;
}

/* Mobile styles */
@media (max-width: 768px) {
  body {
    background: white;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  .container {
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    max-width: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Ensure proper spacing on mobile */
  .input-group {
    margin-bottom: 25px;
  }

  /* Better touch targets */
  label {
    margin-bottom: 10px;
    font-size: 16px;
  }
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
  font-size: 2.5rem;
  font-weight: 700;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Mobile styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }
}

.input-group {
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

input[type='text'] {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input[type='text']:focus {
  outline: none;
  border-color: #667eea;
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
  input[type='text'] {
    padding: 18px 15px;
    font-size: 18px;
  }

  button {
    padding: 18px 15px;
    font-size: 18px;
  }
}

button:hover {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.results {
  margin-top: 30px;
  padding: 20px;
  border-radius: 10px;
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .results {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
  }
}

.results.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.results.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.loading {
  text-align: center;
  color: #666;
  margin-top: 20px;
  display: none;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.evidence-list {
  margin-top: 15px;
  padding-left: 20px;
}

.evidence-list li {
  margin-bottom: 5px;
}

.confidence-bar {
  width: 100%;
  height: 8px;
  background: #e1e5e9;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  transition: width 0.3s ease;
}

.footer-links {
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #333;
  background-color: #f8f9fa;
}

.footer-link svg {
  width: 16px;
  height: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-links {
    gap: 8px;
  }

  .footer-link {
    font-size: 13px;
    padding: 6px 10px;
  }
}
