/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    color: #333;
}

.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: none;
}

.card-header {
    background-color: #f1f8ff;
    border-bottom: 1px solid #e3e6f0;
    padding: 15px 20px;
}

.card-body {
    padding: 25px;
}

.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 8px 20px;
    margin-right: 10px;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-outline-secondary {
    color: #5a5c69;
    border-color: #dce0e6;
}

.btn-outline-secondary:hover {
    background-color: #eaecf4;
    color: #333;
}

/* Progress Bar and Steps */
.progress-container {
    margin: 40px 0;
}

.progress {
    height: 8px;
    margin-bottom: 10px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.step {
    font-size: 14px;
    color: #888;
    position: relative;
    flex: 1;
    text-align: center;
}

.step.active {
    color: #4e73df;
    font-weight: 600;
}

/* Topic list styling */
.list-group-item {
    cursor: pointer;
    transition: all 0.2s;
}

.list-group-item:hover {
    background-color: #f1f8ff;
}

.list-group-item.active {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* Outline editor styling */
#outline-editor {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
}

.outline-section {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.outline-section-title {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.outline-section-wordcount {
    font-size: 0.9em;
    color: #666;
}

.outline-subsection {
    margin: 10px 0 10px 20px;
    padding: 8px;
    border-left: 2px solid #eee;
}

/* Generated content styling */
#generated-content {
    margin-top: 20px;
}

.section-container {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.section-title {
    font-weight: 600;
    font-size: 1.2em;
}

.section-content {
    line-height: 1.8;
}

/* Markdown preview */
#final-paper-preview {
    max-height: 500px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* Paper edit modal */
#paper-sections-edit {
    max-height: 60vh;
    overflow-y: auto;
}

#paper-sections-edit .card {
    margin-bottom: 1rem;
}

#paper-sections-edit .section-content {
    max-height: 200px;
    overflow-y: auto;
}

#paper-sections-edit pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin-bottom: 0;
}

/* Download buttons */
#download-markdown-btn, #download-pdf-btn {
    margin-right: 0.5rem;
}

/* Loading spinner for PDF generation */
.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pdf-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Section edit buttons */
.edit-section-btn {
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .steps-container {
        font-size: 12px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .d-flex {
        flex-direction: column;
    }
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
} 