body {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    margin: 0;
    padding: 0;
}



/* Only apply flex layout to home page */
.home-page body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.header {
    width: 100%;
    border-bottom: 1px solid #eee;
}

.title {
    margin-left: 45px;
    margin-top: 20px;
    margin-bottom: 25px;
    width: 100px;
    font-family: 'Albert Sans', sans-serif;
    background-color: white;
    color: black;
    text-align: left;
    font-size: 9px;
}

h1 {
    font-weight: normal;
    margin: 0;
}

/* Page wrapper */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 70px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Header Section Styles - matching decision-making page */
.header-section {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.header-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    margin-top: 20px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Format Toggle Section */
.format-toggle-section {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.format-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.format-toggle-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.format-toggle {
    display: flex;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.format-toggle input[type="radio"] {
    display: none;
}

.toggle-option {
    padding: 10px 20px;
    cursor: pointer;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.toggle-option:hover {
    background: #e9ecef;
    color: #495057;
}

.format-toggle input[type="radio"]:checked + .toggle-option {
    background: #007bff;
    color: white;
}

/* Text Output Section Styles */
.guideline-text-output-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.text-output-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
}

.text-output-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

.text-output-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    flex: 1;
}

.guideline-textarea {
    width: 100%;
    min-height: 400px;
    height: 60vh;
    padding: 20px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    background-color: #ffffff;
    resize: vertical;
    color: #495057;
    box-sizing: border-box;
}

/* PDF Output Section Styles */
.guideline-pdf-output-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.pdf-output-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
}

.pdf-output-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

.pdf-output-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.guideline-pdf-content {
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    /* border: 1px solid #dee2e6;
    border-radius: 8px; */
    background: #ffffff;
    padding: 30px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.guideline-pdf-content:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.15);
}

.guideline-pdf-content[contenteditable="true"]:hover {
    border-color: #007bff;
}

/* PDF Document Styling */
.pdf-document {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    color: #333;
}

/* Full width styling for PDF generation */
.pdf-document.pdf-generating {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ensure all content uses full width during PDF generation */
.pdf-generating .pdf-section,
.pdf-generating .pdf-subtask,
.pdf-generating .pdf-appendix {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Prevent content overflow during PDF generation */
.pdf-generating .pdf-subtask {
    padding: 15px;
    margin: 20px 0;
    overflow: hidden;
}

.pdf-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
}

.pdf-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdf-note {
    font-style: italic;
    color: #666;
    margin: 0;
    font-size: 14px;
}

.pdf-section {
    margin-bottom: 25px;
}

.pdf-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    border-bottom: 2px solid #006AAA;
    padding-bottom: 5px;
}

.pdf-content {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
}

.pdf-subtask {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #6666;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
}

.pdf-subtask-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.pdf-action {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.pdf-action.acceptable {
    background: #e4f4e8;
    border-left: 4px solid #28a745;
    color: #666666;
}

.pdf-action.misuse {
    background: #fbeaea;;
    border-left: 4px solid #dc3545;
    color: #666666;
}

.pdf-reference {
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

/* PDF Appendix Styling */
.pdf-appendix {
    margin-top: 40px;
    border-top: 3px solid #2c3e50;
    padding-top: 20px;
}

.pdf-appendix-header {
    text-align: center;
    margin-bottom: 30px;
}

.pdf-appendix-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
}

.pdf-appendix-item {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.pdf-appendix-item-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.pdf-appendix-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.pdf-sample-prompt {
    margin-top: 10px;
    padding: 10px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #1565c0;
}

.pdf-output-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.pdf-output-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 140px;
}

.pdf-output-actions .btn-primary {
    background-color: #007bff;
    color: white;
}

.pdf-output-actions .btn-primary:hover {
    background-color: #0056b3;
}

.pdf-output-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.pdf-output-actions .btn-secondary:hover {
    background-color: #545b62;
}

.pdf-output-actions .btn-success {
    background-color: #28a745;
    color: white;
}

.pdf-output-actions .btn-success:hover {
    background-color: #218838;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .format-toggle-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .format-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .toggle-option {
        flex: 1;
        text-align: center;
    }
    
    .guideline-textarea {
        min-height: 350px;
        height: 60vh;
        padding: 15px;
        font-size: 13px;
    }
    
    .guideline-pdf-content {
        padding: 20px;
        font-size: 13px;
    }
    
    .text-output-container,
    .pdf-output-container {
        padding: 15px;
        gap: 12px;
    }
    
    .text-output-actions .btn,
    .pdf-output-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .page-wrapper {
        padding: 15px;
    }
    
    .header-section h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .pdf-title {
        font-size: 20px;
    }
    
    .pdf-section-title {
        font-size: 16px;
    }
}

.guideline-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.15);
    background-color: #fafbfc;
}

.text-output-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.text-output-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 140px;
}

.text-output-actions .btn-primary {
    background-color: #007bff;
    color: white;
}

.text-output-actions .btn-primary:hover {
    background-color: #0056b3;
}

.text-output-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.text-output-actions .btn-secondary:hover {
    background-color: #545b62;
}




































