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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 1rem;
  width: 100%;
  max-width: 500px;
}
@media only screen and (min-width: 426px) {
  .container {
    padding: 2.5rem;
  }
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  color: #333;
  font-size: 28px;
  font-weight: 700;
}

.logo p {
  color: #666;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

select,
input[type='text'],
input[type='url'] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

select:focus,
input[type='text']:focus,
input[type='url']:focus {
  outline: none;
  border-color: #667eea;
}


button {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  display: none;
}

.result.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.result.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.code-snippet {
  position: relative;
  font-size: 0.875rem;
  margin-top: 12px;
}

.code-snippet__actions {
  position: absolute;
  top: 0.75rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
  background: #f8f9fa;
}

.code-snippet pre {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: solid 1px #e1e5e9;
  border-radius: 8px;
  margin: 0;
  overflow-x: auto;
}

.code-snippet code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas,
    'Courier New', monospace;
  font-size: 0.875rem;
  color: #333;
  white-space: pre;
}

.copy-btn {
  background: transparent;
  color: #666;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background: #e9ecef;
  color: #333;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff40;
  border-radius: 50%;
  border-top: 2px solid #ffffff;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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

/* UTM Builder Styles */
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  gap: 8px;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.utm-section {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  transition: all 0.3s ease;
}


@media (max-width: 480px) {
  .utm-section {
    padding: 12px;
  }
}
