body {
    font-family: Arial, sans-serif;
    margin-top: 20px;
}

/* Limit overall width for a cleaner look */
.container {
    max-width: 800px;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 200px;
    margin-right: 20px;
}

.topics-list {
    padding-left: 20px;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

h2 {
    color: #333;
}

form input, form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

a {
    color: #2196F3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    max-width: 500px;
    width: 80%;
    overflow-wrap: anywhere;
}


.step-transition {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-transition.show {
    opacity: 1;
}

/* Topic selection styling */
.modal-content li.topic-option {
    cursor: pointer;
    padding: 4px 0;
}

.modal-content li.topic-option:hover {
    background-color: #f8f9fa;
}

.modal-content li.topic-option.selected {
    background-color: #e0f0ff;
    font-weight: bold;
}
