/* Common Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', 'Inter', Roboto, "Helvetica Neue", sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    color: #333;
}

/* Reordering disabled styles */
.reorder-disabled tbody tr {
    cursor: default !important;
}

.reorder-disabled tbody tr:hover {
    cursor: default !important;
}

.reorder-disabled .move-icon,
.reorder-disabled .drag-handle {
    display: none !important;
}

h1 {
    /* Header style */
    color: #2B4051;
    margin-top: 0;
    display: inline-block;
    white-space: nowrap;
}

h1 span.material-symbols-outlined {
    font-size: 40px;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 48; color: #FE892F;
    position: relative;
    top: 3px;
    width: 40px;
}

h1, #title {
    display: inline-block;
}

#title {
    margin-left: 10px;
    display: inline-block;
}

table {
    width: 100%;
}

table, th, td {
    /* Table styling */
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
    background-color: white;
    text-align: left;
}

.no-records {
    /* No records message styling */
    text-align: center;
}

.breadcrumb-spacing {
    /* Breadcrumb spacing */
    margin-bottom: 20px;
}

.button {
    cursor: pointer;
}

.button-spacing {
    /* Spacing for buttons */
    margin-top: 20px;
}

/*
.button-icon {
    display: flex;
    align-items: center;
    white-space: nowrap;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 5px;
}

.button-icon img {
    margin-right: 5px;
    width: 15px;
}

.button-icon-right {
    margin-right: 0;
    margin-left: 5px;
}

.button-icon-right img {
    margin-right: 0;
    margin-left: 5px;
}
*/

.action-button span.material-symbols-outlined {
    font-size: 15px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

table+button,
#totalDuration+button,
.tox-tinymce+button {
    /* Button margin after table */
    margin-top: 10px;
}

button+#expandItems {
    margin-top: 50px;
}

.container {
    /* Container styling */
    display: flex;
}

.content {
    /* Content area styling */
    flex: 1;
}

.right-column {
    /* Right column styling for iPhone preview and comments */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 600px; /* Ensure enough space for iPhone + margins */
    margin-left: 20px; /* Add some spacing from the left content */
}

.iphone {
    /* iPhone frame styling */
    position: relative;
    width: 389px;
    height: 781px;
    border: 0px solid #ccc;
    border-radius: 30px;
    overflow: hidden;
    background: url('../images/iphone-frame.png') no-repeat center center;
    background-size: cover;
    margin: 0 100px 0 115px;
}

.iphone .screen {
    /* iPhone screen styling */
    position: absolute;
    top: 12px;
    left: 19px;
    right: 18px;
    bottom: 10px;
    background-color: #EFF0F2;
    overflow-y: auto;
    font-family: 'Inter', Roboto, 'Helvetica Neue', sans-serif;
    padding: 15px;
    padding-bottom: 30px; /* Extra bottom padding to ensure submit button and navigation are accessible */
    font-size: 16px;
    color: rgb(51, 51, 51);
    max-height: 740px;
    z-index: 1;
    border-radius: 50px;
}

.iphone .screen h3 {
    font-weight: 500;
    font-size: 1.2em;
}

.iphone .screen p {
    line-height: 1.4em;
}

.iphone .screen img {
    border: 1px solid #9B9B9B;
    max-width: 100%;
    height: auto;
}

.iphone .screen hr {
    /* Invisible separator */
    display: block;
    clear: left;
    visibility: hidden;
    margin: 0;
}

.iphone .screen ul,
.app-screen ul {
    margin: 0;
    padding-left: 30px;
}

.iphone .screen ul li,
.iphone .screen ol li,
.app-screen ul li,
.app-screen ol li {
    margin-bottom: 0.75em;
}

.actions-column {
    /* Actions column in tables */
    white-space: nowrap;
}

.form-container {
    /* Form container styling */
    display: none;
    margin-top: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    /* Form title styling */
    color: #2B4051;
}

.form-container label {
    /* Form labels styling */
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="url"],
.form-container textarea,
.form-container select {
    /* Input and select fields styling */
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea {
    /* Textarea styling */
    height: 100px;
    resize: vertical;
}

.expand-item {
    /* Expand item styling */
    position: relative;
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.expandable-list {
    /* Expandable list styling */
    list-style: none;
    padding: 0 !important;
}

.expandable-item {
    /* Expandable item styling */
    margin: 10px 0;
    cursor: pointer;
}

.expandable-header {
    /* Expandable header styling */
    background-color: #2B4051;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
}

.expandable-body {
    /* Expandable body styling */
    background-color: #d3d3d3;
    padding: 20px;
    border-radius: 15px;
    display: none;
}

.expandable-body p {
    margin: 0;
}

.expandable-item.expanded .expandable-header {
    border-radius: 25px 25px 0 0;
}

.expandable-item.expanded .expandable-body {
    /* Display expanded body */
    display: block;
    border-radius: 0 0 25px 25px;
}

.expandable-item.expanded .expandable-header::before {
    /* Expanded header symbol */
    content: "-";
    font-size: 3em;
    line-height: 0.8em;
    min-width: 18px;
}

.expandable-header::before {
    /* Collapsed header symbol */
    content: "+";
    margin-right: 10px;
    font-size: 2em;
}

/* New expand resource styles */
.expand-container {
    position: relative;
}

.expand-container.loading {
    opacity: 0.7;
}

.expand-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.expandable-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.expandable-resource {
    margin: 2px 0;
}

.expandable-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expandable-detail {
    margin: 5px 0;
}

.expand-heading {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #2B4051;
}

.expand-text {
    margin: 0;
    line-height: 1.4;
}

.expand-error {
    color: #d32f2f;
    font-style: italic;
    padding: 5px;
    background: #ffebee;
    border-radius: 4px;
}

.expand-unknown {
    color: #666;
    font-style: italic;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Expand form styles */
.expand-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expand-item-content {
    padding: 15px;
}

.expand-resources {
    margin-bottom: 15px;
    min-height: 50px;
}

.expand-resource-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.no-resources {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 2px dashed #ddd;
}


/* Expand resource form styles */
.expand-resource-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expand-resource-form .resource-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expand-resource-form .drag-handle {
    cursor: grab;
    color: #666;
    font-size: 16px;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.expand-resource-form .drag-handle:hover {
    background-color: #f0f0f0;
}

.expand-resource-form .drag-handle-spacer {
    width: 24px; /* Same width as drag handle */
}

.expand-resource-form label {
    min-width: 60px;
    font-weight: bold;
    color: #333;
}

.expand-resource-form .resource-input-container {
    flex: 1;
}

.expand-resource-form .expand-title-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.expand-resource-form .expand-details-input {
    width: 100%;
    min-height: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.expand-resource-form .expand-title-input:focus,
.expand-resource-form .expand-details-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Make expand items draggable */
.expand-item {
    position: relative;
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
}

.expand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.expand-item[draggable="true"] {
    cursor: grab;
}

.expand-item[draggable="true"]:active {
    cursor: grabbing;
}

.card {
    /* Card styling */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.question-card {
    /* Question card styling */
    border-left: 5px solid #2B4051;
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
    margin: 20px 0;
    padding: 10px;
}

.question-card p {
    /* Question text styling */
    color: #2b4051;
    font-weight: bold;
    margin: 5px;
    font-size: .9em;
}

.question-card ul {
    /* Question answers list styling */
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-card li {
    /* Question answer item styling */
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.question-card li input[type="radio"] {
    /* Radio button styling */
    margin: 0 10px 0 0;
    height: 35px;
    width: 30px;
    min-width: 30px;
    accent-color: #2B4051;
}

.question-card li label {
    display: flex;
    align-items: center;
}

#messageBox {
    display: none;
    position: fixed;
    top: 20px;
    right: 90px;
    padding: 15px 30px 15px 15px;
    background-color: #c3d4c3;
    color: #6d7d6d;
    border-radius: 5px;
    z-index: 9999;
}

#messageBox .close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: 20px;
    bottom: 10px;
    width: 90%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #ffffffcf;
    z-index: 1;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2B4051;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 999;
    text-transform: uppercase;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
}

.button-previous {
    background-color: #2B4051;
}

.button-next {
    background-color: #01B595;
}

.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Style for BREAK rows */
.break-row td {
    background-color: #e0e0e0;
    font-size: .8em;
    color: #999;
}

/* Style for highlighted rows */
.highlighted-row td {
    background-color: #fffdeb;
}

/* Style for highlighted resource when viewing its comments */
.highlighted-resource td {
    background-color: #ffddae;
    transition: all 0.3s ease;
}

/* Style for highlighted question when viewing its comments */
.highlighted-question td {
    background-color: #ffddae;
    transition: all 0.3s ease;
}

/* Style for highlighted comment when viewing a specific resource */
.highlighted-comment {
    background-color: #ffddae !important;
    border-left: 4px solid #ff892f !important;
    transition: all 0.3s ease;
}



#resourcesTable tbody tr {
    cursor: default;
}

#autoplayIcon {
    z-index: 999;
    height: 24px;
    position: relative;
    top: 6px;
    left: -1px;
    cursor: pointer;
}

/* CSS for the edit overlay */
.resource-container {
    position: relative;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 10;
    border-radius: 3px;
}

.resource-container.edit-mode:hover .edit-overlay {
    opacity: 1;
}

/* Ensure interactive elements are above the overlay */
.resource-container iframe,
.resource-container .expandable-header {
    position: relative;
    z-index: 20;
}

.edit-mode-toggle {
    margin-top: 10px;
    text-align: center;
    font-size: .8em;
}

.edit-mode-toggle input {
    margin: 0 3px 0 0;
    position: relative;
    top: 2px;
}

#totalDuration {
    margin-left: auto;
}

.actions-column {
    width: 10px;
}

#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
}

#loadingIndicator img {
    width: 50px;
    height: 50px;
}

.no-image-source {
    width: 10px;
    position: relative;
}

.info-icon-wrapper,
.warning-icon-wrapper,
.alert-icon-wrapper,
.inactive-icon-wrapper,
.dt-icon-wrapper,
.O365-icon-wrapper {
    display: inline-block;
    border-radius: 50%;
    padding: 3px;
    margin-left: 5px;
    position: relative;
    top: 3px;
    width: 12px;
    height: 12px;
}

.info-icon-wrapper + .info-icon-wrapper {
    margin-left: 0;
}

.info-icon-wrapper {
    background-color: #327fd8;
}

.warning-icon-wrapper {
    background-color: #cfdf19;
}

.alert-icon-wrapper {
    background-color: #BB261A;
}

.alert-icon-notice {
    background-color: #7E57C2;
}

.inactive-icon-wrapper {
    background-color: #d6d6d6;
}

.dt-icon-wrapper {
    background-color: #2B4051;
}

.O365-icon-wrapper {
    background-color: #3c763d;
}

.info-icon-wrapper img,
.warning-icon-wrapper img,
.alert-icon-wrapper img,
.inactive-icon-wrapper img,
.dt-icon-wrapper img,
.O365-icon-wrapper img {
    width: 12px;
    height: 12px;
    display: block;
}

.warning-icon-wrapper img.no-audio-icon {
    vertical-align: middle;
    position: relative;
    top: -5px
}

.metadata-well {
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ccc; /* Border to define the well */
    padding: 15px; /* Padding inside the well */
    margin: 15px 0; /* Margin to separate it from other elements */
    border-radius: 8px; /* Rounded corners */
    font-size: 12px; /* Smaller text */
    font-style: italic; /* Italicized text */
    color: #333; /* Darker text for contrast */
    margin-bottom: 20px;
}

.metadata-well h3 {
    font-size: 16px; /* Slightly larger font for the heading */
    font-style: normal; /* Normal text for the heading */
    margin-bottom: 10px; /* Space between the heading and content */
}

#imagePreviewContainer img,
#audioPreviewContainer audio,
.expandAudioPreviewContainer audio {
    display: block;
    margin-bottom: 15px;
}

#imagePreviewContainer img {
    width: 100px;
    height: auto;
    border-radius: 5px;
}

