body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0f0f0f;
  color: #fff;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

header {
  background: #1e1e1e;
  width: 100%;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #333;
}

header .header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #00ffd5;
  font-weight: 500;
  letter-spacing: 0.5px;
}

header h1 i {
  color: #00ffd5;
  font-size: 1.4rem;
}

.controls-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.controls {
  width: auto !important;
  max-width: 400px;
  gap: 0.5rem;
}

/* Remove number input spinners */
.controls .form-control::-webkit-outer-spin-button,
.controls .form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.controls .form-control[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.controls .form-control {
  background-color: #2d2d2d;
  border: 2px solid #444;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  width: 260px;
  outline: none;
}

.controls .form-control::placeholder {
  color: #888;
  opacity: 1;
}

.controls .form-control:focus {
  background-color: #2d2d2d;
  border-color: #00ffd5;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 213, 0.15);
  color: #fff;
}

/* Input field states */
.controls .form-control.success-flash {
  border-color: #00ffd5;
  background-color: rgba(0, 255, 213, 0.1);
  animation: flashSuccess 0.5s ease;
}

.controls .form-control.error-flash {
  border-color: #00ffd5;
  background-color: rgba(0, 255, 213, 0.1);
  animation: flashError 0.5s ease;
}

@keyframes flashSuccess {
  0% {
    background-color: rgba(0, 255, 213, 0.2);
  }
  100% {
    background-color: #2d2d2d;
  }
}

@keyframes flashError {
  0% {
    background-color: rgba(0, 255, 213, 0.2);
  }
  100% {
    background-color: #2d2d2d;
  }
}

/* Add a subtle enter key hint */
.controls .form-control:placeholder-shown {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.controls .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  border-radius: 8px;
  min-width: 50px;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.controls .btn i {
  font-size: 1.1rem;
}

.controls .btn-primary {
  background-color: #00ffd5;
  border: 2px solid #00ffd5;
  color: #1e1e1e;
}

.controls .btn-primary:hover,
.controls .btn-primary:focus {
  background-color: transparent;
  border-color: #00ffd5;
  color: #00ffd5;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 213, 0.15);
}

.controls .btn-outline-danger {
  border: 2px solid #00ffd5;
  color: #00ffd5;
  background: transparent;
}

.controls .btn-outline-danger:hover {
  background-color: #00ffd5;
  color: #1e1e1e;
}

.controls .btn-outline-danger:focus,
.controls .btn-outline-danger:active,
.controls .btn-outline-danger:focus-visible {
  background-color: transparent;
  color: #00ffd5;
  box-shadow: none;
  border-color: #00ffd5;
}

.controls .btn-outline-primary {
  border: 2px solid #00ffd5;
  color: #00ffd5;
  background: transparent;
}

.controls .btn-outline-primary:hover {
  background-color: #00ffd5;
  color: #1e1e1e;
}

.controls .btn-outline-primary:focus,
.controls .btn-outline-primary:active,
.controls .btn-outline-primary:focus-visible {
  background-color: transparent;
  color: #00ffd5;
  box-shadow: none;
  border-color: #00ffd5;
}

.controls .btn-outline-primary:disabled {
  border-color: #555;
  color: #555;
  cursor: not-allowed;
}

.controls .btn-outline-primary:disabled:hover {
  background-color: transparent;
  color: #555;
}

/* Remove hover animations from controls */
.controls .form-control,
.controls .btn {
  transform: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.controls .form-control:hover,
.controls .btn:hover {
  transform: none;
}

.controls .form-control:active,
.controls .btn:active {
  transform: none;
}

.sidebar {
  width: 30%;
  max-width: 400px;
  background: #1a1a1a;
  padding: 5rem 1.5rem 1.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  height: 100vh;
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #00ffd5;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.sidebar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 1rem;
}

.sidebar strong {
  color: #00ffd5;
}

.sidebar br {
  margin-bottom: 5px;
  display: block;
  content: "";
}

/* Add bullet point styling */
.sidebar p br + • {
  margin-left: 10px;
  color: #00ffd5;
}

.main {
  width: 70%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5rem;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
}

.canvas-container {
  width: 100%;
  min-width: 900px;
  min-height: 600px;
  position: relative;
  overflow: auto;
  margin: 0 1.5rem;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

canvas {
  background: #1e1e1e;
  border: 1px solid #444;
  display: block;
  margin: 0 auto;
  max-width: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
} 