/* Moving Box Label Maker – Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2c3e50;
  --primary-light: #3d566e;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --bg: #f9f6f0;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --border: #d5d8dc;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --radius: 12px;
  --font-main: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--primary);
  color: white;
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Sections */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

.intro p {
  font-size: 1.1rem;
  max-width: 700px;
  color: var(--text-light);
}

/* Form */
.label-form {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.form-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group select,
.form-group input {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-primary {
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  align-self: flex-end;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Label Preview */
.label-preview {
  animation: fadeIn 0.3s ease;
}

.label-preview.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.label-card {
  background: white;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 400px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.label-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

.label-icon {
  font-size: 2rem;
}

.label-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.label-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-field {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.label-field-label {
  font-weight: 600;
  color: var(--primary);
  min-width: 70px;
}

.label-field-value {
  font-size: 1.1rem;
  font-weight: 500;
}

.label-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.qr-caption {
  font-size: 0.8rem;
  color: var(--text-light);
}

.label-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary,
.btn-outline {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Tips */
.tips {
  background: white;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tip-card {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.tip-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.tip-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: white;
  padding: 24px 0;
  margin-top: auto;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.legal-links a {
  color: #ddd;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header h1 {
    font-size: 1.8rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  section {
    padding: 40px 0;
  }
  .label-form {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary {
    width: 100%;
  }
  .label-card {
    max-width: 100%;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  .label-preview,
  .label-preview * {
    visibility: visible;
  }
  .label-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .label-actions {
    display: none;
  }
  .label-card {
    border: 2px solid black;
    box-shadow: none;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.site-utility-links {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.9rem;
}

.site-utility-links a {
  color: inherit;
  opacity: 0.75;
}
