/* Pixel Art Specific Styles */

.layout-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.upload-section {
  width: 300px;
  flex-shrink: 0;
  padding: 1.5rem;
}

.upload-area {
  border: 2px dashed rgba(41, 255, 137, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
  border-color: rgba(41, 255, 137, 0.6);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.upload-area.dragover {
  border-color: #29FF89;
  background: rgba(41, 255, 137, 0.1);
  transform: scale(1.02);
}

.upload-content svg {
  color: #29FF89;
  margin-bottom: 1rem;
}

.upload-content h3 {
  color: #29FF89;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.upload-content p {
  opacity: 0.7;
  font-size: 0.85rem;
  margin: 0;
}

.image-preview {
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  image-rendering: auto;
}

.image-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.image-info p {
  margin: 0 0 1rem 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.clear-btn {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
}

.pixel-art-container {
  flex-grow: 1;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-art {
  display: grid;
  gap: 0;
  width: fit-content;
  height: fit-content;
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.pixel-art-placeholder {
  text-align: center;
  opacity: 0.6;
  padding: 2rem;
}

.pixel-art-placeholder p {
  font-size: 1.1rem;
  margin: 0;
  color: #666;
}

.pixel-square {
  position: relative;
  overflow: hidden;
}

.pixel-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.pixel-square .base-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.pixel-square .glass-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0.7;
}

/* Processing indicator */
.processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #29FF89;
}

.processing .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(41, 255, 137, 0.2);
  border-top: 3px solid #29FF89;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing p {
  margin: 0;
  font-weight: 600;
  opacity: 0.9;
}

/* Controls adjustments */
.glass-overlay-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
}

.glass-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #29FF89;
}

/* Button states */
.controls button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.controls button:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Mobile responsiveness */
@media (max-width: 800px) {
  .layout-container {
    flex-direction: column;
    align-items: center;
  }
  
  .upload-section {
    width: 100%;
    max-width: 400px;
  }
  
  .pixel-art-container {
    width: 100%;
    min-height: 300px;
  }
  
  .controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  
  .button-group button {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .upload-area {
    padding: 1.5rem 1rem;
  }
  
  .upload-content h3 {
    font-size: 1rem;
  }
  
  .upload-content p {
    font-size: 0.8rem;
  }
}
/* Dropdown button styles */
.dropdown-button-container {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background: linear-gradient(135deg, #29FF89, #22D376);
  border: none;
  color: #0A0A0A;
  padding: 0.8rem 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(41, 255, 137, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.dropdown-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 255, 137, 0.4);
  background: linear-gradient(135deg, #32FF8B, #25D678);
}

.dropdown-button.dropdown-hover {
  background: linear-gradient(135deg, #25D678, #1FC46F);
}

.dropdown-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dropdown-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.dropdown-button:hover .dropdown-arrow {
  transform: scale(1.1);
}

/* Visual separator between main button and dropdown area */
.dropdown-button::after {
  content: '';
  position: absolute;
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

.dropdown-button:hover::after {
  opacity: 0.4;
}

.dropdown-menu-button {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(16, 16, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  margin-top: 0.5rem;
}

.dropdown-menu-button.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-button button {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu-button button:last-child {
  border-bottom: none;
}

.dropdown-menu-button button:hover {
  background: rgba(41, 255, 137, 0.1);
  color: #29FF89;
  padding-left: 1.2rem;
}


/* Progress bar styles - add to existing pixelArt.css */

.progress-container {
  width: 200px;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(41, 255, 137, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #29FF89, #22D376);
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(41, 255, 137, 0.4);
}