/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #1f2937;
  --muted: #667085;
  --primary: #2563eb;
  --success: #15803d;
  --success-soft: #ecfdf3;
  --border: #d8e1eb;
  --code-bg: #0f172a;
  --code-text: #e5ecf4;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1000px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1rem 3rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 240px);
}

main {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: #0f172a;
}

h2 {
  margin-top: 0;
  color: #12315f;
  border-bottom: 3px solid #dbeafe;
  padding-bottom: 0.75rem;
}

p {
  margin-top: 0;
}

ul {
  padding-left: 1.3rem;
}

a {
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 700;
  margin-bottom: 1rem;
}

.note {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

pre {
  margin: 1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
}

code {
  font-family: "Courier New", Courier, monospace;
}

pre code {
  white-space: pre;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #12315f;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eff6ff;
}

.form-preview {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

fieldset {
  border: 1px solid #bfd4ea;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

legend {
  font-weight: 700;
  color: #12315f;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input,
textarea,
select,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #c7d2e0;
  border-radius: 10px;
  background: #fff;
}

button {
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  body {
    padding: 1rem 0.75rem 2rem;
  }

  section {
    padding: 1.25rem;
  }
}
