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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

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

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Upload Screen Styles */
.upload-area {
  border: 2px dashed #ccc;
  padding: 40px;
  text-align: center;
  background-color: white;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 500px;
}

.upload-area.dragover {
  border-color: #4CAF50;
  background-color: #f8fff8;
}

#fileInput {
  display: none;
}

button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #45a049;
}

/* Loading Screen Styles */
.loader {
  border: 5px solid #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #4CAF50;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Results Screen Styles */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.table-section {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
  margin-bottom: 15px;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f8f8;
  font-weight: bold;
}

/* Add these new styles */
.name-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.name-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 3px rgba(74, 175, 80, 0.3);
}

td {
  padding: 8px;
  vertical-align: middle;
}

/* Make the first column slightly smaller than the second */
td:first-child {
  width: 45%;
}

td:last-child {
  width: 55%;
}

/* Add these new styles */
.action-buttons {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.primary-button {
  background-color: #2196F3;
}

.primary-button:hover {
  background-color: #1976D2;
}

/* Update these styles */
.back-link {
  display: block;
  text-align: center;
  color: #666;
  text-decoration: none;
  margin: 20px 0;
  font-size: 14px;
}

.back-link:hover {
  color: #2196F3;
  text-decoration: underline;
}

.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    max-width: 80%;
    width: 400px;
}

.error-message h3 {
    color: #d32f2f;
    margin-top: 0;
    margin-bottom: 15px;
}

.error-message p {
    margin: 15px 0;
    color: #666;
    white-space: pre-line;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.error-message button {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.retry-button {
    background: #2196f3;
    color: white;
}

.help-button {
    background: #f5f5f5;
    color: #333;
}

.retry-button:hover {
    background: #1976d2;
}

.help-button:hover {
    background: #e0e0e0;
}
