/* Content Generation Styles */
.result-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    display: none;
}

.result-content {
    white-space: pre-wrap;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

.result-content h1, .result-content h2, .result-content h3 {
    color: #2E8B57;
    margin-top: 25px;
    margin-bottom: 15px;
}

.result-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #2E8B57;
    padding-bottom: 10px;
}

.result-content h2 {
    font-size: 20px;
    margin-left: 0;
}

.result-content h3 {
    font-size: 18px;
    margin-left: 10px;
}

.result-content ul, .result-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.result-content li {
    margin-bottom: 8px;
}

.result-content strong {
    color: #2E8B57;
}

.result-content blockquote {
    border-left: 4px solid #2E8B57;
    margin: 20px 0;
    padding: 10px 20px;
    background: #f8f9fa;
    font-style: italic;
}

.format-toggle {
    margin: 10px 0;
}

.format-toggle button {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 5px 15px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 3px;
}

.format-toggle button.active {
    background: #2E8B57;
    color: white;
}

/* URL Processing Styles */
.url-processing-indicator {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    display: none;
}

.url-processing-indicator.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.url-found {
    background: #f0f8f4;
    border-left: 4px solid #2E8B57;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 12px;
}

.url-error {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 12px;
    color: #856404;
}

.context-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    max-height: 200px;
    overflow-y: auto;
    font-size: 12px;
    font-family: monospace;
}

.context-stats {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

/* Add to your existing styles */
.workflow-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.mode-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.mode-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.workflow-progress {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.workflow-header {
    text-align: center;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.step.pending {
    background: #f5f5f5;
    color: #999;
}

.step.current {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #1976d2;
}

.step.completed {
    background: #e8f5e8;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.step i {
    font-size: 16px;
}

.checkpoint-review {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #ff9800;
    border-radius: 8px;
    background: #fff3e0;
}

.checkpoint-header h4 {
    margin: 0 0 5px 0;
    color: #f57c00;
}

.checkpoint-content {
    margin: 15px 0;
}

.checkpoint-content textarea {
    width: 100%;
    min-height: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.checkpoint-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-primary, .btn-secondary, .btn-outline {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-secondary {
    background: #ff9800;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

