:root {
  --notion-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --notion-bg: #f0f4f8;
  --card-bg: #ffffff;
  --input-bg: #f8fafc;
  --text-primary: #334155;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --border-radius: 12px;
  --spacing-unit: 8px;
}

body {
  font-family: var(--notion-font);
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  padding: 20px;
  background: var(--notion-bg);
  min-height: 100vh;
}

.container {
  max-width: 800px;
  padding: calc(var(--spacing-unit) * 2);
  margin: var(--spacing-unit) auto;
  width: 100%;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.description {
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto calc(var(--spacing-unit) * 2);
  padding: 0 calc(var(--spacing-unit));
}

.description p {
  margin: 0;
  display: inline;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.input-group {
  padding: calc(var(--spacing-unit) * 2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  margin-bottom: var(--spacing-unit);
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.input-group:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
  transform: translateY(-1px);
}

input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  transition: all 0.2s ease;
  margin: 4px 0;
  box-sizing: border-box;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  transition: all 0.2s ease;
  margin: 4px 0;
  box-sizing: border-box;
}

input[type="text"]:hover,
input[type="password"]:hover {
  background: var(--input-bg);
  border-color: var(--border-dark);
}

input[type="text"]:focus,
input[type="password"]:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

#lensId,
#groupId,
#apiToken,
#vercelToken,
#projectName {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}

.help-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: calc(var(--spacing-unit) * 0.5) 0;
  width: 100%;
}

#deployButton {
  width: 100%;
  padding: calc(var(--spacing-unit) * 2);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

#deployButton:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#deployButton:disabled {
  background: var(--text-tertiary);
  opacity: 0.7;
  cursor: not-allowed;
}

.privacy-note,
.security-warning {
  padding: calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius);
  margin: var(--spacing-unit) 0;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacing-unit));
  max-width: 100%;
  box-sizing: border-box;
}

.privacy-note {
  background: #f0fdf9;
  border: 1px solid #ccfbef;
}

.privacy-note::before {
  content: "🔒";
  font-size: 1.25rem;
  flex-shrink: 0;
}

.privacy-note p {
  color: #065f46;
}

.security-warning {
  background: #fff7ed;
  border: 1px solid #ffedd5;
}

.security-warning::before {
  content: "⚠️";
  font-size: 1.25rem;
  flex-shrink: 0;
}

.security-warning p {
  color: #92400e;
}

.security-warning a {
  color: #ea580c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-all;
}

.security-warning a:hover {
  color: #c2410c;
  text-decoration: underline;
}

.privacy-note p,
.security-warning p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

#platformInstructions {
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 2);
  margin: var(--spacing-unit) 0;
  position: relative;
  transition: all 0.2s ease;
}

#platformInstructions h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-unit);
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
}

#platformInstructions h4::before {
  content: "⚡";
  font-size: 1.25rem;
}

#platformInstructions ol {
  margin: 0;
  padding-left: calc(var(--spacing-unit) * 3);
}

#platformInstructions li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

#platformInstructions a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#platformInstructions a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Repository section styling */
.repo-section {
  margin: calc(var(--spacing-unit) * 2) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.repo-info {
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--text-secondary);
  font-size: 1.125rem;
  text-align: center;
}

.repo-display {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 3);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: calc(var(--border-radius) - 2px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

.repo-display img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.repo-display a {
  color: #6366f1;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.repo-display:hover {
  border-color: var(--border-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.repo-display a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Creator credit styling */
.creator-credit {
  text-align: center;
  margin: calc(var(--spacing-unit) * 2) 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.creator-credit p {
  margin: 0;
}

.creator-credit a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.creator-credit a:hover {
  color: #2563eb;
}

.creator-credit span {
  display: inline-block;
  color: #ef4444;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.8;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--spacing-unit) 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Add these styles for the deployment status */
.status-container {
  width: 100%;
  padding: calc(var(--spacing-unit) * 3);
  margin-top: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
  line-height: 1.6;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.status-success {
  background: #f0fdf9;
  border: 1px solid #ccfbef;
  color: #065f46;
}

.status-success a {
  display: block;
  margin-top: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 2);
  background: #ffffff;
  border: 1px solid #a7f3d0;
  border-radius: calc(var(--border-radius) - 2px);
  color: #059669;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
  text-align: center;
  transition: all 0.2s ease;
  word-break: break-all;
}

.status-success a:hover {
  background: #ecfdf5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.status-pending {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit));
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f6ad55;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

/* Update h3 margins in input groups */
.input-group h3 {
  margin: 0 0 var(--spacing-unit);
}

.input-warning {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
  transition: all 0.2s ease;
}

.deploy-note {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 8px;
  opacity: 0.8;
}

