:root {
  --bg: #f4f6f8;
  --accent: #0b5fff;
  --muted: #6b7280;
  --card: #fff;
  --text: #0f172a;
  --border: #e6e9ef;
  --shadow: 0 6px 18px rgba(12, 20, 30, 0.06);
}

* {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* ========== LAYOUT ========== */
.app {
  max-width: 1100px;
  margin: 28px auto;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.print-line {
  border: 0;
  border-top: 1px solid #000;   /* strong black line */
  margin: 12px 0;
}

.panel {
  flex: 1;
  min-width: 320px;
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* ========== TYPOGRAPHY ========== */
h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

label {
  display: block;
  font-size: 13px;
  margin: 8px 0 6px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  margin: 18px 0 8px;
  font-weight: 600;
  color: #0b1220;
}

/* ========== FORMS & BUTTONS ========== */
input[type=text],
input[type=email],
input[type=tel],
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  min-height: 64px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* ========== COMPONENTS ========== */
.controls {
  padding-right: 6px;
}

.row {
  display: flex;
  gap: 8px;
}

.small {
  flex: 1;
}

.section {
  border: 1px dashed var(--border);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.actions {
  display: grid;
  gap: 8px;
 
  grid-auto-flow: column;
  margin-top: 10px;
}

.preview-wrap {
  padding: 18px;
 
}


.name {
  font-size: 26px;
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.item {
  margin-bottom: 8px;
}

.two-cols {
  display: flex;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  margin: 4px 4px 0 0;
}

/* ========== HEADER & FOOTER ========== */
.site-header {
  background: #1f2937;
  color: #fff;
  padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.site-header nav a {
  color: #fff;
  margin-left: 18px;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: #60a5fa;
}

.site-footer {
  background: #f3f4f6;
  color: #4b5563;
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: #1f2937;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* ========== RESPONSIVE & PRINT ========== */
@media (max-width: 980px) {
  .app {
    flex-direction: column;
  }
  .resume {
    width: 100%;
  }
  .controls .add-btn {
    width: 100%;
  }
}

/* Print styles */
@media print {
  body {
    background: #fff !important;
  }
  .print-line {
    border: 0;
    border-top: 1px solid #000 !important; /* solid, visible */
    -webkit-print-color-adjust: exact;     /* ensures color is preserved in Chrome */
    color-adjust: exact;                   /* Firefox */
  }

  /* Hide header, footer, and form controls */
  .site-header,
  .site-footer,
  .controls,
  .actions,
  h2 {
    display: none !important;
  }

  /* Remove the card look */
  .preview-wrap {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Make resume content use full width */
  #preview {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
    width: 100% !important;
  }

  /* Remove page margins for a full bleed look */
  @page {
    margin-left: 5mm;
    margin-top: 5mm; /* adjust if you want tighter spacing */
  }
}

