:root {
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  --color-background: #0D1117; 
  --color-surface: #161B22;   
  --color-border: #30363d;    
  --color-text-primary: #EAEAEA;
  --color-text-secondary: #8b949e; 

  --color-primary: #DB2777;     
  --color-primary-hover: #BE185D;
  --color-primary-glow: rgba(220, 38, 127, 0.3);

  --color-secondary: #374151;    
  --color-secondary-hover: #4B5563;

  --border-radius-md: 0.5rem; 
  --border-radius-lg: 0.75rem; 
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
  --shadow-pink: 0 4px 14px 0 var(--color-primary-glow);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.CodeMirror {
            height: 100%;
            font-size: 13px;
            font-family: 'Roboto Mono', monospace;
        }
        #creator-code-container {
            padding-top: 3.5rem; 
        }

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-background);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
  border: 2px solid var(--color-background);
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  user-select: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.btn:active {
    transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-primary);
  padding: 0.5rem 1rem;
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-secondary-hover);
}

.input-group {
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.input-field {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 0.65rem 1rem;
  color: var(--color-text-primary);
  width: 100%;
  transition: all 0.2s ease-in-out;
  outline: none;
}
.input-field::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.8;
}
.input-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}


.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover, 
.input-field:-webkit-autofill:focus, 
.input-field:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--color-background) inset !important;
  -webkit-text-fill-color: var(--color-text-primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}


.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page {
  display: none;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.page.active {
  display: flex;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}