/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

.container {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar label {
  font-size: 1rem;
  color: #2c3e50;
}

.toolbar input[type="color"] {
  border: none;
  background: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.toolbar input[type="range"] {
  width: 100px;
  cursor: pointer;
}

.toolbar select {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.toolbar button {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toolbar button:hover {
  background: #1a252f;
}

#drawing-canvas {
  border: 2px solid #2c3e50;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  cursor: crosshair;
}

.draggable-textbox {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: move;
  z-index: 10;
}

.draggable-textbox input {
  border: none;
  outline: none;
  font-size: 1rem;
  width: 100%;
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .toolbar-section {
    width: 100%;
    justify-content: space-between;
  }
}