/* Design Page Layout */
.design-page {
  padding: 40px 0;
  padding-top: 112px;
  min-height: calc(100vh - 100px);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Design page header override */
body:has(.design-page) .header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.design-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .design-layout {
    grid-template-columns: 1fr;
  }
}

/* Panel Styles */
.panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

/* Upload Area */
.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.upload-area:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.upload-area.has-file {
  border-style: solid;
  border-color: var(--success);
}

.upload-area input {
  display: none;
}

.upload-area strong {
  color: white;
}

.upload-area p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  font-size: 0.875rem;
}

/* Preview */
.preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  margin-top: 12px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: white;
}

.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

/* Result Area */
.result-area {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-placeholder {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.result-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* Progress */
.progress-container {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s;
}

.progress-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-full {
  width: 100%;
}

/* Showcase Section */
.showcase-section {
  padding: 40px 0;
  padding-top: 100px;
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
}

.showcase-section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.showcase-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.showcase-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.showcase-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.showcase-before,
.showcase-after {
  position: relative;
}

.showcase-before img,
.showcase-after img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.img-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.showcase-prompt {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}
