/* General styles */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f7f5fa;
}

/* Flex layout for app body */
.ms-welcome__header {
  padding: 20px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #842b94;
  color: white;
}

.ms-welcome__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 0;
  padding: 10px 20px;
  text-align: left;
  background-color: #f7f5fa;
  height: 100%;
}

/* Styles for the button */
.ms-welcome__action.ms-Button--hero {
  margin-top: 30px;
  cursor: pointer;
  background-color: #842b94;
  color: white;
  white-space: nowrap;
  border-radius: 50px;
  padding: 4px 16px;
  font-weight: bold;
  font-size: 13px;
  min-width: 30px;
  box-shadow: none;
  transition: background-color 0.3s ease;
}
.ms-welcome__action.ms-Button--hero:hover {
  background-color: #6b1e78;
}

/* Styling for email body */
#email-body {
  max-height: 200px;
  overflow: auto; /* Enables scroll for long content */
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  margin-top: 10px;
}

/* Styling for the sender */
#sender-info {
  color: #666;
}

/* Styling for request result */
#request-result {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  background: white;
  width: 100%;
  max-width: 400px;
  display: none; /* Hidden by default */
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 300px; /* Limit the height */
  overflow-y: auto; /* Enable scroll if the content overflows */
}

/* Styling for status and status code */
#request-status {
  font-weight: bold;
  margin-top: 10px;
  color: #0078d7; /* Default to blue for success */
}

#request-status.failed {
  color: red; /* Red color for failure status */
}

#request-status.success {
  color: green; /* Green color for success status */
}

/* Responsive design */
@media (max-width: 600px) {
  #request-result {
    width: 90%;
  }
}

.ms-font-su {
  text-align: center;
}

.upload-status-panel {
  margin-top: 20px;
  padding: 10px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-family: monospace;
  font-size: 13px;
  overflow-y: auto;
  max-height: 300px;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.upload-status-panel .log {
  margin: 4px 0;
}

.upload-status-panel .start {
  color: #666;
}

.upload-status-panel .success {
  color: green;
}

.upload-status-panel .error {
  color: red;
}

/* Result Message Box Styles */
.result-box {
  padding: 14px 18px;
  margin-top: 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  max-width: 400px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.result-box.success {
  background-color: #e6f4ea;
  color: #1e4620;
  border: 1px solid #b5dbc1;
}

.result-box.warning {
  background-color: #fff4e5;
  color: #663c00;
  border: 1px solid #ffd699;
}

.result-box.error {
  background-color: #fdecea;
  color: #611a15;
  border: 1px solid #f5c6cb;
}

.result-box ul {
  margin-top: 8px;
  padding-left: 20px;
}

/* Loading */
#loading {
  font-size: 16px;
  font-weight: 500;
  background-color: #fff8e1;
  color: #5c4a00;
  border: 1px solid #ffe58f;
  padding: 12px 16px;
  margin-top: 20px;
  border-radius: 6px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}