body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  font-family: 'Open Sans', sans-serif;
}

.main-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
  gap: 10px;
  min-height: 0;
}

#left-controls {
  width: 250px;
  min-width: 250px;
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.controls-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-btn {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background-color: white;
  color: #666666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: #f8f8f8;
  border-color: #d0d0d0;
}

.upload-btn {
  border: 2px solid #b2cde9;
  color: #b2cde9;
  font-weight: 600;
}

.download-btn {
  border: 2px solid #b2cde9;
  color: #b2cde9;
  font-weight: 600;
}

/* Control Panel Styles */
.control-section {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}

.control-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.control-section h2 {
  font-size: 14px;
  margin: 0 0 12px 0;
  color: #666666;
  font-weight: 700;
  text-transform: uppercase;
}

.control-section .action-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 2px solid #b2cde9;
  border-radius: 4px;
  background-color: white;
  color: #b2cde9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.control-section .action-btn:hover {
  background-color: #b2cde9;
  color: white;
}

.control-section .action-btn:active {
  background-color: #9ab8d6;
  border-color: #9ab8d6;
  color: white;
}

.control-group {
  margin-bottom: 12px;
}

.control-group label {
  display: block;
  margin-bottom: 6px;
  color: #666666;
  font-size: 13px;
  font-weight: 600;
}

.control-group input[type="range"] {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  -webkit-appearance: none;
  margin: 8px 0;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #666666;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.control-group input[type="checkbox"] {
  margin-right: 8px;
}

/* Displacement limit specific styles */
.displacement-limit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.displacement-limit span {
  font-size: 12px;
  color: #666666;
}

/* View options */
.view-options, .brush-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.view-option, .brush-option {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666666;
  font-weight: 600;
}

.view-option input[type="radio"],
.brush-option input[type="radio"] {
  margin-right: 8px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 3px solid #666666;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.view-option input[type="radio"]:checked,
.brush-option input[type="radio"]:checked {
  background-color: #666666;
  border-color: #666666;
}

.view-option input[type="radio"]:hover,
.brush-option input[type="radio"]:hover {
  border-color: #4d4d4d;
}

#viewport {
  flex: 1;
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hint-text {
  display: block;
  font-size: 11px;
  color: #999999;
  margin-top: 6px;
  font-style: italic;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  max-width: 90%;
}

.modal-content h2 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.filename-input {
  margin-bottom: 20px;
}

.filename-input label {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.filename-input input {
  width: 100%;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.filename-input input:focus {
  outline: none;
  border-color: #b2cde9;
}

.filename-input input::placeholder {
  color: #999;
}

.format-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.format-btn {
  padding: 12px;
  border: 2px solid #b2cde9;
  border-radius: 4px;
  background-color: white;
  color: #b2cde9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.format-btn:hover {
  background-color: #b2cde9;
  color: white;
}

.modal-close {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: #e0e0e0;
}

.button-primary {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #4CAF50;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 5px 0;
}

.button-primary:hover {
  background-color: #3e8e41;
}

.button-primary:active {
  background-color: #357a38;
  transform: translateY(1px);
}

.button-description {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
  text-align: center;
}

.processing-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.processing-indicator.visible {
  display: flex;
}

.processing-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.processing-content h3 {
  margin-top: 0;
  color: #333;
}

.processing-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.remesh-button {
  background-color: #D3D3D3; /* Light grey color */
  color: #333333; /* Dark grey text for better contrast */
  font-weight: bold; /* Make the text bold */
  margin-top: 5px; /* Add some margin at the top */
  margin-bottom: 5px; /* Add some margin at the bottom */
  padding: 10px; /* Add padding for better clickability */
  border: none; /* Remove default border */
  border-radius: 4px; /* Add rounded corners */
  cursor: pointer; /* Change cursor to pointer on hover */
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.remesh-button:hover {
  background-color: #C0C0C0; /* Slightly darker grey on hover */
} 