/* Decision Making Page Styles */

/* Validation Error Styles */
.validation-error {
    border: 2px solid #dc3545 !important;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background-color: #fff5f5 !important;
    position: relative;
}

.validation-error::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    pointer-events: none;
    animation: validationPulse 2s ease-in-out infinite;
}

@keyframes validationPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.validation-error h2,
.validation-error h3 {
    color: #dc3545;
}



/* Stance-based conditional messages */
.prohibited-message, .allowed-message {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.prohibited-message {
    border-color: #dc3545;
    background: #f8d7da;
}

.prohibited-message p {
    margin: 0 0 10px 0;
    color: #721c24;
    font-size: 16px;
    line-height: 1.5;
}

.prohibited-message p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    color: #856404;
}

.allowed-message {
    border-color: #28a745;
    background: #d4edda;
}

.allowed-message p {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 16px;
    line-height: 1.5;
}

.allowed-message p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    color: #0c5460;
}

.prohibited-message strong, .allowed-message strong {
    font-weight: 700;
}

/* Decision-specific page wrapper styling */
.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    min-width: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.content-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: auto; /* Allow horizontal scrolling when needed */
}

.header-section {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    position: relative;
}

.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;
}

/* Generate button section */
.generate-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.generate-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    background-color: #007bff;
    border: none;
    color: white;
}

.generate-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.generate-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

