/* Frontend styles for the Try-On Modal */
.aivto-btn {
  margin-top: 10px;
  background-color: #f5f5f4 !important;
  color: #1c1917 !important;
  border: 1px solid #e7e5e4 !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aivto-btn:hover {
  background-color: #e7e5e4 !important;
}

/* Modal Overlay */
#aivto-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#aivto-modal {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.aivto-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  font-size: 24px;
  color: #a8a29e;
}

.aivto-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.aivto-modal-header h2 {
  font-size: 1.5rem;
  color: #1c1917;
  margin: 0;
}

.aivto-upload-area {
  border: 2px dashed #e7e5e4;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.aivto-upload-area:hover {
  border-color: #a8a29e;
}

.aivto-preview-container {
  display: none;
  margin-top: 20px;
  text-align: center;
}

.aivto-preview-container img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.aivto-generate-btn {
  width: 100%;
  background: #1c1917;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.aivto-loading {
  display: none;
  text-align: center;
  padding: 40px;
}

.aivto-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1c1917;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
