body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h1 {
    margin-top: 0;
    text-align: center;
}

.form-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

label {
    font-weight: bold;
}

select {
    padding: 5px 10px;
    font-size: 14px;
}

/* Toggle styling */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hide the actual checkbox */
.toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Visual switch */
.toggle-switch {
    width: 50px;
    height: 24px;
    border-radius: 12px;
    background: #ccc;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Text spans */
.toggle-text .on-text {
    display: none;
}

/* When checked: change colors + move knob + swap text */
.toggle-input:checked + .toggle-label .toggle-switch {
    background: #4caf50;
}

.toggle-input:checked + .toggle-label .toggle-knob {
    transform: translateX(26px);
}

.toggle-input:checked + .toggle-label .off-text {
    display: none;
}

.toggle-input:checked + .toggle-label .on-text {
    display: inline;
}

/* Textarea styling */
textarea {
    width: 100ch;              /* 100 characters wide (approx) */
    max-width: 100%;
    height: 300px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    white-space: pre;          /* Preserve spacing */
    overflow: auto;            /* Scrollable area */
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    resize: vertical;
}
