/* AutoVibe Updated CSS for project 1743785790158 - Iteration 2 */
body {
  font-family: sans-serif;
  padding: 20px;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  width: 100%;
  max-width: 400px; /* Limit width for better layout */
}

input[type="file"] {
  display: block;
  margin-bottom: 15px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  width: 100%;
  max-width: 382px; /* Adjust width considering padding */
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
  display: block; /* Make button block level */
  width: 100%; /* Make button take full width */
  max-width: 400px; /* Limit width */
  margin-bottom: 20px; /* Add space below button */
}

button:hover {
  background-color: #2980b9;
}

button:active {
  background-color: #2471a3;
}

button:disabled {
  background-color: #bdc3c7; /* Grey out when disabled */
  cursor: not-allowed;
  opacity: 0.7;
}

#status {
  margin-top: 20px;
  padding: 15px;
  background-color: #eaf2f8;
  border: 1px solid #aed6f1;
  border-radius: 4px;
  min-height: 50px;
  width: 100%;
  max-width: 370px; /* Adjust width considering padding */
  box-sizing: border-box;
  text-align: center;
  color: #1a5276; /* Default text color for status */
  word-wrap: break-word; /* Prevent long messages from overflowing */
}

/* Style for the initial paragraph if needed, though JS replaces content */
#status p {
  margin: 0;
}

/* Style for error messages set via JS */
#status[style*="color: red"] {
  background-color: #fdedec; /* Light red background for errors */
  border-color: #f5b7b1; /* Reddish border for errors */
  /* color: red; is set inline by JS */
}