body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f4f8;
    color: #102a43;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
}

main {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #334e68;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

h1 {
    text-align: center;
}

h3 {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    color: #486581;
}

.editor-container {
    display: grid;
    gap: 2rem;
}

section {
    padding: 1.5rem;
    border: 1px solid #dce5ed;
    border-radius: 8px;
}

.example-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.example-section summary {
    background: #e2e8f0;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #334e68;
    border-bottom: 1px solid #dce5ed;
    transition: background-color 0.2s ease;
    user-select: none;
}

.example-section summary:hover {
    background: #d1d5db;
}

.example-section summary:focus {
    outline: 2px solid #357ded;
    outline-offset: -2px;
}

.example-section[open] summary {
    background: #357ded;
    color: white;
}

.examples {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.5rem;
}

.example {
    background: white;
    border: 1px solid #dce5ed;
    border-radius: 6px;
    padding: 1rem;
    border-left: 4px solid #357ded;
}

.example strong {
    color: #334e68;
    display: block;
    margin-bottom: 0.5rem;
}

.example ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.example li {
    margin-bottom: 0.25rem;
}

.example u {
    background: #fff3cd;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    text-decoration: none;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"], textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #b8cce0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    background-color: #486581;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #334e68;
}

.btn.add-btn {
    width: 100%;
}

.btn.primary-btn {
    background-color: #357ded;
}
.btn.primary-btn:hover {
    background-color: #1c62c6;
}

#questions-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#questions-list li {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.sentence-text {
    flex: 1;
    margin-right: 1rem;
}

.answer {
    background-color: #357ded;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background-color: #c82333;
}

.import-buttons, .export-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.import-buttons .btn, .export-buttons .btn {
    flex: 1;
}

.hidden {
    display: none;
}

#json-output {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .examples {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .import-buttons, .export-buttons {
        flex-direction: column;
    }
    
    #questions-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .remove-btn {
        align-self: flex-end;
    }
}
