/* Elegant Download Button */
.elegant-download-btn {
  display: inline-block;
  background: linear-gradient(90deg, #28a745 0%, #218838 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(40,167,69,0.10);
  margin-top: 18px;
  margin-bottom: 0;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.elegant-download-btn:hover {
  background: linear-gradient(90deg, #218838 0%, #28a745 100%);
  box-shadow: 0 4px 20px rgba(40,167,69,0.16);
  transform: translateY(-2px) scale(1.03);
}
body {
  background: #f4f4f4;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
 
  padding: 24px;
}

h1 {
  text-align: center;
  margin-bottom: 24px;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: center;
}

.canvas-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  width: 600px;
  height: 400px;
  margin: 0 auto 20px auto;
}

#imageCanvas {
  display: block;
  background: #a1a1a1;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#overlay {
  position: absolute;
  border: 2px dashed white;
  outline: 2px solid black;
  background: rgba(33,150,243,0.1);
  cursor: move;
  top: 80px;
  left: 120px;
  width: 200px;
  height: 200px;
  min-width: 40px;
  min-height: 40px;
  box-sizing: border-box;
  z-index: 2;
}

#overlay::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="12" width="8" height="2" fill="%232196f3"/><rect x="12" y="4" width="2" height="8" fill="%232196f3"/></svg>') no-repeat center center;
  cursor: se-resize;
  opacity: 0.7;
}

#croppedResult {
  text-align: center;
  margin-top: 24px;
}
