/* App-specific styles for Wiggly Border Generator */
/* Base component styles are provided by modest-ui */

body {
  font-family: var(--mdst-font-sans);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--mdst-space-xl) var(--mdst-space-md);
}

header {
  margin-bottom: var(--mdst-space-xl);
}

header h1 {
  margin-bottom: var(--mdst-space-md);
}

header .description {
  line-height: 1.6;
}

.preview-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--mdst-space-xl) var(--mdst-space-md);
  background-color: var(--mdst-color-subtle);
  margin-bottom: var(--mdst-space-xl);
  border-radius: var(--mdst-radius);
  min-height: 400px;
}

.preview-box {
  position: relative;
  width: 400px;
  height: 250px;
}

.preview-box.content-based {
  width: auto;
  height: auto;
  max-width: 100%;
}

.wiggly-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.preview-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--mdst-space-lg) var(--mdst-space-md);
}

.preview-content h2 {
  margin-bottom: var(--mdst-space-sm);
}

.preview-content:focus {
  outline: none;
}

.controls-section {
  display: flex;
  flex-direction: column;
  gap: var(--mdst-space-md);
}

.control-group label:not(.mdst-checkbox-label) {
  display: block;
  margin-bottom: var(--mdst-space-xs);
}

.control-group.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Export section */
.export-details {
  margin-top: var(--mdst-space-md);
}

.export-buttons {
  display: flex;
  gap: var(--mdst-space-sm);
  margin-bottom: var(--mdst-space-md);
}

.export-content .mdst-pre {
  max-height: 250px;
}

/* Footer */
footer {
  text-align: right;
  font-family: var(--mdst-font-mono);
  width: 100%;
  border-top: var(--mdst-border-width) solid var(--mdst-color-subtle);
  margin-top: var(--mdst-space-xl);
  font-size: var(--mdst-text-xs);
  padding: var(--mdst-space-md);
}