/* Apply button section */
.apply-section {
    text-align: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.btn-apply {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.apply-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

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

.guideline-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

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

.guideline-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #b4b4b4;
}

.guideline-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.stance-content, .disclosure-content, .academic-integrity-content, .approved-tools-content, .data-protection-content {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.stance-display {
    margin-bottom: 20px;
    font-size: 16px;
}

.rationale-display {
    margin-bottom: 10px;
}

.rationale-display strong {
    color: #333;
}

/* Appropriate uses preview styles */
.appropriate-uses-content {
    font-size: 14px;
    line-height: 1.5;
}

.preview-subtask {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #28a745;
}

.preview-subtask:last-child {
    margin-bottom: 0;
}

.preview-subtask h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.preview-learning-objective {
    margin-bottom: 12px;
    font-size: 13px;
}

.preview-learning-objective strong {
    color: #333;
}

.preview-genai-effects {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-help, .preview-hinder {
    font-size: 13px;
}

.preview-help strong {
    color: #155724;
}

.preview-hinder strong {
    color: #721c24;
}

.preview-help ul, .preview-hinder ul {
    margin: 5px 0 0 0;
    padding-left: 18px;
}

.preview-help li, .preview-hinder li {
    margin-bottom: 3px;
}

.preview-genai-guidelines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-allowed {
    font-size: 13px;
    background: #f8fff8;
    border-left: 4px solid #28a745;
    padding: 10px;
    border-radius: 4px;
}

.preview-not-allowed {
    font-size: 13px;
    background: #fff8f8;
    border-left: 4px solid #dc3545;
    padding: 10px;
    border-radius: 4px;
}

.preview-allowed strong {
    color: #155724;
}

.preview-not-allowed strong {
    color: #721c24;
}

.preview-allowed ul, .preview-not-allowed ul {
    margin: 5px 0 0 0;
    padding-left: 18px;
}

.preview-allowed li, .preview-not-allowed li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.preview-rationale {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 4px solid rgb(0, 106, 170);
    border-radius: 4px;
}

.preview-rationale strong {
    color: #495057;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.preview-no-guidelines {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
}

.preview-no-guidelines p {
    color: #666;
    font-style: italic;
    margin: 0;
}

.no-data {
    color: #666666;
    margin: 20px 0;
}

/* Responsive design for single-column layout */
@media (max-width: 1200px) {
    .single-column-layout {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .single-column-layout {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .form-scroll-container {
        padding: 0 5px;
    }
    
    .generate-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .generate-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .generate-description {
        font-size: 13px;
        max-width: 100%;
    }
}

/* Responsive design for two-column layout */
@media (max-width: 1200px) {
    
    .form-scroll-container,
    .guideline-scroll-container {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .guideline-preview {
        padding: 20px;
    }
    
    .guideline-section {
        padding: 15px;
    }
    
    .apply-section {
        padding: 15px;
    }
    
    .btn-apply {
        width: 100%;
        max-width: 300px;
    }
}

/* Decision-specific form container styling */
/* .form-container {
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    width: 100%;
} */

/* Guideline Preview Container - Gray background with green border */
.guideline-preview-container {
    align-items: center;
    background: rgb(242, 242, 242);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border: 2px solid #28a745;
}

/* Extracted information display */
.extracted-info-container {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e9ecef;
}

.extracted-info-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid rgb(0, 106, 170);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.info-subsection {
    margin-bottom: 15px;
}

.info-subsection:last-child {
    margin-bottom: 0;
}

.info-subsection-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.info-section-content {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.info-section-content:empty::before {
    content: "No information available";
    color: #999;
    font-style: italic;
}

.info-section-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-section-content li {
    margin-bottom: 5px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.section-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Radio group styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    position: relative;
    flex-direction: row;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    padding: 12px;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: rgb(0, 106, 170);
    background-color: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background-color: rgb(0, 106, 170);
    border-color: rgb(0, 106, 170);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: rgb(0, 106, 170);
    background-color: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.radio-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.genai-stance-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 15px;
}

.genai-stance-option-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 15px;
}

.option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.option-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    margin-top: 0;
}

.source-badge {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
}


.source-badge:hover::before {
    opacity: 1;
}

.source-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.source-badge:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.source-badge::after {
    content: "Click to view source";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.source-badge:hover::after {
    opacity: 1;
}

.source-badge.source-institution {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.source-badge.source-institution:hover {
    background-color: #bbdefb;
    border-color: #90caf9;
}

.source-badge.source-course {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.source-badge.source-course:hover {
    background-color: #e1bee7;
    border-color: #ce93d8;
}

.source-badge.source-recommended {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    cursor: default;
}

.source-badge.source-recommended:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.source-badge.source-recommended::after {
    display: none;
}

.source-text {
    font-size: 11px;
    font-weight: 500;
}

.option-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Rationale container styling */
.rationale-container {
    width: 90%;
    margin-left: 50px;
}

.rationale-container h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.rationale-container .section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.rationale-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rationale-options .radio-option,
.rationale-options .checkbox-option {
    padding: 12px 15px;
    margin: 0;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.rationale-options .radio-option:hover,
.rationale-options .checkbox-option:hover {
    border-color: rgb(0, 106, 170);
    background-color: #e3f2fd;
}

.rationale-options .radio-option.selected,
.rationale-options .checkbox-option.selected {
    border-color: rgb(0, 106, 170);
    background-color: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.rationale-options .option-content {
    flex-direction: column;
    justify-content: flex-start;
}

.rationale-options .option-text {
    flex: none;
    margin-bottom: 5px;
}

.rationale-options .source-badge {
    align-self: flex-end;
    margin-left: 0;
    margin-top: 5px;
}

.rationale-options .option-content strong {
    font-size: 14px;
    margin-bottom: 3px;
}

.rationale-options .option-description {
    font-size: 13px;
    color: #555;
}

/* Checkbox option styling */
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    flex-direction: row;
}

.checkbox-option:hover {
    border-color: rgb(0, 106, 170);
    background-color: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.checkbox-option input[type="checkbox"],
.checkbox-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom,
.checkbox-option input[type="radio"]:checked + .checkbox-custom {
    background-color: rgb(0, 106, 170);
    border-color: rgb(0, 106, 170);
}

.checkbox-option:has(input[type="checkbox"]:checked),
.checkbox-option:has(input[type="radio"]:checked) {
    border-color: rgb(0, 106, 170);
    background-color: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: white;
    transition: all 0.3s ease;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
}

.checkbox-option.selected {
    border-color: rgb(0, 106, 170);
    background-color: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkbox-option.selected .option-content strong {
    color: rgb(0, 106, 170);
}

/* Rationale checkbox option specific styling */
.rationale-options .checkbox-option {
    padding: 12px 15px;
    margin: 0;
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    align-items: flex-start;
}

.rationale-options .checkbox-option:hover {
    border-color: rgb(0, 106, 170);
    background-color: #e3f2fd;
}

.rationale-options .checkbox-option.selected {
    border-color: rgb(0, 106, 170);
    background-color: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.rationale-options .checkbox-option .option-content {
    flex-direction: column;
    margin-left: 0;
}

.rationale-options .checkbox-option .option-content strong {
    font-size: 14px;
    margin-bottom: 3px;
}

.rationale-options .checkbox-option .option-description {
    font-size: 13px;
    color: #555;
}

/* Manual rationale input styling */
.manual-rationale-input {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    border-left: 4px solid rgb(0, 106, 170);
}

.manual-rationale-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.manual-rationale-input textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.manual-rationale-input textarea:focus {
    outline: none;
    border-color: rgb(0, 106, 170);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.manual-rationale-input textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Form group styling */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group textarea:focus {
    outline: none;
    border-color: rgb(0, 106, 170);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Input with edit button styling */
.input-with-edit {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.input-with-edit textarea {
    flex: 1;
    transition: all 0.3s ease;
    font-size: 14px;
}

.input-with-edit textarea[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.btn-edit-field {
    padding: 8px 16px;
    background-color: rgb(0, 106, 170);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-edit-field:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-edit-field:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .input-with-edit {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-edit-field {
        align-self: flex-end;
        margin-top: 0;
    }
}

/* Form actions styling */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    text-align: center;
    height: 48px;
    line-height: 1.2;
    box-sizing: border-box;
}

.btn-primary {
    background-color: rgb(0, 106, 170);
    color: white;
    border: 2px solid rgb(0, 106, 170);
}

.btn-primary:hover {
    background-color: rgb(18, 39, 70);
    border-color: rgb(18, 39, 70);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

/* Selected state styling */
.radio-option.selected {
    border-color: rgb(0, 106, 170);
    background-color: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.radio-option.selected .option-content strong {
    color: rgb(0, 106, 170);
}

/* Responsive design */

@media (max-width: 768px) {
    .page-wrapper {
        height: 100vh;
        padding: 10px;
    }
    
    /* .form-container {
        max-width: 100%;
        padding: 15px;
    } */

    .header-section h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .form-section h2 {
        font-size: 18px;
    }

    .radio-option {
        padding: 12px;
    }

    .option-content strong {
        font-size: 14px;
    }

    .option-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .option-text {
        margin-bottom: 8px;
    }

    .source-badge {
        align-self: flex-end;
        margin-left: 0;
        margin-top: 5px;
    }

    .option-description {
        font-size: 12px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .extracted-info-container {
        padding: 15px;
    }
    
    .info-section {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        height: 100vh;
        padding: 5px;
    }

    /* .form-container {
        padding: 10px;
    } */

    .radio-option {
        padding: 10px;
    }

    .radio-custom {
        width: 14px;
        height: 14px;
    }
    
    .extracted-info-container {
        padding: 10px;
    }
    
    .info-section {
        padding: 10px;
    }
} 

/* Subtasks Grid Styles */

.btn-edit-subtask, .btn-remove-subtask {
    background: #b4b4b4;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-subtask:hover, .btn-remove-subtask:hover {
    background: #787878;
}

.add-subtask-btn {
    background: #65afff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 35px;
}

.add-subtask-btn:hover {
    background: rgb(0, 106, 170);
}

.subtasks-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.subtask-item {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subtask-item:hover {
    background-color: #f0f8ff;
    border-color: rgb(0, 106, 170);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    cursor: pointer;
}

/* New subtask display styles */
.subtask-display {
    padding: 20px;
}

.subtask-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    gap: 15px;
}

.subtask-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.subtask-actions {
    display: flex;
    gap: 10px;
}

.subtask-details {
    display: flex;
    flex-direction: column;
}

.detail-section {
    margin-bottom: 15px;
}

.detail-section > strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.learning-objective-display {
    margin: 8px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.genai-effects {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.help-section, .hinder-section {
    padding: 10px;
}

.effect-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.help-label {
    color: #155724;
}

.hinder-label {
    color: #721c24;
}

.effect-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.4;
}

.effect-list li {
    margin-bottom: 4px;
}

.guidelines-section {
    margin-top: 20px;
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

.btn-show-guidelines {
    background: rgb(0, 106, 170);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-show-guidelines:hover {
    background: rgb(18, 39, 70);
}

.btn-show-guidelines:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.guidelines-content {
    margin-top: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.guidelines-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.allowed-column, .not-allowed-column {
    padding: 15px;
    border-radius: 6px;
}

.allowed-column {
    background: #f8fff8;
    border-left: 4px solid rgb(0, 165, 88);
}

.not-allowed-column {
    background: #fff8f8;
    border-left: 4px solid #dc3545;
}

.column-header {
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.allowed-header {
    background: #d4edda;
    color: #155724;
}

.not-allowed-header {
    background: #f8d7da;
    color: #721c24;
}

.allowed-actions, .not-allowed-actions {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.4;
}

.allowed-actions li, .not-allowed-actions li {
    margin-bottom: 6px;
}

.rationale-section {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #6c757d;
}

.rationale-section strong {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.rationale-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.sample-prompt-text {
    margin: 8px 0 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #666666;
    font-style: italic;
    padding: 8px;
    background-color: #f8f9fa;
    border-left: 3px solid #008000;
    border-radius: 0 4px 4px 0;
}

/* Edit form styles */
.subtask-edit-form {
    padding: 20px;
    background: white;
    border-top: 2px solid #dee2e6;
}

.subtask-edit-form .form-section {
    margin-bottom: 20px;
}

.subtask-edit-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.subtask-title-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s ease;
    margin: 0;
    box-sizing: border-box;
}

.subtask-title-input:focus {
    outline: none;
    border-color: rgb(0, 106, 170);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.learning-objective-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.subtask-edit-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.subtask-edit-form .action-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.subtask-edit-form .action-item textarea {
    flex: 1;
    min-height: 40px;
}

.btn-remove-action {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.btn-remove-action:hover {
    background: #c82333;
}

.add-action-btn {
    margin-top: 10px;
    padding: 8px 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-action-btn:hover {
    background: #545b62;
}

/* Regenerate section styles */
.regenerate-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #979797;
    text-align: center;
}

.btn-regenerate-guidelines {
    background: #979797;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-regenerate-guidelines:hover {
    background: #676767;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.btn-regenerate-guidelines:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.regenerate-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive design for new layout */
@media (max-width: 768px) {
    .guidelines-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .subtask-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .subtask-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-regenerate-guidelines {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .regenerate-description {
        font-size: 11px;
    }
} 

/* Component Boxes for Decision Making Summary */
.component-boxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.component-box {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.component-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Clickable component box styles */
.component-box.clickable {
    cursor: pointer;
    position: relative;
}

.component-box.clickable:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: rgb(0, 106, 170);
}

.component-box.clickable::after {
    content: "Click to edit";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: rgb(0, 106, 170);
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.component-box.clickable:hover::after {
    opacity: 1;
}

.component-box.clickable.active {
    border-color: rgb(0, 106, 170);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    background-color: #f8f9ff;
}

.component-box.clickable.active .component-box-header {
    background: #e3f2fd;
}

.component-box.clickable.active .component-box-title {
    color: rgb(0, 106, 170);
}

.component-box-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.component-box-icon {
    display: none;
}

.component-box-icon.beliefs {
    background: rgb(0, 106, 170);
}

.component-box-icon.stance {
    background: #28a745;
}

.component-box-icon.appropriate-uses {
    background: #ffc107;
}

.component-box-icon.disclosure {
    background: #dc3545;
}

.component-box-icon.academic-integrity {
    background: #6f42c1;
}

.component-box-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.component-box-content {
    padding: 12px 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.component-box-content:empty::before {
    content: "No information available";
    color: #999;
    font-style: italic;
}

.component-box.completed {
    border-left: 4px solid #28a745;
}

.component-box.completed .component-box-header {
    background: #d4edda;
}

.component-box.pending {
    border-left: 4px solid #ffc107;
    opacity: 0.7;
}

.component-box.pending .component-box-header {
    background: #fff3cd;
}


/* Responsive design for component boxes */
@media (max-width: 768px) {
    .component-boxes {
        gap: 12px;
    }
    
    .component-box-header {
        padding: 10px 14px;
    }
    
    .component-box-content {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .component-box-title {
        font-size: 13px;
    }
    
    .component-box.clickable::after {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .panel-toggle {
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .toggle-icon {
        width: 14px;
        height: 10px;
    }
}

/* Clickable guideline sections */
.clickable-guideline {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-guideline:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Highlighting effects */
/* .guideline-section.highlighted {
    animation: highlightBlink 3s ease-in-out;
    border: 3px solid rgb(0, 106, 170);
    border-radius: 8px;
}

.form-container.highlighted {
    animation: highlightBlink 3s ease-in-out;
    border: 3px solid rgb(0, 106, 170);
    border-radius: 12px;
} */

@keyframes highlightBlink {
    0%, 100% {
        border-color: rgb(0, 106, 170);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    50% {
        border-color: rgb(18, 39, 70);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
}

/* Individual apply button styling */
.btn-apply-section {
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
}

/* Page-specific loading overlay - completely separate from global loading */
.page-loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loading-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure page-wrapper is a positioning context */
.page-wrapper {
    position: relative !important;
}

/* Make page-wrapper a positioning context for the loading overlay */
.page-wrapper {
    position: relative;
}





/* Clickable preview subtask styling */
.clickable-preview-subtask {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 15px;
    border-radius: 8px;
}

.clickable-preview-subtask:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Subtask highlighting */
.subtask-item.highlighted {
    animation: highlightBlink 3s ease-in-out;
    border: 3px solid rgb(0, 165, 88);
    border-radius: 12px;
}

.preview-subtask.highlighted {
    animation: highlightBlink 3s ease-in-out;
    border: 3px solid rgb(0, 165, 88);
    border-radius: 8px;
} 

/* Loading state for specific expectations */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.loading-state .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e3e3e3;
    border-top: 3px solid rgb(0, 106, 170);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.loading-state p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

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


/* Institutional Policy Display Styles */
.policy-display {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.policy-display h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.policy-content {
    color: #555;
    line-height: 1.6;
}

.policy-content p {
    margin-bottom: 10px;
}

.policy-content p:last-child {
    margin-bottom: 0;
}

.policy-content .no-data {
    color: #999;
    font-style: italic;
}

/* Manual Enforcement Group Styles */
#manual-enforcement-group {
    margin-top: 20px;
}

#manual-enforcement-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

#custom_enforcement_procedures {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

#custom_enforcement_procedures:focus {
    outline: none;
    border-color: rgb(0, 106, 170);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#custom_enforcement_procedures::placeholder {
    color: #999;
    font-style: italic;
}

/* Responsive adjustments for policy display */
@media (max-width: 768px) {
    .policy-display {
        padding: 15px;
        margin-top: 15px;
    }
    
    .policy-display h3 {
        font-size: 16px;
    }
    
    #custom_enforcement_procedures {
        min-height: 100px;
    }
} 

.approved-tools-content {
    line-height: 1.6;
    white-space: pre-line;
}

.approved-tools-content:empty::before {
    content: "Not set";
    color: #999;
    font-style: italic;
} 

.data-protection-content {
    line-height: 1.6;
    white-space: pre-line;
}

.data-protection-content:empty::before {
    content: "Not set";
    color: #999;
    font-style: italic;
}

/* Guideline section header and edit button styles */
.guideline-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.guideline-section-header h3 {
    margin: 0;
    flex: 1;
}

.btn-edit-guideline {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.btn-edit-guideline:hover {
    background-color: #5a6268;
}

.btn-edit-guideline.editing {
    background-color: #dc3545;
}

.btn-edit-guideline.editing:hover {
    background-color: #c82333;
}

/* Guideline edit form styles */
.guideline-edit-form {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
}

.guideline-edit-form .form-section {
    margin-bottom: 20px;
}

.guideline-edit-form .form-section:last-child {
    margin-bottom: 0;
}

.guideline-edit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.guideline-edit-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.guideline-edit-form textarea:focus {
    outline: none;
    border-color: rgb(0, 106, 170);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.guideline-edit-form textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

.edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.edit-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.edit-actions .btn-primary {
    background-color: rgb(0, 106, 170);
    color: white;
    border: none;
}

.edit-actions .btn-primary:hover {
    background-color: rgb(18, 39, 70);
}

.edit-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

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

/* Responsive styles for edit functionality */
@media (max-width: 768px) {
    .guideline-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-edit-guideline {
        align-self: flex-end;
        margin-left: 0;
    }
    
    .guideline-edit-form {
        padding: 15px;
    }
    
    .edit-actions {
        flex-direction: column;
    }
    
    .edit-actions .btn {
        width: 100%;
    }
}

/* Subsection styling */
.subsection {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid rgb(0, 106, 170);
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.subsection h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.btn-edit-subsection {
    padding: 6px 12px;
    background-color: rgb(0, 106, 170);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-edit-subsection:hover {
    background-color: rgb(18, 39, 70);
    transform: translateY(-1px);
}

.btn-edit-subsection:active {
    transform: translateY(0);
}

.embedded-content {
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    min-height: 60px;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

.embedded-content p {
    margin: 0;
}

.embedded-content .no-data {
    color: #999;
    font-style: italic;
}

.subsection .section-description {
    font-size: 15px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
}

.subsection .form-group {
    margin-bottom: 15px;
}

.subsection .form-group:last-child {
    margin-bottom: 0;
}

/* Responsive design for subsections */
@media (max-width: 768px) {
    .subsection {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .subsection h3 {
        font-size: 16px;
    }
    
    .subsection .section-description {
        font-size: 13px;
    }
}

/* GenAI Guidelines Styles */
.genai-guidelines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.allowed-section, .not-allowed-section {
    padding: 15px;
    border-radius: 6px;
}

.allowed-section {
    background: #f8fff8;
    border-left: 4px solid rgb(0, 165, 88);
}

.not-allowed-section {
    background: #fff8f8;
    border-left: 4px solid #dc3545;
}

.guideline-label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.allowed-label {
    color: #155724;
}

.not-allowed-label {
    color: #721c24;
}

.guideline-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.genai-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 12px;
    margin-bottom: 0;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    width: 100%;
}

.genai-item:hover {
    background-color: #f8f9fa;
    border-color: rgb(0, 106, 170);
}

/* Background colors based on radio selection */
.genai-item.allow-selected {
    background-color: #f0f8f2;
    border-color: #7df098;
}

.genai-item.not-allow-selected {
    background-color: #fff4f5;
    border-color: #ef8892;
}

.genai-item.allow-selected:hover {
    background-color: #c3e6cb;
    border-color: rgb(0, 165, 88);
}

.genai-item.not-allow-selected:hover {
    background-color: #f5c6cb;
    border-color: #dc3545;
}

.genai-item:last-child {
    margin-bottom: 0;
}

.item-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Item content styles */
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

/* Rationale text styles */
.rationale-text {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
    margin-top: 4px;
    font-style: italic;
    opacity: 0.8;
}

.rationale-text:empty {
    display: none;
}



/* Rationale input styles */
.genai-item-rationale-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    background-color: #fff;
}

.genai-item-rationale-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Learning objectives styles */
.learning-objectives {
    margin: 10px 0 15px 0;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-left: 4px solid #666666;
    border-radius: 4px;
}

.learning-objectives h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.learning-objectives ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.learning-objectives li {
    margin: 4px 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.radio-options {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-right: 15px;
}

.radio-option-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option-item:hover {
    transform: translateY(-1px);
}

.radio-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option-item .radio-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
    margin-right: 6px;
    position: relative;
}

.radio-option-item input[type="radio"]:checked + .radio-custom {
    background-color: rgb(0, 106, 170);
    border-color: rgb(0, 106, 170);
}

.radio-option-item input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.radio-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.radio-option-item input[type="radio"]:checked ~ .radio-label {
    color: rgb(0, 106, 170);
    font-weight: 600;
}

.no-items {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

/* Responsive design for GenAI guidelines */
@media (max-width: 768px) {
    .genai-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-text {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .radio-options {
        width: 100%;
        justify-content: flex-end;
    }
    
    .allowed-section, .not-allowed-section {
        padding: 12px;
    }
}

/* Misconduct Consequences Styles */
.misconduct-consequences-container {
    margin-bottom: 20px;
}

.misconduct-consequences-options {
    margin-top: 15px;
}

.misconduct-consequences-options h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.misconduct-consequences-options .section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.consequence-option {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.consequence-option:hover {
    border-color: rgb(0, 106, 170);
    background-color: #f8f9fa;
}

.consequence-option.selected {
    border-color: rgb(0, 106, 170);
    background-color: #e3f2fd;
}


.consequence-option .option-content strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.consequence-option .option-description {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.consequence-option input[type="radio"] {
    display: none;
}

.consequence-option .radio-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: white;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.consequence-option input[type="radio"]:checked + .radio-custom {
    background-color: rgb(0, 106, 170);
    border-color: rgb(0, 106, 170);
}

.consequence-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.consequence-option:has(input[type="radio"]:checked) {
    border-color: rgb(0, 106, 170);
    background-color: #e3f2fd;
}

@media (max-width: 768px) {
    .consequence-option {
        padding: 10px;
    }
    
    .consequence-option .option-content strong {
        font-size: 14px;
    }
    
    .consequence-option .option-description {
        font-size: 11px;
    }
}

/* Disclosure Requirements Container */
.disclosure-requirements-container {
    margin-bottom: 20px;
}

.disclosure-requirements-options {
    margin-bottom: 20px;
}

.disclosure-requirements-options h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.disclosure-requirements-options .section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.required-disclosure-notice {
    background-color: #e3f2fd;
    border: 2px solid rgb(0, 106, 170);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.required-disclosure-notice strong {
    color: rgb(0, 106, 170);
    font-size: 16px;
}

/* Citation Methods Container */
/* .citation-methods-container {
    margin-bottom: 20px;
} */

/* .citation-methods-options {
    margin-bottom: 20px;
} */

.citation-methods-options h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.citation-methods-options .section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.citation-method-option {
    margin-bottom: 10px;
}

.citation-method-option.source-institution {
    border-left: 3px solid rgb(0, 106, 170);
}

.citation-method-option.source-course {
    border-left: 3px solid rgb(0, 165, 88);
}

.citation-method-option .option-content strong {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.citation-method-option .option-description {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.citation-method-option input[type="radio"] {
    display: none;
}

.citation-method-option .radio-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: white;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.citation-method-option input[type="radio"]:checked + .radio-custom {
    background-color: rgb(0, 106, 170);
    border-color: rgb(0, 106, 170);
}

.citation-method-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.citation-method-option:has(input[type="radio"]:checked) {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
}

@media (max-width: 768px) {
    .citation-method-option {
        padding: 8px;
    }
    
    .citation-method-option .option-content strong {
        font-size: 13px;
    }
    
    .citation-method-option .option-description {
        font-size: 11px;
    }
}

/* Data Privacy & Security Radio Options - Matching Citation Style */
.data-privacy-option {
    margin-bottom: 10px;
}


.data-privacy-option .option-content strong {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.data-privacy-option .option-description {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.data-privacy-option input[type="radio"] {
    display: none;
}

.data-privacy-option .radio-custom {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: white;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.data-privacy-option input[type="radio"]:checked + .radio-custom {
    background-color: rgb(0, 106, 170);
    border-color: rgb(0, 106, 170);
}

.data-privacy-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.data-privacy-option:has(input[type="radio"]:checked) {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
}

@media (max-width: 768px) {
    .data-privacy-option {
        padding: 8px;
    }
    
    .data-privacy-option .option-content strong {
        font-size: 13px;
    }
    
    .data-privacy-option .option-description {
        font-size: 11px;
    }
}

/* Write Guideline Button Styles */
.write-guideline-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 2px solid #e9ecef;
}

.write-guideline-btn {
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 8px;
    background: rgb(0, 104, 55);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 70px;
}

.write-guideline-btn:hover {
    background: rgb(0, 80, 55);
    transform: translateY(-2px);
    /* box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); */
}

.write-guideline-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .write-guideline-section {
        padding: 20px 0;
        margin-top: 15px;
    }
    
    .write-guideline-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
} 

/* New GenAI Item Management Styles */
.guideline-section {
    margin-bottom: 0;
}

.guideline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.guideline-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.btn-add-genai-item {
    background: #b4b4b4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    height: 30px;
}

.btn-add-genai-item:hover {
    background: #787878;
}

/* .genai-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
} */

/* .genai-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
} */

.genai-item-actions {
    display: flex;
    gap: 4px;
    margin-right: 12px;
    align-self: flex-start;
    margin-top: 2px;
}

.btn-edit-genai-item,
.btn-remove-genai-item {
    background: none;
    border: none;
    padding: 3px 4px 0px 4px;
    cursor: pointer;
    border-radius: 7px;
    transition: background-color 0.2s ease;
}

.btn-edit-genai-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-remove-genai-item:hover {
    background: #dc3545;
    color: white;
}

.genai-item-edit-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-right: 12px;
}

.genai-item-edit-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.genai-item-edit-input:focus {
    outline: none;
    border-color: rgb(0, 106, 170);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-save-genai-item,
.btn-cancel-genai-item {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-save-genai-item {
    background: rgb(0, 165, 88);
    color: white;
}

.btn-save-genai-item:hover {
    background: rgb(0, 104, 55);
}

.btn-cancel-genai-item {
    background: #6c757d;
    color: white;
}

.btn-cancel-genai-item:hover {
    background: #5a6268;
}

.item-text {
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .guideline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .genai-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .genai-item-actions {
        align-self: flex-end;
        margin-right: 0;
    }
    
    .radio-options {
        justify-content: center;
    }
    
    .genai-item-edit-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-save-genai-item,
    .btn-cancel-genai-item {
        width: 100%;
    }
} 

/* Edit Actions Styles */
.edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.btn-save-subtask,
.btn-cancel-subtask {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-save-subtask {
    background: #28a745;
    color: white;
}

.btn-save-subtask:hover {
    background: #218838;
}

.btn-cancel-subtask {
    background: #6c757d;
    color: white;
}

.btn-cancel-subtask:hover {
    background: #5a6268;
}

/* Responsive design for edit actions */
@media (max-width: 768px) {
    .edit-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-save-subtask,
    .btn-cancel-subtask {
        width: 100%;
    }
} 

.genai-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    gap: 20px;
}

.action-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-edit-genai-item:hover .action-icon,
.btn-remove-genai-item:hover .action-icon {
    opacity: 1;
}

/* Stance Display Section */
.stance-display-section {
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-sizing: border-box;
    width: 90%;
}

.stance-display-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.stance-info {
    flex: 1;
}

.stance-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.stance-content {
    margin: 0;
}

.stance-text {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

.stance-actions {
    flex-shrink: 0;
}

.change-stance-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background-color: #6c757d;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-stance-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
}

.modal-footer .btn-primary {
    background-color: #007bff;
    color: white;
}

.modal-footer .btn-primary:hover {
    background-color: #0056b3;
}

/* Modal-specific radio and checkbox styles */
.modal .radio-group {
    margin-bottom: 20px;
}

.modal .radio-option {
    margin-bottom: 16px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.modal .radio-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.modal .radio-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.modal .rationale-container {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.modal .rationale-container h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.modal .rationale-options {
    margin-bottom: 16px;
}

.modal .checkbox-option {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.modal .checkbox-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.modal .checkbox-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.modal .manual-rationale-input {
    margin-top: 16px;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.modal .manual-rationale-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.modal .manual-rationale-input textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

.modal .manual-rationale-input textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Responsive design for modal */
@media (max-width: 768px) {
    .stance-display-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stance-actions {
        align-self: stretch;
    }
    
    .change-stance-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 50vh;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .modal .radio-option {
        padding: 12px;
    }
    
    .modal .rationale-container {
        padding: 12px;
    }
}

/* Source Excerpt Modal Styles */
.source-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.source-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.source-info strong {
    color: #333;
}

/* Source type specific styling */
.source-info.source-institution {
    border-left-color: #28a745;
    background-color: #f8fff9;
}

.source-info.source-course {
    border-left-color: #ffc107;
    background-color: #fffef8;
}

.source-info.source-institution strong {
    color: #155724;
}

.source-info.source-course strong {
    color: #856404;
}

.excerpt-content {
    margin-top: 20px;
}

.excerpt-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.excerpt-text {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
}

/* Multiple rationale formatting */
.rationale-item {
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 15px;
}

.rationale-item:last-child {
    margin-bottom: 0;
}

.rationale-item:not(:last-child) {
    margin-bottom: 15px;
}

/* Mobile responsiveness for rationale items */
@media (max-width: 768px) {
    .rationale-item {
        padding: 8px;
        margin-bottom: 12px;
    }
}

/* Regenerate button in top right corner */
.regenerate-btn-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgb(178, 142, 93);
    border: none;
    color: white;
    z-index: 10;
}

.regenerate-btn-corner:hover {
    background-color: rgb(105,72,26);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.regenerate-btn-corner:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.3);
}

/* Mobile responsiveness for corner regenerate button */
@media (max-width: 768px) {
    .regenerate-btn-corner {
        padding: 6px 12px;
        font-size: 11px;
        top: 5px;
        right: 5px;
    }
}