#imagePreviewContainer button,
#audioPreviewContainer button,
.expandAudioPreviewContainer button {
    margin-right: 10px;
}

.insert-placeholder {
    position: relative;
    height: 0; /* Remove height to prevent extra space */
    margin: 0; /* Remove margin to prevent extra space */
    opacity: 0;
    transition: opacity 0.2s;
}

.insert-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background-color: #DDDDDD;
    transform: translateY(-50%); /* Adjust to center the line vertically */
}

.insert-icons {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%); /* Center icons both horizontally and vertically */
    background-color: #EEEEEE;
    padding: 2px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.insert-icons img {
    width: 16px; /* Set the width of the icons */
    height: 16px; /* Set the height of the icons */
    margin: 0 3px; /* Adjust the margin for spacing */
    cursor: pointer;
    border: none !important;
}

.insert-placeholder:hover .insert-icons,
.resource-container:hover + .insert-placeholder .insert-icons {
    opacity: 1;
}

.insert-placeholder:hover {
    opacity: 1;
    height: 10px; /* Only expand height on hover */
}

.insert-placeholder:has(+ .resource-container img),
.insert-placeholder:has(+ .resource-container iframe) {
    margin-bottom: 20px;
}

.resource-container:has(img) + .insert-placeholder,
.resource-container:has(iframe) + .insert-placeholder {
    margin-top: 20px;
}

.resource-container:has(.expandable-list) + .insert-placeholder {
    margin-top: 20px;
}

#imageUpload.dragover {
    border: 2px dashed #007bff;
    background-color: #f0f8ff;
}

.move-icon {
    cursor: move;
    height: 35px;
    position: relative;
    top: -8px;
}

.answer-row {
    display: flex;
    align-items: center;
}

.answer-row input[type="text"] {
    flex: 1;
    margin-right: 10px;
}

.dragging {
    opacity: 0.5;
}

.placeholder {
    height: 50px;
    background-color: #e0e0e0;
    border: 2px dashed #ccc;
    margin-bottom: 5px;
}

.correctAnswer {
    position: relative;
    top: -8px;
}

.correctLabel {
    margin-left: 5px;
    position: relative;
    top: -4px;
}

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

#lessonFormContainer,
#topicFormContainer,
#resourceFormContainer,
#importResourcesFormContainer,
#questionFormContainer,
#importQuestionsFormContainer {
    position: relative;
}

.close-form-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333; /* Change color as needed */
}

.close-form-button:hover {
    color: #000; /* Darker color on hover for better visibility */
}

.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #00B696;
    transition: width 0.3s, opacity 1s;
}

.screen > *:last-child {
    margin-bottom: 75px; /* Adjust this value to your desired margin */
}

#lessonsTable tbody tr,
#topicsTable tbody tr {
    cursor: default;
}

/* Draft row highlight */
#topicsTable tbody tr.draft-row td {
    background-color: #FFFDEA;
}
#topicsTable tbody tr.draft-row:hover td {
    background-color: #fff8c5;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    vertical-align: middle;
    border-radius: 25px;
    width: 25px;
    height: 25px;
}

.icon-button:hover {
    background-color: #eee;
}

.icon-button img {
    width: 15px;
    height: 15px;
    position: relative;
    top: 1px;
    left: -1px;
}

/* Resource Styles */

/* .resource.debug .resource-inner {
    border: dashed 1px #999;
    display: block;
} */

.resource {
    margin-bottom: 20px;
}

/* TEXT */
.resource-text {
    position: relative;
}

/* Black Border - Simple black left border, no icon or heading */
.resource-text.resource-text-black-border {
    border-left: 4px solid #000;
    padding: 20px;
    margin: 15px 0;
}

/* Blue Border - Simple blue left border, no icon or heading */
.resource-text.resource-text-border-blue {
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 15px 0;
}

/* Red Border - Simple red left border, no icon or heading */
.resource-text.resource-text-border-red {
    border-left: 4px solid #F44336;
    padding: 20px;
    margin: 15px 0;
}

/* Green Border - Simple green left border, no icon or heading */
.resource-text.resource-text-border-green {
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin: 15px 0;
}

/* Purple Border - Simple purple left border, no icon or heading */
.resource-text.resource-text-border-purple {
    border-left: 4px solid #9C27B0;
    padding: 20px;
    margin: 15px 0;
}

.resource-text.resource-text-info {
    border-radius: 25px;
    padding: 25px;
    background-color: #D5D5D5;
}

.resource-text.resource-text-info p,
.resource-text.resource-text-warning p {
    line-height: 1.2rem;
}

.resource-text.resource-text-info p:first-child,
.resource-text.resource-text-warning p:first-child {
    margin-top: 0;
}

