/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f5f5f5;
  text-align: center;
}

/* Header Styles */
.awm-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #004d40; /* Dark Green */
  color: white;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.awm-logo-small {
  height: 50px;
  padding: 5px;
  background-color: white;
  border-radius: 5px;
}

.header-text {
  text-align: left;
}

.header-text h1 {
  margin: 0;
  font-size: 28px;
}

.header-text h2 {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: normal;
}

.api-usage-counter {
  padding: 10px 15px;
  background-color: white;
  color: #004d40;
  border-radius: 5px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Flex Container for Cards */
.flex-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  flex: 1;
}

/* Instructions Section */
.instructions h3 {
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

.instructions-list {
/* padding-left: 50px;Increased padding for better centering
  padding-right: 200px; Added right padding to balance */
  text-align: left;
  font-size: 16px;
  color: #333;
}

.instructions-list li {
  margin: 5px 0;
}

.instructions button {
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #00796b; /* Teal */
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.instructions button:hover {
  background-color: #00695c;
}

/* Upload Section */
.upload-section h3 {
  margin-bottom: 15px;
  text-align: center;
}

.upload-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

button {
  padding: 10px 15px;
  background-color: #00796b;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:disabled {
  background-color: #b0c4de;
  cursor: not-allowed;
}

/* Excel Formatting Tips */
.excel-tips {
  margin-top: 15px;
  padding: 10px;
  background-color: #e8f5e9;
  border-radius: 5px;
  border: 1px solid #c8e6c9;
  text-align: left;
}

/* Error Messages */
.error-messages {
  color: red;
  border: 1px solid red;
  padding: 10px;
  margin: 10px auto;
  width: 80%;
  border-radius: 5px;
  background-color: #ffe6e6;
  text-align: left;
}

/* Loading Indicator */
.loading {
  margin: 20px 0;
  font-size: 16px;
  font-weight: bold;
  color: #00796b;
}

/* Output Table */
.output-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px;
}

.output-section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.output-section th, .output-section td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.output-section th {
  background-color: #004d40;
  color: white;
}

.output-section tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Footer Styles */
.awm-footer {
  text-align: center;
  padding: 15px;
  background-color: #004d40;
  color: white;
  font-size: 14px;
}

/*loading spinners*/

/* Loading Spinner */
.loading-spinner {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed position to overlay the entire page */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Align the spinner to the center */
  font-size: 18px; /* Font size for the spinner text */
  font-weight: bold;
  color: #00796b; /* Matches your color theme */
  background: rgba(255, 255, 255, 0.8); /* Optional semi-transparent background */
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
  z-index: 1000; /* Ensure it appears above all other elements */
}

.loading-spinner.active {
  display: block; /* Display when active */
}

.output-section table {
  border: 1px solid #ddd;
}

.loading-spinner {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#errorMessages {
  display: none;
}


