body {
    font-family: sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    box-sizing: border-box;
}

textarea {
    height: 150px;
    margin-top: 10px;
    resize: vertical;
    font-family: monospace;
    white-space: pre-wrap;
}

button {
    margin-top: 10px;
    margin-right: 10px;
    padding: 8px 16px;
    font-size: 15px;
    cursor: pointer;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.date-inputs input {
    width: 60px;
    padding: 6px;
    text-align: center;
}

.shift-option {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.shift-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    white-space: nowrap;
}

.shift-fields {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 8px;
    background: #f9f9f9;
}

hr {
    margin: 30px 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .container {
        margin: 15px;
        padding: 15px;
        box-shadow: none;
    }

    .date-inputs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .date-inputs input {
        width: calc(33% - 6px);
        /* Adjust width for better fit on small screens */
    }

    .shift-option {
        /* 在手机上，让这些选项垂直堆叠，但每个选项内部是行布局 */
        flex-direction: column;
        gap: 10px;
        /* 增加选项之间的垂直间距 */
    }

    .shift-label {
        /* 使复选框和文本在同一行 */
        flex-direction: row;
        align-items: center;
        /* 垂直居中对齐 */
        justify-content: flex-start;
        /* 将内容靠左对齐 */
        gap: 8px;
        /* 增加复选框和文本之间的间距 */
        /* 移除之前设置的宽度，让它自然流动 */
        width: auto;
    }

    .shift-label input[type="checkbox"] {
        /* 确保复选框本身不会有额外的边距影响对齐 */
        margin-top: 0;
        margin-bottom: 0;
        width: auto;
        /* 让复选框宽度自适应 */
    }

    button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        /* Add some space between stacked buttons */
    }

    textarea {
        margin-bottom: 10px;
        /* Add some space after textareas */
    }
}