.resource-text.resource-text-info p:last-child,
.resource-text.resource-text-warning p:last-child {
    margin-bottom: 0;
}

.resource-text.resource-text-warning {
    border-radius: 25px;
    padding: 25px;
    background-color: #F9E3A6;
}

.resource-text.resource-text-info::before,
.resource-text.resource-text-warning::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
}


.resource-text.resource-text-info::before {
    background-image: url('/icons/check-icon.svg');
}

.resource-text.resource-text-warning::before {
    background-image: url('/icons/help-icon.svg');
}

.resource-text.resource-text-left-border {
    border-left: 10px solid #EFC118;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    background-color: #fff;
}

/* Headed */
.resource-text.resource-text-headed {
    border: 2px solid #d9c897;
    padding: 30px;
    text-align: center;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    background-color: #f5f5f5;
}

.resource-text.resource-text-headed .resource-inner {
    padding: 10px;
}

.resource-text.resource-text-headed::before {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background-image: url('/icons/check-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 20px auto 15px;
}

.resource-text.resource-text-headed .resource-inner p {
    color: #555;
}

/* Black - Simple black border style, no icon or heading */
.resource-text.resource-text-black {
    border-left: 4px solid #000;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Real World */
.resource-text.resource-text-real-world {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.resource-text.resource-text-real-world .resource-inner::before {
    content: "Real-World";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #2E7D32;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

.real-world-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #2E7D32;
    font-size: 16px;
}

.real-world-header .material-symbols-outlined {
    color: #4CAF50;
    font-size: 20px;
}

/* Legal */
.resource-text.resource-text-legal {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.resource-text.resource-text-legal .resource-inner::before {
    content: "Legal Info";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #1565C0;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M1 21h12v2H1v-2zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828L5.245 8.07zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66 2.827-2.826zM3.825 9.485l2.828-2.828 5.657 5.657-2.828 2.828-5.657-5.657z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1565C0;
    font-size: 16px;
}

.legal-header .material-symbols-outlined {
    color: #2196F3;
    font-size: 20px;
}

/* Safety */
.resource-text.resource-text-safety {
    border-left: 4px solid #FF9800;
    background: linear-gradient(135deg, #fffbf8 0%, #fff3e0 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

.resource-text.resource-text-safety .resource-inner::before {
    content: "Safety Tip";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #E65100;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF9800'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

.safety-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #E65100;
    font-size: 16px;
}

.safety-header .material-symbols-outlined {
    color: #FF9800;
    font-size: 20px;
}

/* Tip */
.resource-text.resource-text-tip {
    border-left: 4px solid #FFC107;
    background: linear-gradient(135deg, #fffef8 0%, #fff9e6 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.resource-text.resource-text-tip .resource-inner::before {
    content: "Tip";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #F57C00;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFC107'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Important */
.resource-text.resource-text-important {
    border-left: 4px solid #F44336;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.resource-text.resource-text-important .resource-inner::before {
    content: "Important";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #C62828;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F44336'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Note */
.resource-text.resource-text-note {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.resource-text.resource-text-note .resource-inner::before {
    content: "Note";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #1565C0;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M3 18h12v-2H3v2zM3 6v2h18V6H3zm0 7h18v-2H3v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Definition */
.resource-text.resource-text-definition {
    border-left: 4px solid #673AB7;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e5f5 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.1);
}

.resource-text.resource-text-definition .resource-inner::before {
    content: "Definition";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #4A148C;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23673AB7'%3E%3Cpath d='M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Example */
.resource-text.resource-text-example {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.resource-text.resource-text-example .resource-inner::before {
    content: "Example";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #2E7D32;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Best Practice */
.resource-text.resource-text-best-practice {
    border-left: 4px solid #00BCD4;
    background: linear-gradient(135deg, #f0fdff 0%, #e0f7fa 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
}

.resource-text.resource-text-best-practice .resource-inner::before {
    content: "Best Practice";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #00695C;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300BCD4'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Common Mistake */
.resource-text.resource-text-common-mistake {
    border-left: 4px solid #E91E63;
    background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
}

.resource-text.resource-text-common-mistake .resource-inner::before {
    content: "Common Mistake";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #AD1457;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E91E63'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Did You Know */
.resource-text.resource-text-did-you-know {
    border-left: 4px solid #9C27B0;
    background: linear-gradient(135deg, #fdf8ff 0%, #f3e5f5 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.1);
}

.resource-text.resource-text-did-you-know .resource-inner::before {
    content: "Did You Know?";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #6A1B9A;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239C27B0'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

/* Myth vs Fact */
.resource-text.resource-text-myth {
    border-left: 4px solid #F44336;
    background: linear-gradient(135deg, #fff8f8 0%, #ffebee 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.resource-text.resource-text-myth .resource-inner::before {
    content: "Myth";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #C62828;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F44336'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

.myth-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #C62828;
    font-size: 16px;
}

.myth-header .material-symbols-outlined {
    color: #F44336;
    font-size: 20px;
}

/* Checklist */
.resource-text.resource-text-checklist {
    border-left: 4px solid #607D8B;
    background: linear-gradient(135deg, #f8f9fa 0%, #eceff1 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(96, 125, 139, 0.1);
}

.resource-text.resource-text-checklist .resource-inner::before {
    content: "Checklist";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #37474F;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23607D8B'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

.checklist-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #37474F;
    font-size: 16px;
}

.checklist-header .material-symbols-outlined {
    color: #607D8B;
    font-size: 20px;
}

/* Quote */
/* Quote Speech - Speech bubble with tail */
.resource-text.resource-text-quote-speech {
    position: relative;
    text-align: center;
    line-height: 1.4em;
    margin: 40px auto 80px;
    background-color: #fff;
    border: 6px solid #333;
    border-radius: 30px;
    padding: 12px 20px 20px;
    font-size: large;
    max-width: 100%;
    box-sizing: border-box;
}

.resource-text.resource-text-quote-speech::before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 30px;
    bottom: -50px;
    border: 25px solid;
    border-color: #333 transparent transparent #333;
}

.resource-text.resource-text-quote-speech::after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 37px;
    bottom: -34px;
    border: 18px solid;
    border-color: #fff transparent transparent #fff;
}

.resource-text.resource-text-quote-speech .resource-inner {
    text-align: center;
    color: #333;
}

.resource-text.resource-text-quote-speech .resource-inner p:first-child {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Quote Thought - Thought bubble with circles */
.resource-text.resource-text-quote-thought {
    position: relative;
    width: 100%;
    max-width: 100%;
    text-align: center;
    line-height: 1.4em;
    margin: 40px auto 70px;
    background-color: #fff;
    border: 6px solid #333;
    border-radius: 200px;
    padding: 22px 30px 30px;
    font-size: large;
    box-sizing: border-box;
}

.resource-text.resource-text-quote-thought::before {
    content: ' ';
    position: absolute;
    left: 10px;
    bottom: -30px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 6px solid #333;
    border-radius: 28px;
}

.resource-text.resource-text-quote-thought::after {
    content: ' ';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 5px;
    bottom: -40px;
    background-color: #fff;
    border: 6px solid #333;
    border-radius: 18px;
}

.resource-text.resource-text-quote-thought .resource-inner {
    text-align: center;
    color: #333;
}

.resource-text.resource-text-quote-thought .resource-inner p:first-child {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Quote Centered - Large prominent centered quote */
.resource-text.resource-text-quote-centered {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    border-top: 4px solid #FF882F;
    border-bottom: 4px solid #FF882F;
}

.resource-text.resource-text-quote-centered .resource-inner {
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    color: #424242;
    line-height: 1.6;
    padding-top: 30px;
}

.resource-text.resource-text-quote-centered .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #795548;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-centered .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #795548;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Citation - Quote with prominent author */
.resource-text.resource-text-quote-citation {
    border-left: 4px solid #000;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 8px;
    padding: 20px 50px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(121, 85, 72, 0.1);
}

.resource-text.resource-text-quote-citation .resource-inner {
    position: relative;
    padding-left: 20px;
}

.resource-text.resource-text-quote-citation .resource-inner::before {
    content: "\201C";
    position: absolute;
    top: -5px;
    left: -15px;
    font-size: 50px;
    font-family: Georgia, serif;
    opacity: 0.4;
    line-height: 1;
}

.resource-text.resource-text-quote-citation .resource-inner p {
    font-style: italic;
    margin-bottom: 15px;
    color: #424242;
}

.resource-text.resource-text-quote-citation .resource-inner p:last-child {
    font-style: normal;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 18px;
    padding-top: 10px;
}

/* Quote Pixel - Pixel art bubble style */
.resource-text.resource-text-quote-pixel {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    text-align: center;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.3em;
    background-color: #fff;
    color: #000;
    padding: 12px;
    box-shadow: 
        0 -4px #fff, 
        0 -8px #000, 
        4px 0 #fff, 
        4px -4px #000, 
        8px 0 #000, 
        0 4px #fff, 
        0 8px #000, 
        -4px 0 #fff, 
        -4px 4px #000, 
        -8px 0 #000, 
        -4px -4px #000, 
        4px 4px #000,
        4px 12px rgba(0,0,0,0.1), 
        12px 4px rgba(0,0,0,0.1), 
        8px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font-weight: bold;
}

.resource-text.resource-text-quote-pixel::after {
    content: '';
    display: block;
    position: absolute;
    box-sizing: border-box;
    height: 4px;
    width: 4px;
    bottom: -8px;
    left: 32px;
    box-shadow: 
        0 4px #000, 
        0 8px #000, 
        0 12px #000, 
        0 16px #000, 
        -4px 12px #000, 
        -8px 8px #000, 
        -12px 4px #000, 
        -4px 4px #fff, 
        -8px 4px #fff, 
        -4px 8px #fff, 
        -4px 0 #fff, 
        -8px 0 #fff, 
        -12px 0 #fff;
}

.resource-text.resource-text-quote-pixel .resource-inner {
    text-align: center;
    color: #000;
}

/* Quote Gene 1 - Professor Gene on left, outside overlaying border */
.resource-text.resource-text-quote-gene-1 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px 15px 0 65px;
    margin: 20px 0 45px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.resource-text.resource-text-quote-gene-1::before {
    content: '';
    position: absolute;
    left: -20px;
    bottom: -25px;
    width: 120px;
    height: 200px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 2;
}

.resource-text.resource-text-quote-gene-1 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-1 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-1 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 2 - Professor Gene on right, outside overlaying border (flip of gene-1) */
.resource-text.resource-text-quote-gene-2 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px 65px 0 15px;
    margin: 20px 0 45px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.resource-text.resource-text-quote-gene-2::before {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -25px;
    width: 120px;
    height: 200px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    transform: scaleX(-1);
    z-index: 2;
}

.resource-text.resource-text-quote-gene-2 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-2 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-2 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 3 - Professor Gene on left, inside clipped by border */
.resource-text.resource-text-quote-gene-3 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px 30px 0 100px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.resource-text.resource-text-quote-gene-3::before {
    content: '';
    position: absolute;
    left: 10px;
    bottom: -80px;
    width: 120px;
    height: 200px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 1;
    clip-path: inset(0 0 80px 0);
}

.resource-text.resource-text-quote-gene-3 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-3 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-3 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 4 - Professor Gene on right, inside clipped by border (flip of gene-3) */
.resource-text.resource-text-quote-gene-4 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px 100px 0 30px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.resource-text.resource-text-quote-gene-4::before {
    content: '';
    position: absolute;
    right: -35px;
    bottom: -80px;
    width: 120px;
    height: 200px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    transform: scaleX(-1);
    z-index: 1;
    clip-path: inset(0 0 80px 0);
}

.resource-text.resource-text-quote-gene-4 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-4 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-4 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 5 - Top part of head only, with transparent background */
.resource-text.resource-text-quote-gene-5 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin: 65px 0 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.resource-text.resource-text-quote-gene-5::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -50px;
    transform: translateX(-50%);
    width: 100px;
    height: 200px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 2;
    clip-path: inset(0 0 152px 0);
}

.resource-text.resource-text-quote-gene-5 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    padding-top: 20px;
}

.resource-text.resource-text-quote-gene-5 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-5 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 6 - Professor Gene in background, left, transparent */
.resource-text.resource-text-quote-gene-6 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.resource-text.resource-text-quote-gene-6::before {
    content: '';
    position: absolute;
    left: -30px;
    bottom: -50px;
    width: 200px;
    height: 300px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 1;
    opacity: 0.35;
}

.resource-text.resource-text-quote-gene-6 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-6 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-6 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 7 - Professor Gene in background, right, transparent (mirror of gene-6) */
.resource-text.resource-text-quote-gene-7 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.resource-text.resource-text-quote-gene-7::before {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -50px;
    width: 200px;
    height: 300px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    transform: scaleX(-1);
    z-index: 1;
    opacity: 0.35;
}

.resource-text.resource-text-quote-gene-7 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-7 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-7 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 8 - Professor Gene in background, right, transparent */
.resource-text.resource-text-quote-gene-8 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.resource-text.resource-text-quote-gene-8::before {
    content: '';
    position: absolute;
    right: -155px;
    bottom: -525px;
    width: 300px;
    height: 800px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    transform: scaleX(-1);
    z-index: 1;
    opacity: 0.35;
}

.resource-text.resource-text-quote-gene-8 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-8 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-8 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 9 - Professor Gene in background, right, transparent (copy of gene-8) */
.resource-text.resource-text-quote-gene-9 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.resource-text.resource-text-quote-gene-9::before {
    content: '';
    position: absolute;
    right: -155px;
    bottom: -525px;
    width: 300px;
    height: 800px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    transform: scaleX(-1);
    z-index: 1;
    opacity: 0.35;
}

.resource-text.resource-text-quote-gene-9 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-9 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-9 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Quote Gene 10 - Professor Gene in background, top center, transparent (moved from gene-9) */
.resource-text.resource-text-quote-gene-10 {
    position: relative;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.resource-text.resource-text-quote-gene-10::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -200px;
    transform: translateX(-50%);
    width: 200px;
    height: 300px;
    background-image: url('/images/professor-gene.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
    opacity: 0.35;
    clip-path: inset(0 0 200px 0);
}

.resource-text.resource-text-quote-gene-10 .resource-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.resource-text.resource-text-quote-gene-10 .resource-inner::before {
    content: "\201C";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-bottom: -30px;
}

.resource-text.resource-text-quote-gene-10 .resource-inner::after {
    content: "\201D";
    font-size: 60px;
    color: #333;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 0.5;
    display: block;
    margin-top: 10px;
}

/* Statistics */
.resource-text.resource-text-statistic {
    border-left: 4px solid #00BCD4;
    background: linear-gradient(135deg, #f8fdff 0%, #e0f7fa 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
}

.resource-text.resource-text-statistic .resource-inner::before {
    content: "Statistic";
    display: block;
    margin-bottom: 15px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #00695C;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300BCD4'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
}

.statistics-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #00695C;
    font-size: 16px;
}

.statistics-header .material-symbols-outlined {
    color: #00BCD4;
    font-size: 20px;
}

/* IMAGE */
/* Polaroid */
.resource-image.resource-image-polaroid {
    width: 100%;
    background: white;
    padding: 10px;
    border: 1px solid #ccc; /* Light border around the polaroid */
    box-sizing: border-box;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    text-align: center; /* Center align the caption text */
    font-family: 'Arial', sans-serif; /* Font for the caption */
    font-size: 14px; /* Caption font size */
    line-height: 1.2; /* Line height for the caption */
    transition: transform 0.2s ease-in-out; /* Smooth hover effect */
}

.resource-image.resource-image-polaroid img {
    width: 100%; /* Image takes the full width of the polaroid */
    display: block; /* Removes space under the image */
    margin-bottom: 10px; /* Space between the image and the caption */
}

.resource-image.resource-image-polaroid:hover {
    transform: rotate(-3deg) scale(1.05); /* Slight rotation and scaling on hover for effect */
}

/* Ribbon */
.resource-image.resource-image-ribbon {
    margin-left: -15px;
    margin-right: -15px;
    background-color: #D5D5D5;
    border: none;
    padding: 30px 20px;
}

.resource-image.resource-image-ribbon img {
    border: none !important;
}

/* No Border */
.resource-image.resource-image-no-border img {
    border: none !important;
}

/* Image Caption */
.image-caption {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 8px;
    text-align: left;
    line-height: 1.4;
    display: block;
}

.resource-image .image-caption,
.resource-image .resource-inner .image-caption {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 8px;
    text-align: left;
    line-height: 1.4;
    display: block;
}

.resource-image.resource-image-polaroid .image-caption {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 8px;
    text-align: left;
    line-height: 1.4;
    display: block;
}

.carousel-image + .image-caption {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 8px;
    text-align: left;
    line-height: 1.4;
    display: block;
}

/* INSTRUCTIONS */
#supplement-icons {
    position: absolute;
    top: 25px;
    right: 25px;
}

/* #supplement-icons div {
    float: left;
} */

#supplement-icons a {
    margin-left: 5px;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 48; color: #C3C3C7;
}

#supplement-icons a:hover {
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 48; color: #FE892F;
}

#instructions {
    list-style-type: square;
}

#instructions > li {
    margin-top: 25px;
    color: #F39D11;
    font-weight: bold;
    font-size: 1.2em;
}

#instructions > li:first-child {
    margin-top: 0;
}

#instructions dl {
    border: 1px dashed #ccc;
    padding: 15px 10px 10px;
    font-size: .9em;
    background-color: #efefef;
}

#instructions dt {
    float: left;
    clear: left;
    width: 100px;
    text-align: right;
    font-weight: bold;
    color: #F39D11;
}

#instructions dt::after {
    content: ":";
}

#instructions dd {
    margin: 0 0 0 110px;
    padding: 0 0 0.5em 0;
}

#instructions details {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin: 15px 0;
    background-color: #efefef;
}

#instructions summary {
    font-weight: bold;
    cursor: pointer;
}

#instructions details[open] {
    border-color: #F39D11;
}

#instructions summary::marker {
    color: #F39D11;
}

#instructions code {
    border: 1px dotted #ccc;
    border-radius: 3px;
    padding: 1px 3px;
    background-color: #efefef;
}

#instructions pre.prettyprint {
    margin-left: 20px; /* Indent the whole block */
    padding: 10px; /* Add padding inside the block */
    background-color: #f5f5f5; /* Optional: light background */
    border-radius: 5px; /* Optional: rounded corners */
}

/* STATS */
.stats-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stats-container,
.flex-container #totalQuestions {
    margin-left: auto;
    position: relative;
    top: -5px;
}

.stats-container {
    margin-top: 10px;
}

.alert-text {
    color: #fff;
    font-size: .8em;
    border: 1px dotted #ccc;
    background-color: #BF0F0F;
    border-radius: 25px;
    padding: 1px 5px;
}

.resource-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: calc(20% * 5 + 20px * 2);
    margin-bottom: 15px;
}

.resource-styles .tile {
    flex: 1 1 calc(10% - 20px); /* Tiles take up 1/5 of the container width, minus the gap */
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    border-radius: 5px;
    position: relative;
    justify-content: center;
}

.resource-styles .resource-image img {
    width: 100%;
    border: 1px solid #9B9B9B;
}

.resource-styles .resource-image:not(:empty) {
    min-width: 250px;
    min-height: 150px;
}

.resource-styles .resource-text:not(:empty) {
    min-width: 175px;
    min-height: 125px;
}

.resource-styles .tile:hover {
    transform: scale(1.03); /* Slight rotation and scaling on hover for effect */
    cursor: pointer;
}

.resource-styles .tile.selected {
    background-color: #d1e7dd; /* Highlight color for selected tile */
    border-color: #0f5132;
}

.resource-styles .tile.selected::after {
    content: '✔'; /* Checkmark */
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.5em;
    color: #0f5132;
}

.resource-styles .tile .resource-container {
    transform: scale(0.8);
}

@media (max-width: 768px) {
    .resource-styles .tile {
      flex: 1 1 calc(50% - 20px); /* On smaller screens, two tiles per row */
    }
}

@media (max-width: 480px) {
    .resource-styles .tile {
        flex: 1 1 100%; /* On very small screens, one tile per row */
    }
}

/* ===== Carousel loading overlay and spinner (for mobile preview) ===== */
.carousel-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    z-index: 5;
}

.carousel-container.loading {
    min-height: 160px; /* opens up the card while loading */
}

/* Hide nav and dots until fully loaded */
.carousel-container.loading .carousel-nav,
.carousel-container.loading .carousel-dots {
    display: none;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e9ecef;
    border-top-color: #6c757d;
    border-radius: 50%;
    animation: sg-spin 0.8s linear infinite;
}

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

.subheading {
    background-color: #ddd;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 15px !important;
}

.jsoneditor {
    border: 1px solid #FE892F !important;
    border-radius: 5px 5px 0 0;
}

.jsoneditor-menu > button {
    display: none;
}

.jsoneditor-contextmenu {
    z-index: 5 !important;
}

.jsoneditor table,
.jsoneditor th,
.jsoneditor td {
    border: none;
}

.jsoneditor .jsoneditor-tree {
    background: none;
}

.jsoneditor .jsoneditor-tree-inner {
    padding: 10px;
    background-color: #fff;
}

/* Editor Key Styling */
.jsoneditor-tree .jsoneditor-field {
    color: #FE892F;
    font-weight: bold; /* Bold key names */
}

/* Editor Value Styling */
.jsoneditor-tree .jsoneditor-value {
    color: #495057; /* Darker text for values */
}

/* Buttons (e.g., add, delete) */
.jsoneditor-tree button {
    background-color: #FE892F;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 5px;
    cursor: pointer;
}

/* Adjust button hover states */
.jsoneditor-tree button:hover {
    background-color: #FE892F;
}

/* Customize the plus and minus buttons for expanding/collapsing */
.jsoneditor-expandable {
    background-color: #f8f9fa;
    color: #28a745; /* Green plus/minus */
}

/* Customize the input field appearance */
.jsoneditor-tree input {
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 3px;
    background-color: #ffffff; /* White input background */
    color: #495057;
}

/* Remove scrollbars unless necessary */
.jsoneditor-outer {
    overflow: auto;
    max-height: 400px; /* Ensure the editor doesn’t overflow the container */
}

.jsoneditor .jsoneditor-menu {
    background-color: #FE892F;
    border-bottom: none;
}

.jsoneditor select {
    padding: 2px;
    margin-bottom: 0;
}

.jsoneditor .jsoneditor-search {
    display: none;
}

.jsoneditor .jsoneditor-expand-all,
.jsoneditor .jsoneditor-collapse-all,
.jsoneditor .jsoneditor-sort,
.jsoneditor .jsoneditor-transform {
    display: none;
}

.jsoneditor .jsoneditor-outer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.jsoneditor .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected,
.jsoneditor .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus,
.jsoneditor .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover {
    background-color: #FE892F;
}

.pill {
    font-size: .8em;
    border: 1px dotted #ccc;
    border-radius: 25px;
    padding: 1px 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.pill img {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 4px;
}

.pill.pill-inactive {
    color: #bbbbbb;
    background-color: #eeeeee;
    border-color: #dddddd;
}

.pill.pill-fade {
    color: #bbbbbb;
    background-color: #eeeeee;
    border-color: #dddddd;
    opacity: 0.4;
    font-style: italic;
}

.pill.pill-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.pill.pill-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.pill.pill-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.pill.pill-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.pill.pill-notice {
    color:  #5E3C9B;
    background-color: #ede4f8;
    border-color: #d6c5ed;
}

.pill.pill-focus {
    color: #004D40;
    background-color: #B2DFDB;
    border-color: #9acac7;
}

.pill.pill-reply {
    color: #8E44AD;
    background-color: #F4ECF7;
    border-color: #D7BDE2;
}

.move-icon {
    cursor: move;
    width: 24px;
    height: 24px;
}

.pill[style*="cursor: pointer"]:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.2s ease;
}



/* Styling for resolved checkmarks */
.resolved-checkmark {
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Make resolved status pills more prominent */
.comment-status.pill-success {
    background: #28a745 !important;
    color: white !important;
    border: 1px solid #28a745 !important;
}

/* Styling for reopen button */
.icon-button[onclick*="reopenComment"] {
    color: #6c757d;
}

.icon-button[onclick*="reopenComment"]:hover {
    color: #495057;
    background: #f8f9fa;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    src: url(../fonts/material-symbols-outlined.woff2) format('woff');
  }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
    position: relative;
    top: -1px; /* Fine-tune vertical alignment */
  }

.logo-image {
    height: 75px;
    position: relative;
    top: -4px;
    left: -10px;
    margin-right: -20px;
    vertical-align: middle;
}

.loading-bar {
    background-color: #7cdc6d;
    height: 4px;
    width: 0;
    transition: width 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
}

.progress-container {
    width: 100%;
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    position: relative;
    margin-top: 4px;
    overflow: hidden; /* so segments don’t extend outside */
}

.progress-segment {
    height: 5px;
    float: left;
}

.progress-container .progress-segment:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.progress-container .progress-segment:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.progress-segment.info-segment {
    background: #5bd0f0; /* In Progress */
}

.progress-segment.notice-segment {
    background: #b99af9; /* Review Requested or Pending, etc. */
}

.progress-segment.danger-segment {
    background: #f68f8f; /* Needs Update / On Hold */
}

.progress-segment.focus-segment {
    background: #42d1c7; /* Blocked */
}

.progress-segment.success-segment {
    background: #7cdc6d; /* Done / Approved */
}

.progress-segment.warning-segment {
    background: #ffe57f; /* Pending */
}

.progress-segment.inactive-segment {
    background: #dddddd; /* Default */
}

.progress-segment.unassigned-segment {
    background: #dddddd; /* Unassigned */
}

.script {
    font-size: 18px;
    vertical-align: middle;
    color: #000;
}

.ace_editor.ace-jsoneditor {
    min-height: 350px;
}

/* Additional styles for the filter UI */
#filterContainer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

#filterOptions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Styles for dropdowns */
select:disabled {
    background-color: #f0f0f0;
    color: #a0a0a0;
    cursor: not-allowed;
}

/* Style for grayed-out rows */
.grayed-out {
    opacity: 0.3;
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
    #filterContainer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.video-loading-wrapper {
    position: relative;
    padding-top: 56.25%;
    background-color: #f0f0f0;
}

.video-loading-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border: 0;
}

