/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fa;
    color: #2a2d33;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    padding: 40px;
}

/* --- Layout Wrapper --- */
.container {
    max-width: 760px;
    margin: auto;
    background: #ffffff;
    padding: 35px 45px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* --- Headings --- */
h1, h2, h3 {
    margin-bottom: 18px;
    font-weight: 600;
    color: #1e1f22;
}

h2 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

/* --- Form Elements --- */
input[type="text"],
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid #d0d4db;
    border-radius: 6px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #3b82f6;
    outline: none;
    background: #ffffff;
}

/* --- Textarea sizing --- */
textarea {
    min-height: 200px;
    resize: vertical;
}

/* --- Buttons --- */
button {
    background: #2563eb;
    color: #ffffff;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    margin-top: 15px;
}

button:hover {
    background: #1e4fc9;
}

button:active {
    transform: scale(0.98);
}

/* Secondary link-style buttons */
.btn-link {
    background: none;
    border: none;
    color: #2563eb;
    padding: 0;
    font-size: 15px;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

/* --- Lists --- */
ul {
    margin: 15px 0 25px 20px;
}

li {
    margin-bottom: 6px;
}

/* --- Preformatted JSON preview --- */
pre {
    background: #f0f2f5;
    padding: 18px;
    border-radius: 6px;
    border: 1px solid #e3e5e8;
    overflow-x: auto;
    font-size: 14px;
}

/* --- Footer/links --- */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Small helper text --- */
.note {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}
