/* T-Shirt Designer Styles */

.shirt-designer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.designer-workspace {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shirt-mockup-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#tshirtCanvas {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.design-tools {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #FFD700;
}

.tool-btn {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.tool-btn:active {
  transform: translateY(0);
}

.tool-btn i {
  font-size: 1rem;
}

.shirt-config {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.color-picker-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#shirtColorPicker {
  width: 100%;
  height: 50px;
  border: 2px solid #FFD700;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

#shirtColorPicker::-webkit-color-swatch {
  border-radius: 6px;
  border: none;
}

#shirtColorPicker::-moz-color-swatch {
  border-radius: 6px;
  border: none;
}

.color-presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.color-preset {
  width: 100%;
  height: 40px;
  border: 2px solid #FFD700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-preset:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (min-width: 768px) {
  .shirt-designer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  .designer-workspace {
    grid-column: 1;
  }
  
  .shirt-config {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .shirt-mockup-container {
    padding: 1rem;
    min-height: 400px;
  }
  
  #tshirtCanvas {
    max-width: 100%;
    height: auto;
  }
  
  .design-tools {
    padding: 0.75rem;
  }
  
  .tool-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .color-presets {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Form elements styling for shirt config */
.shirt-config select,
.shirt-config input[type="number"],
.shirt-config textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #FFD700;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.shirt-config select:focus,
.shirt-config input[type="number"]:focus,
.shirt-config textarea:focus {
  outline: none;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.shirt-config textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

.shirt-config select option {
  background-color: #1a1a1a;
  color: #fff;
}

/* Canvas interaction hints */
.canvas-hint {
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Loading state for canvas */
.canvas-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  color: #FFD700;
  font-size: 1.1rem;
}

.canvas-loading i {
  margin-right: 0.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}