:root {
    --primary-color: #0f62fe;
    --primary-hover: #0353e9;
    --secondary-color: #6f6f6f;
    --success-color: #24a148;
    --background: #f4f4f4;
    --card-background: #ffffff;
    --text-primary: #161616;
    --text-secondary: #525252;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 40px 0 20px;
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-img {
    display: block;
    width: 120px;
    height: auto;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 0 40px;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.section.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--card-background);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.help-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Form Elements */
textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    margin-bottom: 20px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #525252;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Questions Section */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.progress-info {
    color: var(--text-secondary);
    font-weight: 500;
}

.question-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.question-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.answer-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.answer-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.suggested-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.suggested-answer {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.suggested-answer:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.suggested-answer.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.question-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Processing Section */
.processing-container {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#processing-status {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    width: 0%;
}

.processing-steps {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.processing-step {
    padding: 12px 20px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.processing-step.completed {
    background: #e8f5e9;
}

.processing-step.active {
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
}

.step-icon {
    font-size: 1.2rem;
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.results-actions {
    display: flex;
    gap: 12px;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Markdown Content */
.markdown-body {
    padding: 30px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    max-height: 70vh;
    overflow-y: auto;
}

.markdown-body h1 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.markdown-body h2 {
    margin-top: 30px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.markdown-body code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
}

.markdown-body pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        width: 96px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .card {
        padding: 24px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Made with Bob */