/* Serial Number Lookup Styles */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue",
    Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #333;
}

.container {
  width: 100%;
  max-width: 500px;
}

.lookup-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
}

h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 300;
}

p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.input-group {
  margin-bottom: 25px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

input[type="text"] {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Message styles */
.error-message,
.success-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.error-message {
  background-color: #fee;
  color: #c53030;
  border: 1px solid #fed7d7;
}

.success-message {
  background-color: #f0fff4;
  color: #22543d;
  border: 1px solid #c6f6d5;
}

/* Responsive design */
@media (max-width: 600px) {
  .lookup-form {
    padding: 30px 25px;
    margin: 10px;
  }

  h1 {
    font-size: 24px;
  }

  input[type="text"],
  button {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .lookup-form {
    padding: 20px 15px;
  }

  h1 {
    font-size: 20px;
  }
}

/* Focus accessibility */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .lookup-form {
    border: 2px solid #333;
  }

  input[type="text"] {
    border-color: #333;
  }

  button {
    background: #333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  button:hover:not(:disabled) {
    transform: none;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .lookup-form {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  button {
    background: #666 !important;
  }
}
