/* === Base layout === */
body {
    font-family: system-ui, sans-serif;
    background-color: #ffffff;
    color: #222;
    margin: 1rem;
    line-height: 1.6;
}

/* === Typography === */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #027F7F;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Lists === */
ul {
    list-style: disc inside;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

/* === Buttons === */
button {
    background-color: #027F7F;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
}

button:hover {
    background-color: #025f5f;
}

/* === Code Blocks === */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* === Alerts and messages === */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

.alert.info {
    background-color: #cce5ff;
    color: #004085;
}

/* === Layout === */
header,
footer {
    margin-bottom: 2rem;
}

nav a {
    margin-right: 1rem;
}

/* === Custom Classes === */
.step-container {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid #027F7F;
    background-color: #f9f9f9;
}

.followup-response {
    background-color: #fff5f3;
    border: 1px solid #f05a49;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #027F7F;
    outline: none;
    box-shadow: 0 0 3px #027F7F88;
}

.helptext,
small {
    font-size: 0.85rem;
    color: #666666;
    /* gray-ish */
    display: block;
}

label {
    font-weight: 600;
    /* semi-bold */
    color: #333333;
    /* slightly darker for contrast */
    display: block;
}

/* === "copy" button on Draft and Optimized pages === */
/* Simple styling to position the copy button above the text box */
.copy-container {
    position: relative;
    padding-top: 0px;
}

.step-header-wrapper {
    display: flex;
    justify-content: space-between;
    /* Pushes the title left and buttons right */
    align-items: center;
    /* Vertically aligns the title and buttons */
    margin-bottom: 10px;
    /* Adds space between the header/buttons and the content block */
    padding-right: 10px;
    /* Ensures buttons don't touch the edge */
}

/* 2. Step Actions: Wrapper for the buttons */
.step-actions {
    display: flex;
    gap: 8px;
    /* Space between the copy and preview buttons */
    white-space: nowrap;
    /* Prevents buttons from wrapping */
}

.utility-button {
    /* position: absolute;
    top: 0;
    right: 0; */
    color: #000;
    background: #eee;
    border: 1px solid #ccc;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8em;
    border-radius: 4px;
    line-height: 1.2;
    /* Ensures vertical alignment is clean */
    height: fit-content;
    /* Helps align with H3 */
}

.copy-button {
    right: 0;
}

.preview-button {
    right: 80px;
}

/* Ensure the content block flows correctly below the button */
.content-block {
    margin-top: 5px;
}

/* === End of the block === */