body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
}

.container {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    transition: all 0.3s ease;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

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

h1 {
    text-align: center;
    color: #1c1e21;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.step {
    animation: fadeIn 0.5s ease-in-out;
}

.hidden {
    display: none;
}

/* Step 1 Styles */
#step1 p {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
}

fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

legend {
    font-weight: 600;
    color: #1877f2;
    padding: 0 10px;
}

.task-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.checkbox-item label {
    display: block;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item label:hover {
    background-color: #f0f2f5;
    border-color: #ccc;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
}

.custom-tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-tasks input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

.next-button, .diagnose-button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.next-button:hover, .diagnose-button:hover {
    background-color: #166fe5;
}

/* Step 2 Styles */
.task-analysis-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.task-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1877f2;
}

.analysis-question {
    margin-bottom: 15px;
}

.analysis-question legend {
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0;
    border: none;
}

.analysis-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Step 3 Styles */
#results-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

#step3 .button-container {
    margin-bottom: 20px;
}

#copy-button {
    background-color: #42b72a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 10px;
}

#copy-button:hover {
    background-color: #36a420;
}

.secondary-button {
    background-color: #e4e6eb;
    color: #4b4f56;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.secondary-button:hover {
    background-color: #dcdde1;
}

pre {
    background-color: #282c34;
    color: #abb2bf;
    border-radius: 6px;
    padding: 1.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
