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

:root {
  --button-primary: rgb(66, 66, 66);
  --button-hover: #7e7e7e;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: black;
  display: flex;
  color: white;
  flex-direction: column;
}

button {
  border: none;
  border-radius: 6px;
}

#container {
  max-width: 1200px;
  width: 100%;
  padding: 10px;
  height: fit-content;
  margin: 0 auto;
}

#interaction {
  max-width: 900px;
  margin: 0 auto;
}

.interaction_login {
  gap: 20px;
  height: 80dvh;
}

#container h2 {
  text-align: center;
}

#welcomeMessage {
  margin-bottom: 20px;
}

#response {
  margin-top: 20px;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
}

#userInteraction {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 10px;
  height: 600px;
}

#creditsDisplay {
  font-weight: bold;
  font-size: 0.8rem;
  height: fit-content;
  width: fit-content;
  padding: 5px;
}



/* Contenedor del spinner */
.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: transparent;
}

/* Círculo giratorio */
.spinner-circle {
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  /* Color de fondo */
  border-top: 5px solid #3498db;
  /* Color del borde giratorio */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  background-color: transparent;
}

/* Animación de rotación */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Opcional: Oscurecer el fondo mientras carga */
.spinner::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fondo semitransparente */
  z-index: -1;
}



header {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: end;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 20px;
  gap: 10px;
}

#imageBtn,
#generateBtn {
  padding: 9px;
  text-transform: capitalize;
  background: var(--button-primary);
  color: #f0f0f0;
  cursor: pointer;
}

#imageBtn:hover,
#generateBtn:hover {
  background: var(--button-hover);

}

#generateBtn:disabled {
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.6;
}

#imagePrompt {
  height: 100px;
  resize: none;
  width: 100%;
}

#hero {
  padding: 40px;
  width: 100%;
}

#hero_title {
  font-size: 2.5rem;
  font-weight: 800;
  padding: 20px 0px;
}

#loginBtn-hero {
  background: white;
  color: black;
  padding: 14px 18px;
  border-radius: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

#loginBtn-hero:hover {
  background-color: black;
  color: white;
  border: 1px solid white;
}

#loginBtn,
#logoutBtn {
  width: fit-content;
  height: fit-content;
  padding: 8px 12px;
  background: var(--button-primary);
  color: white;
  cursor: pointer;
  display: none;
}

#loginBtn:hover,
#logoutBtn:hover {
  background: var(--button-hover);
}

#payBtn {
  padding: 8px 12px;
  background: var(--button-primary);
  color: white;
  font-weight: bold;
  cursor: pointer;
  text-transform: capitalize;
  display: none;
}

#payBtn a {
  text-decoration: none;
  color: black;
}

#payBtn:hover {
  background: var(--button-hover);
}

#resultContainer {
  width: 100%;
  height: 400px;
}

#examples {
  /* background: #000000; */
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 100px 10px;
  margin: 0 auto;
  flex-direction: column;
  text-align: center;
}



/* CLAUDE CODE STYLES */

.header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #333;
  gap: 12px;
}

.header-icon {
  width: 24px;
  height: 24px;
  border: 2px solid #666;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}

.main-content {
  flex: 1;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.input-section {
  margin-bottom: 5px;
}

.input-label {
  color: #999;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.main-input {
  width: 100%;
  background: black;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 16px;
  color: #e0e0e0;
  font-size: 16px;
  min-height: 120px;
  resize: none;
  font-family: inherit;
}

.main-input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.main-input::placeholder {
  color: #666;
}

.skeleton {
  width: 200px;
  height: 30px;
  margin: 10px auto;
  /* margin-bottom: 10px; */
  background: transparent;
  position: relative;
  overflow: hidden;
}

.skeleton.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(138, 138, 138, 0.267),
      transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

#removeImageBtn {
  position: relative;
  top: 35px;
  left: 80px;
  background-color: red;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 2px 4px;
  color: black;
  cursor: pointer
}


.controls-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

a {
  color: black;
  text-decoration: none;
}

.control-button {
  background: var(--button-primary);
  padding: 8px 12px;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-button:hover {
  background: var(--button-hover);
  border-color: #555;
}

.control-button.active {
  background: #4a9eff;
  border-color: #4a9eff;
  color: white;
}

.dropdown-arrow {
  font-size: 12px;
  color: #999;
}

.bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #333;
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #999;
}

.add-button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 24px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.add-button:hover {
  color: #4a9eff;
}

.generate-button {
  background: var(--button-primary);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.generate-button:hover {
  background: linear-gradient(135deg, #5aa5ff, #0077dd);
}

.generate-button:active {
  transform: translateY(0);
}

.type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.type-tab {
  background: var(--button-primary);
  border: 1px solid black;
  padding: 8px 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.type-tab:hover {
  background: var(--button-hover);
  color: #e0e0e0;
}

.type-tab.active {
  background: #7e7e7e;
  color: #e0e0e0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: black;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 0;
  min-width: 120px;
  z-index: 1000;
  display: none;
}

/* #resolutionDropdown {
  display: none;
} */
.dropdown-item {
  padding: 8px 12px;
  color: #e0e0e0;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #3a3a52;
}

.dropdown-container {
  position: relative;
}

.status-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a9eff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}