/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #fff;
}

/* HEADER */
.header {
  text-align: center;
  padding: 20px 10px;
}

.header h1 {
  font-size: 2rem;
}

.header p {
  font-size: 0.9rem;
  color: #aaa;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 10px;
}

/* GRID */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* SECTIONS */
section {
  background: #181818;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* CARDS */
.card-section {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card-config {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* CANVAS */
canvas {
  width: 100%;
  max-width: 200px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* CONTROLES */
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}

.controls label {
  color: #aaa;
}

/* BACK SECTION */
.back-section {
  text-align: center;
}

.back-section h2 {
  margin-bottom: 10px;
}

/* HELP */
.editor-help {
  font-size: 12px;
  color: #bbb;
  /* margin-bottom: 10px; */
  line-height: 1.4;
  margin: 20px 0px;
}

/* PANEL */
.editor-panel {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #121212;
  padding: 12px;
  border-radius: 10px;
  align-items: center;
}

/* GROUP */
.panel-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.panel-group label {
  font-size: 0.8rem;
  color: #aaa;
}

/* UPLOAD */
.btn-upload {
  background: linear-gradient(135deg, #2962ff, #448aff);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.25s;
}

.btn-upload:hover {
  transform: translateY(-2px);
}

/* LAYERS */
.layers {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-item {
  position: relative;
  padding: 8px;
  background: #222;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.active-layer {
  border: 2px solid #00ff88;
}

.delete-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: #ff3b3b;
  color: white;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
  cursor: pointer;
}

/* DOWNLOAD */
.download-section {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.download-card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: 0.2s;
}

.download-card:hover {
  transform: translateY(-5px);
}

.download-card h3 {
  margin-bottom: 10px;
}

.download-card .desc {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.download-card ul {
  padding-left: 18px;
  margin-bottom: 20px;
}

.download-card li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* BUTTON */
.btn-primary {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #4cafef;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  background: #3a9edb;
}

/* RESPONSIVO */
@media (max-width: 800px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  canvas {
    max-width: 160px;
  }

  .controls {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .download-card {
    width: 100%;
  }
}