.video-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.video-url-link {
    display: inline-block;
    margin-right: 6px;
    padding: 3px 6px;
    font-size: 10px;
    background-color: #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    position: relative;
    top: -10px;
}

.video-url-link:hover {
    background-color: #ccc;
}

.video-shimmer, .resource-video {
    border: 1px solid #ddd;
}

/* Flashcard Styles */
.flashcard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
    flex-direction: column;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.flashcard-container .flashcard {
    position: relative;
}

.flashcard {
    border-top: 3px solid #F0C217;
    width: 300px;
    height: 200px;
    padding: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    position: relative;
    transform-style: preserve-3d;
    transition: transform in: 0 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flashcard .flashcard-front img {
    border: none;
    width: 35%;
    margin-left: 5px;
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: white;
    box-sizing: border-box;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard-back {
    transform: rotateY(180deg);
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.flashcard-control-btn {
    background: #FE892F;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.flashcard-control-btn:hover {
    background: #e67e22;
    transform: scale(1.1);
}

.flashcard-control-btn.active {
    background: #e67e22;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.5);
}

.flashcard-control-btn .material-symbols-outlined {
    font-size: 20px;
}

.flashcard-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.flashcard-arrow {
    width: 50px;
    height: 50px;
    background: #FE892F;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    flex-shrink: 0;
    padding: 0;
}

.flashcard-arrow .material-symbols-outlined {
    font-size: 28px;
    font-weight: normal;
}

.flashcard-arrow:hover {
    background: #e67e22;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.5);
}

.flashcard-controls .flashcard-index {
    font-size: 1em;
    line-height: 2em;
    color: #2B4051;
    font-weight: 500;
    margin: 0 5px;
}


.flashcard-navigation .flashcard-index {
    font-size: 1em;
    line-height: 2em;
    color: #2B4051;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-inner {
    height: 100%;
    background-color: #2B4051;
    width: 0%;
    transition: width 0.3s ease;
}

/* Audit Page Styles */
#loadingBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #3498db;
    width: 0%;
    transition: width 0.3s ease-in-out;
    z-index: 1000;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.audit-table th, .audit-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.audit-table th {
    background-color: #f5f5f5;
}

.audit-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.summary-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.summary-section h3 {
    margin-top: 0;
}

/* Outline page: Table / List view tabs (Skill Genius orange theme) */
.outline-view-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #ff9500;
}
.outline-view-tab {
    padding: 10px 20px;
    border: none;
    border-bottom: 2px solid #ff9500;
    background: #fff5eb;
    color: #2B4051;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
    margin-bottom: -2px;
    transition: background 0.2s ease, color 0.2s ease;
}
.outline-view-tab:hover {
    background: #ffe4cc;
    color: #2B4051;
}
.outline-view-tab.active {
    background: #ff9500;
    color: #fff;
    border-bottom: 2px solid #ff9500;
    /* Covers the orange line so it only shows under inactive tab = inactive looks in background */
}
.outline-view-tab.active:hover {
    background: #e6850e;
    color: #fff;
}
.outline-view-panel {
    padding: 0;
}

/* Comment System Styles */
.comments-section {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* Ensure it auto-grows in height */
    height: auto;
    min-height: 200px;
    /* Position it properly within the right column */
    width: 100%; /* Take full width of right column */
    max-width: 335px; /* Don't exceed right column width */
    /* Ensure it flows naturally below the iPhone */
    position: relative;
    left: 7px;
    clear: both;
    /* Add some spacing from the iPhone */
    margin-top: 40px;
}

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

.comments-header h3 {
    margin: 0;
}

.close-form-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-form-button:hover {
    background: #f8f9fa;
    color: #2B4051;
}

.comment-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.comment-filters select {
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* User Menu Styles */
.user-menu {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.user-menu-toggle {
    width: 50px;
    height: 50px;
    background: #ff9500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.user-menu-toggle:hover {
    background: #e6850e;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.4);
}

.user-menu-toggle .material-symbols-outlined {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.user-menu-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    display: none;
    border: 1px solid #e0e0e0;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.user-menu-header .material-symbols-outlined {
    color: #ff9500;
    font-size: 20px;
}

.user-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #495057;
}

.user-menu-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.user-menu-btn .material-symbols-outlined {
    font-size: 16px;
    color: #6c757d;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* User Menu Navigation Section */
.user-menu-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.user-menu-section h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-menu-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    font-size: 13px;
    transition: all 0.2s ease;
}

.user-menu-nav-item:hover {
    background: #f8f9fa;
    color: #212529;
    text-decoration: none;
}

.user-menu-nav-item .material-symbols-outlined {
    font-size: 16px;
    color: #6c757d;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Comment Icon - Lower Right Corner */
.comment-icon-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1003;
    cursor: pointer;
}

.comment-icon {
    width: 50px;
    height: 50px;
    background: #ff9500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    transition: all 0.3s ease;
    color: white;
    position: relative;
}

.comment-icon:hover {
    background: #e6850e;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.4);
}

.comment-icon .material-symbols-outlined {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.comment-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
    box-sizing: border-box;
}

.comment-icon-badge:empty {
    display: none;
}

/* Messaging Center */
.messaging-center {
    position: fixed;
    bottom: 84px;
    right: 20px;
    width: 500px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 104px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    display: none;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.messaging-center-header {
    padding: 16px 20px;
    background: #FF882F;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.messaging-center-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.messaging-center-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.messaging-center-mark-all-read {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.messaging-center-mark-all-read:hover {
    background: rgba(255, 255, 255, 0.2);
}

.messaging-center-mark-all-read .material-symbols-outlined {
    font-size: 24px;
}

.messaging-center-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.messaging-center-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.messaging-center-close .material-symbols-outlined {
    font-size: 24px;
}

.messaging-center-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.messaging-center-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.messaging-center-list {
    padding: 0;
}

.messaging-center-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    cursor: pointer;
}

.messaging-center-item:hover {
    background: #fff5e6;
}

.messaging-center-item:last-child {
    border-bottom: none;
}

.messaging-center-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.messaging-center-item-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messaging-center-item-author strong {
    color: #333;
    font-size: 14px;
}

.messaging-center-item-time {
    color: #999;
    font-size: 12px;
}

.messaging-center-item-content {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.mention-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
}

.mention-highlight.mention-current-user {
    background: #d1ecf1;
    color: #0c5460;
    font-weight: 700;
}

.messaging-center-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.messaging-center-item-topic {
    font-weight: 500;
}

.messaging-center-item-resource {
    color: #999;
    font-family: monospace;
}

.messaging-center-item-actions {
    display: flex;
    gap: 8px;
}

.messaging-center-item-actions .action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FE892F;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.messaging-center-item-actions .action-button:hover {
    background: #d4870f;
}

.messaging-center-item-actions .action-button .material-symbols-outlined {
    font-size: 16px;
}

/* Pill styles for comment types */
.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-info {
    background: #E3F2FD;
    color: #1976D2;
}

.pill-warning {
    background: #FFF3E0;
    color: #F57C00;
}

.pill-success {
    background: #E8F5E9;
    color: #388E3C;
}

.pill-danger {
    background: #FFEBEE;
    color: #D32F2F;
}

.pill-inactive {
    background: #F5F5F5;
    color: #757575;
}

.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    /* Ensure form can grow */
    height: auto;
    min-height: 150px;
    overflow: hidden;
}

.comment-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-row select,
.form-row textarea {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', Roboto, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    resize: vertical;
    max-height: 200px;
}

.resource-id-display {
    font-family: monospace;
    background: #fff8e6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #ff9500;
    border: 1px solid #ff9500;
    font-weight: 500;
    max-width: 38ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
}

.comment-resource-container,
.comment-question-container {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
}

.comment-orphaned-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-orphaned-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px !important;
    padding: 4px 8px !important;
    color: #6c757d !important;
    background: #e9ecef !important;
    border: 1px dashed #adb5bd !important;
}

.comment-resource-id-muted {
    font-size: 11px;
    color: #adb5bd;
    font-family: monospace;
}

.comment-resource,
.comment-question,
.comment-resource.pill,
.comment-question.pill,
.comment-resource.pill.pill-warning,
.comment-question.pill.pill-warning {
    font-size: 11px !important;
    padding: 6px !important;
    border-radius: 3px !important;
    background: #FDF8E3 !important;
    color: #8a6d3b !important;
    font-weight: 500 !important;
    border: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: inline-block !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    width: 100%px;
    text-overflow: ellipsis !important;
    align-items: unset !important;
    gap: 0 !important;
    width: 100% !important;
}

.comment-resource:hover,
.comment-question:hover,
.comment-resource.pill:hover,
.comment-question.pill:hover,
.comment-resource.pill.pill-warning:hover,
.comment-question.pill.pill-warning:hover {
    transform: scale(1.05);
}

/* Hide the Resource row when adding a general comment (no specific resource) */
#commentResourceLabel.comment-resource-row--hidden {
    display: none !important;
}

