body {
    position: relative;
    background-color: #F0F8FF; /* very light blue */
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100vh;
  }
  
  body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpeg');
    background-repeat: repeat;
    background-position: top left;
    background-size: 100px 100px;
    opacity: 0.5; /* Adjust the opacity value */
    z-index: -1;
  }
  
  h1 {
    text-align: center;
    margin-top: 20px;
    color: blue;
  }
  
  button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #3e8e41;
  }

  .toolbar {
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: transparent;
    border: none;      
  }

  .toolbar-button {
    background-color: rgba(173, 216, 230, 0.8); /* Light blue */
    color: #171658;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  }  

  #log-textbox {
    width: 90%;
    height: 300px;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    overflow-y: scroll;
    /* background-color: #f9f9f9; */
    background-color: rgba(173, 216, 230, 0.8); /* Light blue with 50% opacity */
    margin: 20px 0;
    resize: both;
  }


  /* Stuff for the File Upload
  /* Upload Dialog Overlay */
.upload-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.upload-dialog-overlay.show {
  display: flex;
}

/* Dialog Box */
.upload-dialog {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
  from {
      opacity: 0;
      transform: scale(0.9) translateY(-20px);
  }
  to {
      opacity: 1;
      transform: scale(1) translateY(0);
  }
}

/* Dialog Header */
.upload-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.upload-dialog-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.3em;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: #f0f0f0;
}

/* Dialog Content */
.upload-dialog-content {
  padding: 20px;
}

/* File Input Area */
.file-input-area {
  border: 2px dashed #ccc;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.file-input-area:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.file-input-area.dragover {
  border-color: #007bff;
  background-color: #e3f2fd;
  transform: scale(1.02);
}

.file-input-area p {
  margin: 0;
  color: #666;
  font-size: 1.1em;
}

/* File Info */
.file-info {
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  display: none;
}

.file-info h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.file-info div {
  padding: 5px 0;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
}

.file-info div:last-child {
  border-bottom: none;
}

/* Upload Progress */
.upload-progress {
  margin: 20px 0;
  display: none;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background-color: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 12px;
}

#progressText {
  margin: 0;
  text-align: center;
  color: #555;
  font-weight: 500;
}

/* Dialog Footer */
.upload-dialog-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Buttons */
.upload-button, .cancel-button, .open-upload-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-button {
  background-color: #007bff;
  color: white;
}

.upload-button:hover:not(:disabled) {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.upload-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.cancel-button {
  background-color: #6c757d;
  color: white;
}

.cancel-button:hover {
  background-color: #545b62;
  transform: translateY(-1px);
}

.open-upload-button {
  background-color: #28a745;
  color: white;
  margin: 10px;
}

.open-upload-button:hover {
  background-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Upload Results */
#uploadResults {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
}

#uploadResults div {
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .upload-dialog {
      width: 95%;
      margin: 10px;
  }
  
  .file-input-area {
      padding: 30px 15px;
  }
  
  .upload-dialog-footer {
      flex-direction: column;
  }
  
  .upload-button, .cancel-button {
      width: 100%;
  }
}

.welcome-message {
  font-size: 24px;
  font-weight: bold;
  animation: fadeIn 2s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.highlight {
  color: #007bff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}