* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  box-sizing: border-box;
  color: #333;
  padding-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

header .description {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
}

.signature-container {
  width: 100%;
  height: 450px;
  box-sizing: border-box;
  margin: 20px 0;
  background-color: transparent;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: crosshair;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
}
button {
  padding: 10px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
button:hover {
  background-color: #45a049;
}
label {
  font-size: 14px;
  opacity: 0.9;
}
.result {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 4px;
  display: none;
}
.description {
  text-align: center;
  margin: 10px 0 20px;
  color: #666;
}
.features {
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
}
.features h3 {
  margin-top: 0;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  padding-left: 20px;
}
.features ul li{
  width: 33.33%;
  margin-top: 10px;
  opacity: 0.9;
}
textarea {
  width: 100%;
  padding: 10px;
  min-height: 250px;
  line-height: 1.5;
  opacity: 0.8;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
  resize: vertical;
}
#clear {
  background-color: #f44336;
}
#undo {
  background-color: #2196F3;
}
#generateBase64 {
  background-color: #9C27B0;
}
#downloadPNG {
  background-color: #607D8B;
}
#downloadSVG {
  background-color: #795548;
}
