/* Overall page wrapper */
.misc-tasks {
    padding: 10px 0;
}

/* Two-column layout: task list on left, form/output on right */
.misc-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Align headings on same vertical line */
}

/* Left column: task list */
.misc-task-list {
    width: 220px;
}

.misc-task-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Task list items styled as compact warm, tactile buttons */
.misc-task-item {
    padding: 6px 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;

    background: linear-gradient(#f7f7f7, #eaeaea);
    border: 1px solid #cfcfcf;

    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.misc-task-item:hover {
    background: linear-gradient(#ffffff, #f0f0f0);
    border-color: #b5b5b5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

.misc-task-item.active {
    background: linear-gradient(#dce9ff, #c7dbff);
    border-color: #8bb4ff;
    box-shadow: 0 0 0 2px rgba(139,180,255,0.30);
}

/* Right column: form + output */
.misc-task-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form container */
.misc-form-container {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    background: #fdfdfd;
    margin-bottom: 0;
}

/* Two-column form layout */
.misc-form-flex {
    display: flex;
    gap: 20px;
}

/* Left column of form */
.misc-form-left {
    flex: 1;
    min-width: 0; /* allows inputs to stretch fully */
}

/* Right column of form (html textarea) */
.misc-form-right {
    flex: 1;
    min-width: 0; /* prevents right column from forcing left column to shrink */
}

/* Individual field rows */
.misc-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.misc-field label {
    width: 140px;
    font-weight: 600;
    margin-right: 10px;
}

.misc-field input[type="text"],
.misc-field input[type="date"],
.misc-field textarea {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Checkbox alignment */
.misc-field-checkbox {
    align-items: center;
}

.misc-field-checkbox label {
    width: 140px;
}

/* Form buttons */
.misc-form-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Output area */
.misc-output-container {
    margin-top: 0;
}

.misc-output {
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px;
    min-height: 150px;
    max-height: none;   /* allow full vertical expansion */
    flex-grow: 1;       /* fill remaining space */
    overflow-y: auto;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
}