.existing-comments-preview {
    margin-top: 5px;
    font-size: 12px;
    font-style: italic;
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.comments-list {
    /* Remove fixed height to allow auto-growing */
    height: auto;
    min-height: 100px;
    /* Keep overflow for very long comment lists */
    max-height: none;
    overflow-y: visible;
}

.comment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
    transition: all 0.2s ease;
    /* Ensure items can grow */
    height: auto;
    min-height: 80px;
}

.comment-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-item.resolved {
    opacity: 0.7;
    background: #f8f9fa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.comment-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #2B4051;
}

.comment-timestamp {
    color: #6c757d;
    font-size: 0.9em;
}

.comment-type,
.comment-status {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: capitalize;
}

.comment-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.icon-button.small {
    padding: 2px;
    font-size: 12px;
    margin-left: 5px;
}

.icon-button:hover {
    background: #f8f9fa;
    color: #2B4051;
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

.comment-replies {
    margin-left: 20px;
    border-left: 2px solid #e9ecef;
    padding-left: 15px;
}

.reply-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.reply-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.reply-author {
    font-weight: 600;
    color: #2B4051;
    font-size: 0.9em;
}

.reply-timestamp {
    color: #6c757d;
    font-size: 0.8em;
}

.reply-content {
    color: #555;
    line-height: 1.4;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    /* Ensure reply form can grow */
    height: auto;
    min-height: 120px;
    overflow: hidden;
}

.reply-form .form-row textarea {
    min-height: 60px;
    max-height: 150px;
}

.no-comments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

.comment-count {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .messaging-center {
        right: 12px;
        bottom: 76px;
        width: min(560px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 76px);
    }

    .comment-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .comment-replies {
        margin-left: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .messaging-center {
        right: 8px;
        bottom: 72px;
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 72px);
        border-radius: 12px;
    }
}

.no-records {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.form-section {
    /* Form section container */
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.form-section-header {
    /* Form section header */
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.form-section-header:hover {
    background-color: #e9ecef;
}

.form-section-header .section-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.form-section-header .chevron {
    color: #666;
    transition: transform 0.2s ease;
    font-size: 18px;
}

.form-section.expanded .chevron {
    transform: rotate(90deg);
}

.form-section-content {
    /* Form section content */
    padding: 15px;
    display: none;
}

.form-section.expanded .form-section-content {
    display: block;
}

/* Configuration Options Styles */
.config-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.config-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.config-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.config-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.config-select:hover {
    border-color: #FE892F;
}

.config-select:focus {
    outline: none;
    border-color: #FE892F;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

/* Expand Preview Styles */
.expand-preview-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.expand-preview-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.expand-preview {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    max-width: 400px;
}

.expand-preview .resource-expand {
    margin: 0;
}

.expand-preview .expandable-item {
    margin-bottom: 10px;
}

.expand-preview .expandable-item:last-child {
    margin-bottom: 0;
}

.expand-preview .expandable-header {
    cursor: pointer;
    user-select: none;
}

.expand-preview .expandable-item.expanded .expandable-body {
    display: block;
}

/* Expand Resource Styles - From Library Example */
.resource-expand .expandable-header {
    background-color: #2A4051;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #2A4051;
}

.resource-expand .expandable-header:hover {
    background-color: #1e2e3a;
}

.resource-expand .expandable-body {
    padding: 20px;
    border-radius: 0 0 15px 15px;
    display: none;
    background-color: #d3d3d3;
    color: #333;
}

.resource-expand .expandable-item.expanded .expandable-header {
    border-radius: 25px 25px 0 0;
}

.resource-expand .expandable-item.expanded .expandable-body {
    display: block;
}

/* Style Variations */
.resource-expand.style-blue .expandable-header {
    background-color: #2A4051;
    border-left-color: #2A4051;
    color: white;
}

.resource-expand.style-blue .expandable-header:hover {
    background-color: #1e2e3a;
}

.resource-expand.style-blue .expandable-body {
    background-color: #d3d3d3;
    color: #333;
}

.resource-expand.style-orange .expandable-header {
    background-color: #FE892F;
    border-left-color: #FE892F;
    color: white;
}

.resource-expand.style-orange .expandable-header:hover {
    background-color: #e67e22;
}

.resource-expand.style-orange .expandable-body {
    background-color: #fff3e0;
    color: #333;
}

.resource-expand.style-gray .expandable-header {
    background-color: #6c757d;
    border-left-color: #6c757d;
    color: white;
}

.resource-expand.style-gray .expandable-header:hover {
    background-color: #5a6268;
}

.resource-expand.style-gray .expandable-body {
    background-color: #f8f9fa;
    color: #333;
}

/* Gradient theme */
.resource-expand.style-gradient .expandable-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.resource-expand.style-gradient .expandable-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.resource-expand.style-gradient .expandable-header:hover::after {
    left: 100%;
}

.resource-expand.style-gradient .expandable-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.resource-expand.style-gradient .expandable-body {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    color: #333;
    border-left: 4px solid #667eea;
    box-shadow: inset 0 2px 10px rgba(102, 126, 234, 0.1);
    position: relative;
}

.resource-expand.style-gradient .expandable-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.resource-expand.style-gradient .expandable-item.expanded .expandable-header {
    border-radius: 25px 25px 0 0;
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Modern theme */
.resource-expand.style-modern .expandable-header {
    background-color: #ffffff;
    border-left: 4px solid #2c3e50;
    color: #2c3e50;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
    border: 1px solid #e1e8ed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px 20px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.resource-expand.style-modern .expandable-header:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
    transform: translateY(-1px);
}

.resource-expand.style-modern .expandable-body {
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
    margin-top: -1px;
    position: relative;
    padding: 24px 20px;
    line-height: 1.6;
}

.resource-expand.style-modern .expandable-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #e1e8ed;
}

.resource-expand.style-modern .expandable-item.expanded .expandable-header {
    border-right: 1px solid #e1e8ed;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e1e8ed;
    background-color: #f8f9fa;
}

.resource-expand.style-modern .expandable-item.expanded .expandable-body {
    border-right: 1px solid #e1e8ed;
    border-radius: 0 0 8px 8px;
    background-color: #fafbfc;
}

.resource-expand.style-modern .expandable-item {
    margin-bottom: 16px;
}

.resource-expand.style-modern .expandable-item:last-child {
    margin-bottom: 0;
}

/* Icon Variations */
.resource-expand.icon-plus .expandable-header::before {
    content: '+';
    font-weight: bold;
    font-size: 2em;
    color: inherit;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}

.resource-expand.icon-plus .expandable-item.expanded .expandable-header::before {
    content: '−';
    transform: rotate(180deg);
}

.resource-expand.icon-arrows .expandable-header::before {
    content: '▼';
    font-size: 1.5em;
    color: inherit;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}

.resource-expand.icon-arrows .expandable-item.expanded .expandable-header::before {
    content: '▼';
    transform: rotate(180deg);
}

.resource-expand.icon-chevron .expandable-header::before {
    content: '›';
    font-size: 2em;
    color: inherit;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}

.resource-expand.icon-chevron .expandable-item.expanded .expandable-header::before {
    content: '›';
    transform: rotate(90deg);
}

.resource-expand.icon-none .expandable-header::before {
    display: none;
}

/* Icon Position Variations */
.resource-expand.icon-position-left .expandable-header {
    flex-direction: row;
}

.resource-expand.icon-position-left .expandable-header::before {
    order: 1;
    margin-right: 12px;
}

.resource-expand.icon-position-left .expandable-header .header-text {
    order: 2;
}

.resource-expand.icon-position-right .expandable-header {
    flex-direction: row;
    justify-content: space-between;
}

.resource-expand.icon-position-right .expandable-header::before {
    order: 2;
    margin-left: 12px;
}

.resource-expand.icon-position-right .expandable-header .header-text {
    order: 1;
    flex: 1;
    text-align: left;
}
/* ===== PROGRESSIVE RESOURCE ===== */
.progressive-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
}

.prog-card {
    background: white;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.progressive-container.animation-fade .prog-card {
    opacity: 0;
    transform: none;
    transition: opacity 0.5s ease;
}

.progressive-container.animation-slide .prog-card {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.prog-card.prog-card-active {
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
}

.prog-card-heading {
    font-weight: 600;
    font-size: 15px;
    color: #2B4051;
    margin-bottom: 6px;
}

.prog-card-text {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
}

.prog-card-text p { margin: 0; }

.prog-reveal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin: 0 auto 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prog-reveal-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 16px rgba(0,0,0,0.2);
}

.prog-reveal-btn .material-symbols-outlined {
    font-size: 20px;
    color: white;
}

.prog-btn-orange { background: #FE892F; }
.prog-btn-blue   { background: #2B4051; }

/* Fix: animation variants need explicit active state overrides */
.progressive-container.animation-fade .prog-card.prog-card-active,
.progressive-container.animation-slide .prog-card.prog-card-active,
.progressive-container.animation-show .prog-card.prog-card-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Show mode: hide inactive cards completely (no ghost space) */
.progressive-container.animation-show .prog-card:not(.prog-card-active) {
    display: none;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps-container { padding: 4px 0; }
.ps-title { font-size: 15px; font-weight: 700; color: #2B4051; text-align: center; margin-bottom: 4px; }
.ps-subtitle { font-size: 12px; color: #888; text-align: center; margin-bottom: 14px; }
.ps-steps-list { list-style: none; padding: 0; margin: 0; }

/* Style A: vertical connector line */
.ps-style-a .ps-step-item {
    display: flex; gap: 12px; align-items: flex-start; padding-bottom: 16px; position: relative;
}
.ps-style-a .ps-step-item:not(:last-child)::after {
    content: ''; position: absolute; left: 17px; top: 36px; width: 2px;
    height: calc(100% - 18px); background: #e0e0e0;
}

/* Style B: cards */
.ps-style-b .ps-step-item {
    background: white; border-radius: 10px; border: 1px solid #e8e8e8;
    padding: 12px; margin-bottom: 8px; display: flex; gap: 12px;
    align-items: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ps-style-b .ps-number-circle { background: #FE892F; }

/* Style C: minimal left border */
.ps-style-c .ps-step-item {
    border-left: 3px solid #FE892F; padding: 8px 8px 8px 14px;
    margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start;
}
.ps-style-c .ps-number-circle {
    background: #f4f4f9; color: #FE892F; border: 2px solid #FE892F; font-size: 12px;
}

/* Number circle */
.ps-number-circle {
    width: 34px; height: 34px; border-radius: 50%; background: #2B4051;
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0; position: relative; z-index: 1;
}
.ps-number-circle.ps-accent { background: #FE892F; }

/* Icon circle */
.ps-icon-circle {
    width: 34px; height: 34px; border-radius: 50%; background: #FE892F;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; position: relative; z-index: 1;
}
.ps-icon-circle .material-symbols-outlined { font-size: 18px; color: white; }

/* Step body */
.ps-step-body { flex: 1; padding-top: 4px; }
.ps-step-title { font-size: 14px; font-weight: 700; color: #2B4051; margin-bottom: 3px; }
.ps-step-desc { font-size: 12px; color: #666; line-height: 1.5; }
.ps-step-tag {
    display: inline-block; background: #fff0d6; color: #b7770d;
    border-radius: 4px; font-size: 10px; font-weight: 700;
    padding: 2px 6px; margin-top: 4px; text-transform: uppercase;
}

/* ============================================================
   SCENARIO
   ============================================================ */
.scenario-container { padding: 4px 0; }
.scenario-empty { text-align: center; color: #888; padding: 20px; }

.sc-counter { font-size: 11px; color: #999; text-align: right; margin-bottom: 6px; }
.sc-progress { height: 4px; background: #e0e0e0; border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.sc-progress-fill { height: 100%; background: #FE892F; border-radius: 2px; transition: width 0.4s ease; }

.sc-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.sc-header {
    background: #2B4051; color: white; padding: 12px 16px;
    display: flex; align-items: center; gap: 10px;
}
.sc-header .material-symbols-outlined { font-size: 22px; color: #FE892F; }
.sc-header-text { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.sc-scene { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #2B4051; line-height: 1.6; }
.sc-question { padding: 10px 16px; background: #f8f9fa; font-size: 13px; font-weight: 600; color: #2B4051; border-bottom: 1px solid #e0e0e0; }
.sc-choices { padding: 12px 16px; }

.sc-choice-btn {
    display: block; width: 100%; text-align: left; background: white;
    border: 2px solid #e0e0e0; border-radius: 8px; padding: 10px 12px;
    margin-bottom: 8px; font-size: 13px; color: #2B4051; cursor: pointer;
    transition: all 0.2s ease; line-height: 1.4;
}
.sc-choice-btn:last-child { margin-bottom: 0; }
.sc-choice-btn:hover:not(:disabled) { border-color: #FE892F; background: #fffbf0; }
.sc-choice-btn:disabled { cursor: default; opacity: 0.7; }

.sc-choice-letter {
    display: inline-block; width: 20px; height: 20px; background: #e0e0e0;
    border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 20px;
    text-align: center; margin-right: 8px; vertical-align: middle;
}

.sc-selected-correct { border-color: #27ae60; background: #eafaf1; color: #1a7a44; }
.sc-selected-correct .sc-choice-letter { background: #27ae60; color: white; }
.sc-selected-incorrect { border-color: #e74c3c; background: #fdecea; color: #c0392b; }
.sc-selected-incorrect .sc-choice-letter { background: #e74c3c; color: white; }
.sc-show-correct { border-color: #27ae60; background: #eafaf1; }
.sc-show-correct .sc-choice-letter { background: #27ae60; color: white; }

.sc-outcome { padding: 14px 16px; border-top: 2px solid #e0e0e0; }
.sc-outcome-success { background: #f0faf4; border-color: #27ae60; }
.sc-outcome-failure { background: #fdf2f2; border-color: #e74c3c; }
.sc-outcome-neutral { background: #fff9e6; border-color: #FE892F; }

.sc-outcome-icon { font-size: 24px; text-align: center; margin-bottom: 6px; }
.sc-outcome-text { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 10px; }
.sc-outcome-nav { display: flex; gap: 8px; }

.sc-nav-btn { flex: 1; padding: 8px; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }
.sc-nav-primary { background: #FE892F; color: white; }
.sc-nav-primary:hover { background: #e67e22; }
.sc-nav-secondary { background: #2B4051; color: white; }
.sc-nav-secondary:hover { background: #1a2a35; }
