/* Font declarations */
@font-face {
  font-family: Overpass;
  src: url('/fonts/overpass-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: Overpass;
  src: url('/fonts/overpass-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: Akkurat;
  src: url('/fonts/akkurat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: Akkurat LL;
  src: url('/fonts/akkurat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: Interstate Condensed;
  src: url('/fonts/Interstate-Condensed-Black.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: fallback;
}

/* Reset styles - apply box-sizing globally but don't reset margin/padding */
* {
  box-sizing: border-box;
}

/* Reset only for body and html */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Ensure configurator container has its own reset */
#configuratorContainer {
  all: initial;
  display: block;
  width: 100%;
  height: 100%;
}

.container {
  max-width: 420px;
  width: 100%;
  background: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

.intro {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

/* Ensure configurator container has its own reset */
#configuratorContainer {
  all: initial;
  display: block;
  width: 100%;
  height: 100%;
}

.container {
  max-width: 600px;
  width: 100%;
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 700;
}

.intro {
  text-align: center;
  color: #666;
  margin-bottom: 32px;
  font-size: 1rem;
}

/* Ensure configurator container has its own reset */
#configuratorContainer {
  all: initial;
  display: block;
  width: 100%;
  height: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.intro {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Scope button styles ONLY to specific demo page elements */
.launch-button,
.close-button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  margin-top: 20px;
}

.launch-button:hover {
  background-color: #0052a3;
}

.launch-button:active {
  transform: scale(0.98);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: white;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  width: auto;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

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

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

.loading-text {
  color: #666;
  font-size: 18px;
}

.info-section {
  border: none;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
}

.code-block {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.code-block code {
  color: #d4d4d4;
}

.configurator-container {
  width: 100%;
  height: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 13px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.help-text {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
