html, body {
    width: 100%;
    font-family: Arial, sans-serif; 
    padding: 0;
    margin: 0;
    border: none;
    border-collapse: collapse;
}

img {
    display: block;
}

h2, h3, h4, p, .question, .answer, .message, .list-view {
    margin-bottom: 0px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

p ul, li, ol, code {
    font-size: 16px;             
    line-height: 24px;                 
    margin-bottom: 0px;                
}

  .left-actions { margin: 8px 10px 0 10px; text-align: left; }
  .left-actions .download-pages { margin: 0; } 

/* Page layout for purchase access and login form */
.login-page {
    display: flex;
    justify-content: flex-start; /* Aligns everything to the left */
    padding: 20px;
}

/* Left section for purchase access */
.purchase-access {
    width: 300px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px; /* Adds space between the purchase and login sections */
}

.purchase-access h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.purchase-access p {
    margin-bottom: 15px;
}

.contact-link {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.form-row {
    display: flex;
    gap: 10px; /* space between fields */
}

.form-field {
    flex: 1; /* first name and surname take equal width */
    display: flex;
    flex-direction: column;
}

/* Right section for login form */
.login-form-container {
    width: 400px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: 0; /* Remove right alignment */
}

.login-form-container h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* General form styling */
.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    padding-left: 10px; /* Add space inside the input fields */
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.reset-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
}

/* Error message styling */
.error-message {
    color: red;
    margin-bottom: 15px;
}

 /* Matching Question Begin */

    .ghost-green{ color:#2e7d32; font-weight:600; }
    .ghost-red{ color:#c62828; font-weight:600; }
    .ghost-pale{ color:#999; }
    .definition-item{
        display:flex; 
        align-items:center;
        padding:8px 10px; 
        border:1px solid #ddd; 
        border-radius:6px;
        min-height:60px; 
        background:#f9f9f9; 
        box-sizing:border-box; 
        cursor:grab;
    }
    .definition-item:active{ 
        cursor:grabbing; 
    }
    .matching-placeholder{ 
        height:60px; 
        border:2px dashed #bbb; 
        border-radius:6px; 
        margin:6px 0; 
    }
    .definition-item.is-correct{ 
        background:#D4F8D4 !important; 
    }
    .definition-item.is-incorrect{ 
        background:#FFB3B3 !important; 
    }
    .matching-table { 
        table-layout: auto; 
        width: 100%; 
    }
    .col-words { 
        width: 1%; 
        white-space: nowrap; 
    }   
    .col-words ol { 
        width: max-content; 
    }  
    .word { 
        white-space: nowrap; 
        padding: 0 2px; 
    }    
    .word-item{
        display:flex; 
        align-items:center; 
        gap:10px;
        padding:12px 16px;                  
        border:1px solid #ddd; 
        border-radius:6px;
        min-height:60px; 
        background:#f9f9f9; 
        box-sizing:border-box;
        position:relative; 
        width:max-content;
    }
    .word-item.spelling .spell-wrap{ 
        display:inline-block; 
    } 
    .word-item.spelling .word{ 
        visibility: hidden; 
    }        
    .word-item.correct .word{ 
        color:#2e7d32; 
        font-weight:600; 
    }
    .spell-ghost{ 
        position:absolute; 
        inset:0; 
        white-space:pre; 
        pointer-events:none; 
        border:1px solid #ccc; 
    }
    .spell-input{ 
        position:relative; 
        background:transparent; 
        color:transparent; 
        border:1px solid #ccc; 
        width: auto; 
        max-width: 100%; 
    }  
    .spell-wrap{ 
        position:relative; 
        display:none; 
    } 
    .spell-ghost,.spell-input{
        font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
        font-size:16px; 
        line-height:1.6; 
        padding:4px 8px; 
        min-width: 0; 
        border-radius:4px;
    }
 /* Matching Question End */

.menu-label-cell {
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.menu-link-cell {
    width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

/* Strong underline hover/active effect just for the top nav menu */
.menu li a {
    position: relative;      /* needed for the ::after bar */
    text-decoration: none;   /* override global link underline */
}

/* the underline bar */
.menu li a::after {
    content: "";
    position: absolute;
    left: 12px;              /* inset so it matches tab padding */
    right: 12px;
    bottom: 6px;             /* sits inside the tab, not outside */
    height: 3px;
    background: #f59512;     /* your accent colour */
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

/* show the underline on hover/focus */
.menu li a:hover::after,
.menu li a:focus-visible::after {
    transform: scaleX(1);
}

/* keep the underline for the current page (active tab) */
.menu li a.active::after {
    transform: scaleX(1);
}

/* keep the text from getting underlined by your global rule */
.menu li a:hover,
.menu li a:focus {
    text-decoration: none;
}


.question, .answer, .message{ 
    margin: 20px; 
    font-size: 20px; 
}

#revealBtn { 
    margin: 20px; 
    font-size: 16px; 
    cursor: pointer; 
}

.form-row {
    width: 400px;
    display: flex;
    margin-bottom: 10px; /* Space between rows */
}
.form-row label {
    flex-basis: 50%; /* Assigns 50% of the container's width to the label */
    padding-right: 10px; /* Space between the label and the select */
    text-align: right;
}
.form-row select {
    flex-basis: 50%; /* Assigns 50% of the container's width to the select */
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background-color: #ebebeb;
    text-align: center;
    border-radius: 8px;
}

.logo img {
    height: 90px; /* Keep image aspect ratio */
    width: auto; /* You can set a max-width here if needed */
    display: block;
}
.user-info {
    display: flex;
    align-items: right;
    padding: 10px;
    font-size: 14px;
    color: #ffffff;
}

.right-aligned-table {
    width: 100%;
    text-align: right;
}

.menu {
    list-style-type: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; 
    background-color: #333;
    border-radius: 0 8px 8px 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.menu li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 8px 8px 0 0; 
    font-family: Arial, sans-serif; 
}

.menu li a:hover {
    background-color: #111;
}

.menu li a.active {
    background-color: #111;
}

.admin-menu li a, .teacher-menu li a, .student-menu li a {
    background-color: #4CAF50; 
}

.admin-menu li a:hover, .teacher-menu li a:hover, .student-menu li a:hover {
    background-color: #45a049;
}

.wrapper {
    display: flex;
    flex-direction: row; /* Explicitly set the flex direction */
    min-height: 100vh; /* Ensure the wrapper fills at least the viewport height */
}

.sidebar {
    width: 35px; /* Initial collapsed width */
    transition: width 0.3s ease; /* Smooth transition for the sidebar width */
    background-color: #f0f0f0;
    overflow-y: auto; /* Adds scroll to the sidebar if content overflows */
    flex-shrink: 0; /* Prevents the sidebar from shrinking */
}

.sidebar.expanded {
    width: 25%; /* Expanded width */
}

.content.expanded {
    width: 100%; /* Adjust width as needed when sidebar is expanded or other conditions change */
}

.subjects a.subject-link {
    font-size: 14px;
    margin: 5px 5px 5px 45px;
    display: inline-block; /* Ensures margin applies all around, including top and bottom */
}

.sequences a.sequence-link, .terms a.term-link, .weeks a.week-link, .lessons a.lesson-link, .pages a.page-link,
.textbooks a.textbook-link, .topics a.topic-link, .sections a.section-link {
    font-size: 14px;
    display: inline-block;
}

.sequences a.sequence-link,
.textbooks a.textbook-link {
    margin: 5px 5px 5px 55px;
}

.terms a.term-link,
.topics a.topic-link {
    margin: 5px 5px 5px 65px;
}

.weeks a.week-link,
.sections a.section-link {
    margin: 5px 5px 5px 75px;
}

.lessons a.lesson-link {
    margin: 5px 5px 5px 85px;
}

.pages a.page-link {
    margin: 5px 5px 5px 95px;
}

.learning-area a.learning-area-link {
    font-size: 14px;
    margin: 10px 0px 10px 35px;
    display: inline-block; /* Ensures margin applies all around */
}

.hidden {
    display: none;
}

a {
    font-family: Arial, sans-serif;
    color: #007BFF; /* Bootstrap's default blue for links */
    text-decoration: none; /* Removes underline from links */
    transition: color 0.2s; /* Smooth transition for color change */
    margin: 10px;
}

a:hover,
a:focus {
    color: #0056b3; /* Darker blue on hover/focus for better visibility */
    text-decoration: underline; /* Adds underline on hover/focus */
}

.language-java {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 10px; /* Padding around the code */
    border-radius: 10px; /* Rounded corners */
    font-family: 'Courier New', monospace; /* Use a monospace font */
    overflow-x: auto; /* Enable horizontal scroll for long lines */
    display: block; /* Ensures it behaves as a block-level element and fits the container width */
    width: 80%; /* Ensures the code block does not exceed the width of its parent */
    margin-left: 20px; /* Left margin to align with the <p> tag above */
    box-sizing: border-box; /* Includes padding and border in the element's total width */
}

.language-java code {
    display: block; /* Aligns better for block-level display */
    white-space: pre-wrap; /* Wraps text to next line, maintaining white spaces */
    overflow-x: auto; /* Adds horizontal scrollbar if needed */
}

.language-python {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 10px; /* Padding around the code */
    border-radius: 10px; /* Rounded corners */
    font-family: 'Courier New', monospace; /* Use a monospace font */
    overflow-x: auto; /* Enable horizontal scroll for long lines */
    display: block; /* Ensures it behaves as a block-level element and fits the container width */
    width: 100%; /* Ensures the code block does not exceed the width of its parent */
    margin-left: 20px; /* Left margin to align with the <p> tag above */
    box-sizing: border-box; /* Includes padding and border in the element's total width */
}

.language-python code {
    display: block; /* Aligns better for block-level display */
    white-space: pre-wrap; /* Wraps text to next line, maintaining white spaces */
    overflow-x: auto; /* Adds horizontal scrollbar if needed */
}

/* Specific Python Syntax Highlighting */
.language-python .keyword { color: #569cd6; } /* Blue for Python keywords (def, import, etc.) */
.language-python .string { color: #ce9178; } /* Light red for string literals */
.language-python .comment { color: #6a9955; } /* Green for comments */
.language-python .function { color: #dcdcdc; } /* White for function names */
.language-python .class-name { color: #4ec9b0; } /* Teal for class names */

.language-html {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 10px; /* Padding around the code */
    border-radius: 10px; /* Rounded corners */
    font-family: 'Courier New', monospace; /* Use a monospace font */
    overflow-x: auto; /* Enable horizontal scroll for long lines */
    display: inline-block; /* Ensures it behaves like a block-level element */
    margin-left: 20px; /* Left margin to align with the <p> tag above */
}

.language-html code {
    display: inline-block; /* Makes each line take full width of its parent */
    white-space: pre-wrap; /* Wraps text to next line, maintaining white spaces */
}

/* Specific HTML Syntax Highlighting */
.language-html .tag { color: #569cd6; } /* Blue for HTML tags */
.language-html .attr-name { color: #9cdcfe; } /* Light blue for attribute names */
.language-html .attr-value { color: #ce9178; } /* Light red for attribute values */
.language-html .comment { color: #6a9955; } /* Green for comments */
.language-html .doctype { color: #4ec9b0; } /* Teal for doctype */

.slide-container {
    max-height: calc(100vh - 70px); /* Full height minus header height */
    overflow-y: auto; /* Allows scrolling */
    padding: 20px; /* Padding around slides */
}

.slide {
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #ccc; /* Light grey border */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Padding inside the slide */
    margin-bottom: 20px; /* Space between slides */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

#content {
    position: relative; /* Establishes a positioning context for fixed positioning within */
    width: 100%;
    overflow-y: auto; /* Allows scrolling within the content area */
    transition: width 0.3s ease; /* Smooth width transition */
}

.content-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding-left: 0px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    /* display: flex; */
}

  .responsive-video {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
  }
  
  .responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .styled-text {
    background-color: #e0e0e0; /* Light pastel blue background */
    border: 1px solid #c0c0c0; /* Light blue border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin-bottom: 20px;
    display: block; /* Make the element only as wide as its content */
    float: none; /* Ensures the div does not float */
    clear: both; /* Prevents floating elements from affecting this div */
}

.styled-heading {
    background-color: #ecccb6; /* Very light pastel green */
    border: 1px solid #d3b899; /* Muted pastel green border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    float: none; /* Ensures the div does not float */
    clear: both; /* Prevents floating elements from affecting this div */
    display: inline-block;
}

.styled-heading-code {
    background-color: #ffffff; /* Very light pastel green */
    border: 1px solid #464544; /* Muted pastel green border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    float: none; /* Ensures the div does not float */
    clear: both; /* Prevents floating elements from affecting this div */
    display: inline-block;
}

.styled-slide-title {
    background-color: #b6dcef; /* Very light pastel blue */
    border: 1px solid #99c2d1; /* Muted pastel blue border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin: 0px;
    font-size: 24px;
    font-weight: bold;
}

.styled-page-title {
    background-color: #ccffd9; /* Very light pastel green */
    border: 1px solid #a8e0b6; /* Muted pastel green border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 10px 20px 20px 20px; /* Padding around the text */
    margin: 0px;
    font-size: 24px;
    font-weight: bold;
    }

.styled-question-title {
    background-color: #ffd8b1; /* Very light orange */
    border: 1px solid #f4c4a3; /* Muted pastel orange border */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the text */
    margin: 0px;
    font-size: 24px;
    font-weight: bold;
}

.rounded-question-table {
    border-collapse: separate; /* This is important for rounded corners */
    border-spacing: 0; /* Removes default spacing between cells */
    width: 100%; /* Optional: Adjust width as necessary */
    border: 1px solid #cccccc; /* Example border: solid, 1px, light grey */
    border-radius: 8px; /* Rounded corners of 8px */
}

.rounded-question-table tr:first-child th:first-child {
    border-top-left-radius: 8px; /* Rounds the top left corner of the first header */
}

.rounded-question-table tr:first-child th:last-child {
    border-top-right-radius: 8px; /* Rounds the top right corner of the last header */
}

.rounded-question-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px; /* Rounds the bottom left corner of the last cell in the first column */
}

.rounded-question-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px; /* Rounds the bottom right corner of the last cell in the last column */
}

.rounded-slide-table {
    border-collapse: separate; /* This is important for rounded corners */
    border-spacing: 0; /* Removes default spacing between cells */
    width: 100%; /* Optional: Adjust width as necessary */
    border: 1px solid #cccccc; /* Example border: solid, 1px, light grey */
    border-radius: 8px; /* Rounded corners of 8px */
}

.rounded-slide-table tr:first-child th:first-child {
    border-top-left-radius: 8px; /* Rounds the top left corner of the first header */
}

.rounded-slide-table tr:first-child th:last-child {
    border-top-right-radius: 8px; /* Rounds the top right corner of the last header */
}

.rounded-slide-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px; /* Rounds the bottom left corner of the last cell in the first column */
}

.rounded-slide-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px; /* Rounds the bottom right corner of the last cell in the last column */
}

.rounded-page-table {
    border-collapse: separate; /* This is important for rounded corners */
    border-spacing: 0; /* Removes default spacing between cells */
    width: 100%; /* Optional: Adjust width as necessary */
    border: 1px solid #cccccc; /* Example border: solid, 1px, light grey */
    border-radius: 8px; /* Rounded corners of 8px */
}

.rounded-page-table tr:first-child th:first-child {
    border-top-left-radius: 8px; /* Rounds the top left corner of the first header */
}

.rounded-page-table tr:first-child th:last-child {
    border-top-right-radius: 8px; /* Rounds the top right corner of the last header */
}

.rounded-page-table tr:last-child td:first-child {
    border-bottom-left-radius: 8px; /* Rounds the bottom left corner of the last cell in the first column */
}

.rounded-page-table tr:last-child td:last-child {
    border-bottom-right-radius: 8px; /* Rounds the bottom right corner of the last cell in the last column */
}

.image-container {
    width: 600px; /* Adjust the width as needed or use a specific value */
    margin: auto; /* Centers the container */
    text-align: center; /* Centers the caption text under the image */
    padding-top: 20px; /* 20px space above the image */
    padding-bottom: 20px; /* 20px space below the caption */
}

.image-container img {
    width: 100%; /* Makes the image fit the container */
    border-radius: 10px; /* Adjust this value to increase or decrease the roundness of the corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds shadow for better visibility */
    margin-bottom: 10px; /* 10px space between the image and the caption */
}

.double-image-container {
    width: 400px; /* Adjust the width as needed or use a specific value */
    margin: auto; /* Centers the container */
    text-align: center; /* Centers the caption text under the image */
    padding-top: 20px; /* 20px space above the image */
    padding-bottom: 20px; /* 20px space below the caption */
}

.double-image-container img {
    width: 100%; /* Makes the image fit the container */
    border-radius: 10px; /* Adjust this value to increase or decrease the roundness of the corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds shadow for better visibility */
    margin-bottom: 10px; /* 10px space between the image and the caption */
}

/* This ensures the table takes the full width of the parent container */
.image-table {
    width: 100%;
    max-width: 100%; /* Prevents the table from being wider than its parent */
    table-layout: fixed; /* This helps with distributing column widths evenly */
}

/* Container for images */
.triple-image-container {
    width: 100%; /* Full width of the parent cell */
    margin: auto; /* Centers the container */
    text-align: center; /* Centers the caption text under the image */
    padding-top: 20px; /* Space above the image */
    padding-bottom: 20px; /* Space below the caption */
}

/* Styles for images */
.triple-image-container img {
    width: 100%; /* Makes the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Roundness of the corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds shadow for better visibility */
    margin-bottom: 10px; /* Space between the image and the caption */
}


.caption {
    font-size: 14px; /* Adjust font size as needed */
    color: #333; /* Caption text color */
}

.triple-caption {
    margin: auto; /* Centers the container */
    text-align: center;
    width: 600px;
    font-size: 12px; /* Adjust font size as needed */
    color: #333; /* Caption text color */
}

iframe {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 600px;  /* Example width */
    height: 400px; /* Example height */
}

.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    margin: 5px;
}

.dot.green { background-color: #34b034; }
.dot.yellow { background-color: #eee611; }
.dot.orange { background-color: #ee8311; }
.dot.red { background-color: #ee3011; }
.dot.grey { background-color: #757170; }



#legend #legend * {
    margin-left: 10px;
    line-height: 1.4;
    display: flex;
}

.legend-pages td {
    margin: 10px 0;
}

.legend-pages table {
    border-collapse: collapse;
    width: auto;
    margin: 10px 0;
}

.legend-pages td {
    padding: 2px;
    vertical-align: middle;
}

.legend-label {
    font-weight: normal;
    text-align: right;
    padding-right: 10px;
    font-size: 12px;
}

.square {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 10px;
    vertical-align: middle;
    border: 1px solid #000; 
}

.square.red {background-color: #ee3011;}
.square.lightcoral {background-color: lightcoral;}
.square.orange {background-color: orange;}
.square.gold {background-color: gold;}
.square.limegreen {background-color: limegreen;}
.square.lightgray {background-color: lightgray;}
.square.pastelgreen {background-color: #ccffd9;}
.square.yellow {background-color: #fff4a0;}

.sidebar-header-container {
    display: flex;
    align-items: center;
}

.reveal-answer, .next-question, .check-code {
    width: 125px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.reveal-answer::before, .next-question::before, .check-code::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.reveal-answer:hover::before, .next-question:hover::before, .check-code:hover::before {
    left: 0;
}

.reveal-answer:hover, .next-question:hover, .check-code:hover {
    color: #fff;
}

.reveal-answer span, .next-question span, .check-code span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.download-coding-question {
    width: 125px;
    padding: 15px 0;
    text-align: center;
    margin: 0px 0px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-coding-question::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-coding-question:hover::before {
    left: 0;
}

.download-coding-question:hover {
    color: #fff;
}

.download-coding-question span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}


.btn-nav {
    width: 180px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.btn-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.btn-nav:hover::before {
    left: 0;
}

.btn-nav:hover {
    color: #fff;
}

.btn-nav span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.option-container {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    background-color: #fde5c2; 
}

input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
}

label {
    line-height: 1.6; 
}

.code-textarea, .writing-textarea {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    height: 200px;
    background-color: black;
    color: white;
    font-family: monospace;
    border: none;
    resize: vertical;
}

.button-container {
    margin-top: 10px;
    text-align: right;
}

.reveal-answer-writing, .next-question-writing, .mark-feedback, .style-structure, .spelling-grammar {
    width: 175px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.reveal-answer-writing::before, .next-question-writing::before, .mark-feedback::before, .style-structure::before, .spelling-grammar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.reveal-answer-writing:hover::before, .next-question-writing:hover::before, .mark-feedback:hover::before, .style-structure:hover::before, .spelling-grammar:hover::before {
    left: 0;
}

.reveal-answer-writing:hover, .next-question-writing:hover, .mark-feedback:hover, .style-structure:hover, .spelling-grammar:hover {
    color: #fff;
}

.reveal-answer-writing span, .next-question-writing span, .mark-feedback span, .style-structure span, .spelling-grammar span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.save-load-writing {
    width: 125px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.save-load-writing::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.save-load-writing:hover::before{
    left: 0;
}

.save-load-writing:hover {
    color: #fff;
}

.save-load-writing span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.download-ai-interactions {
    width: 125px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-ai-interactions::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-ai-interactions:hover::before{
    left: 0;
}

.download-ai-interactions:hover {
    color: #fff;
}

.download-ai-interactions span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.button-group-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 0px;
}

.edit-student-button {
    width: 180px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background-color: transparent;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.edit-student-button span {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.download-pages {
    width: 180px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background-color: transparent;
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, background-color 0.4s, border-color 0.4s;
}

.download-pages::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #f59512;  /* Make it fully filled for contrast */
    z-index: 0;
    transition: left 0.4s;
}

.download-pages:hover::before {
    left: 0;
}

.download-pages:hover {
    color: #fff;
    border-color: #f59512;
}

.download-pages span {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
    text-align: center;
}

#student-select {
    padding: 14px 15px; 
    border-radius: 25px;
    border: 2px solid #000000;
    background-color: white;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    margin: 20px 10px;
    line-height: 1.2;
    box-sizing: border-box;
}



.download-questions {
    width: 250px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-questions::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-questions:hover::before{
    left: 0;
}

.download-questions:hover {
    color: #fff;
}

.download-questions span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

/* Hide the real file input */
.file-input-hidden {
    display: none;
}

/* Make the flowchart upload button behave like your other pill buttons */
.file-upload-btn.download-questions {
    display: inline-block;      /* so width works as expected */
    width: 250px;               /* match your other buttons */
    margin: 20px 10px;          /* same spacing as others */
    position: relative;         /* keep ::before aligned */
    overflow: hidden;           /* keep the highlight inside */
}

/* Optional: center the button in that block */
.flowchart-upload-block {
    text-align: center;
}

.download-chat {
    width: 280px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.download-chat::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.download-chat:hover::before{
    left: 0;
}

.download-chat:hover {
    color: #fff;
}

.download-chat span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.email-summary {
    width: 280px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid #f59512;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

.email-summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(245, 149, 18, 0.1);
    z-index: 0;
    transition: left 0.4s;
}

.email-summary:hover::before{
    left: 0;
}

.email-summary:hover {
    color: #fff;
}

.email-summary span {
    position: relative;
    z-index: 1; /* Ensure text stays in front */
    display: inline-block; /* Ensure the span covers the text properly */
    width: 100%;
}

.styled-select {
    width: 280px;
    height: 53px;
    padding: 15px 10px;
    margin: 20px 10px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #f59512;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #333;
    text-align: center;    
    text-align-last: center; 
    transition: color 0.4s, border-color 0.4s;
}

.styled-select:hover {
    background: rgba(245, 149, 18, 0.1);
}

.styled-select:focus {
    outline: none;
    border-color: #f59512;
    box-shadow: 0 0 5px rgba(245, 149, 18, 0.4);
}

.chat-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-height: 500px;
    overflow-y: auto;
    background-color: #f9f9f9;
}
.chat-row {
    display: flex;
    margin-bottom: 10px;
}
.chat-row.user-input {
    justify-content: flex-start;
}
.chat-row.ai-response {
    justify-content: flex-end;
}
.chat-bubble {
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
    background-color: #e0f7fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}
.chat-bubble strong {
    display: block;
    margin-bottom: 5px;
}
.chat-row.ai-response .chat-bubble {
    background-color: #d1c4e9;
}
.timestamp {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

footer {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}
/* Shuffle Question */
.answer-box {
    display: flex;
    flex-direction: column;
    width: 300px;
    margin: auto;
    border: 1px solid #ccc;
    padding: 10px;
}
.answer {
    padding: 10px;
    border: 1px solid #000;
    margin: 5px 0;
    cursor: pointer;
    background-color: #f0f0f0;
}

/* Matching Question */
.matching-answer-static, .matching-answer { 
    font-size: 16px; 
    padding: 5px;
    border: 1px solid #000;
    background-color: #e0e0e0;
    user-select: none; 
}
.matching-answer-static {
    list-style-position: inside; 
    margin-bottom: 15px;
    margin-top: 12px;
}
.matching-answer-box {
    display: flex;
    flex-direction: column;
    width: 100%; 
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box; 
    background-color: #f0f0f0; 
}
.matching-answer {
    background-color: #f0f0f0; 
    cursor: pointer;
    padding: 10px;
    height: 15px;
}
.matching-answer:active {
    border-color: #bbb;
    background-color: #eee;
}
.matching-placeholder {
    border: 2px dashed #ccc;
    height: 35px;  
    margin: 5px 0;
}

/* Flowchart Question */
.flowchart-answer-static, .flowchart-answer { 
    font-size: 16px; 
    padding: 5px;
    border: 1px solid #000;
    background-color: #e0e0e0;
    user-select: none; 
}
.flowchart-answer-static {
    list-style-position: inside; 
    margin-bottom: 12px;
    margin-top: 14px;
}
.flowchart-answer-box {
    display: flex;
    flex-direction: column;
    width: 100%; 
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box; 
    background-color: #f0f0f0; 
}
.flowchart-answer {
    background-color: #f0f0f0; 
    cursor: pointer;
    padding: 10px;
    height: 130px;
}
.flowchart-answer:active {
    border-color: #bbb;
    background-color: #eee;
}
.flowchart-placeholder {
    border: 2px dashed #ccc;
    height: 150px;  
    margin: 5px 0;
}
.subtext {
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    line-height: -3px;
}

/* Highlighted link style */
.highlighted {
    background-color: #d6d5d5; /* Pastel orange color */
    border-radius: 4px; /* Optional: Adds rounded corners */
    padding: 2px; /* Optional: Adds a bit of padding around the text */
}

.student-list {
    border-collapse: collapse;
    width: 600px; /* Adjust if necessary */
}

.student-list td {
    border: 1px solid black;
    padding: 5px;
    width: 200px; /* Adjust width for specific columns if needed */
}

.student-list button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: blue;
    cursor: pointer;
}

.bar-graph {
    display: flex; /* Arrange bars in a row */
    align-items: flex-end; /* Align bars to the bottom (x-axis) */
    justify-content: flex-start; /* Align bars to the left */

    border: 1px solid #ccc; /* Add a border for the graph area */
    position: relative; /* Ensure bars are positioned within this container */
    margin: 10px; /* Add margin around the graph container */
    padding-left: 10px;
    border-radius: 10px; /* Add rounded corners */
    overflow: hidden; /* Prevent content from spilling outside rounded corners */
}

.bar {
    width: 12px; /* Set the width of each bar */
    margin: 0 2px; /* Add some space between bars */
    display: flex; /* Allow stacking segments within the bar */
    flex-direction: column; /* Ensure segments stack vertically */
    align-items: flex-end;  /* Align segments to bottom */
    position: relative; /* Position relative to align with the graph container */
}

.bar-segment {
    width: 100%; /* Ensure the segment fills the bar width */
    border: 1px solid #000; 
    height: 20px; /* or however tall you want */
    margin-bottom: 1px; /* Set vertical spacing */
}

.mastery-bar-wrapper {
    margin-bottom: 15px;
}

.metrics-placeholder {
    min-width: 300px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-top: 0px; 
}

.metrics-bar-graph {
    display: flex; /* Arrange bars horizontally */
    align-items: flex-end; /* Align bars to the bottom */
    justify-content: flex-start; /* Align bars to the left */
    border: 1px solid #ccc; /* Border for the graph area */
    position: relative; /* Ensure bars are positioned relative to the container */
    margin: 10px; /* Margin around the graph container */
    padding-left: 10px; 
    border-radius: 10px; 
}

.metrics-bar {
    display: flex; /* Enable stacking of segments */
    flex-direction: column-reverse; /* Stack segments from bottom to top */
    justify-content: flex-end; /* Align segments to the bottom */
    width: 12px; /* Width of each bar */
    margin: 0 2px; /* Space between bars */
    position: relative; /* Ensure segments are positioned within the bar */
    align-items: center; /* Center align segments  */
}

.questions-bar-graph {
    display: flex; /* Arrange bars horizontally */
    align-items: flex-end; /* Align bars to the bottom */
    justify-content: flex-start; /* Align bars to the left */
    border: 1px solid #ccc; /* Border for the graph area */
    position: relative; /* Ensure bars are positioned relative to the container */
    margin: 10px; /* Margin around the graph container */
    padding-left: 10px; /* Left padding for alignment */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Prevent content from spilling out */
}

.questions-bar {
    display: flex; /* Enable stacking of segments */
    flex-direction: column-reverse; /* Stack segments from bottom to top */
    justify-content: flex-end; /* Align segments to the bottom */
    width: 12px; /* Width of each bar */
    margin: 0 2px; /* Space between bars */
    position: relative; /* Ensure segments are positioned within the bar */
    background-color: lightgray; /* Default background for the bar */
    align-items: center; /* Center align segments  */
}

.questions-bar-segment {
    width: 100%; /* Ensure the segment fills the bar width */
    height: 15px; /* Fixed height for each segment */
    display: block; /* Block-level layout */
    position: relative; /* Relative to the bar */
    border: 1px solid #000; 
}

button:disabled,
button.disabled-btn {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: auto;
}

.study-tip-box {
    padding: 12px;
    background-color: #eef6ff;
    border-left: 4px solid #007BFF;
    font-style: italic;
    font-size: 0.95rem;
}

.modal-hidden {
    display: none;
}

.microtest-header {
    text-align: center;
    margin: 0 auto;
}

#microtest-timer {
    font-size: 1.5em;
    color: #d9534f;
    font-weight: bold;
}

.hidden {
    display: none;
}
.writing-textarea {
    width: 100%;
    height: 120px;
    font-size: 14px;
    padding: 10px;
    resize: vertical;
}

.detailed-metrics-bar:hover {
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.menu li a {
  position: relative; 
}

.menu li a .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;      
  height: 18px;
  padding: 0 6px;       
  margin-left: 6px;
  border-radius: 999px; 
  background: #d93025;  
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  vertical-align: top;
}

.menu li a .badge[data-count="99+"] { min-width: 24px; }

.menu li a .badge:empty { display: none; }

.chip {
  display:inline-flex; gap:6px; align-items:center;
  padding:6px 10px; border:1px solid #ddd; border-radius:999px;
  text-decoration:none; font-size:12px; color:#333; background:#fff;
}
.chip:hover { background:#f5f5f5; }
.chip.active { border-color:#f59512; background:rgba(245,149,18,.08); }
.chip .chip-count {
  min-width:18px; height:18px; padding:0 6px; line-height:18px;
  border-radius:999px; background:#eee; font-weight:700; text-align:center;
}

.styled-select-link {
  display: inline-block;
  padding: 12px 18px;              
  margin: 6px 10px 0 0;
  border-radius: 25px;
  border: 2px solid #f59512;
  background: transparent;
  font-weight: bold;
  font-size: 16px;
  color: #333;
  text-decoration: none !important; 
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.4s, border-color 0.4s, background 0.4s, box-shadow 0.2s;
}

.styled-select-link:hover {
  background: rgba(245, 149, 18, 0.1);
  color: #333;
  text-decoration: none !important;
}

.styled-select-link:focus {
  outline: none;
  border-color: #f59512;
  box-shadow: 0 0 5px rgba(245, 149, 18, 0.4);
}

.styled-select-link--sm { padding: 8px 14px; font-size: 14px; }

.stream-post { margin-bottom: 14px; }
.stream-post .rounded-page-table { width:100%; }
.stream-post .post-content { height:0; overflow:hidden; }
.stream-post .actions .btn { padding:6px 10px; }


.ck-editor__editable[role="textbox"] {
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
}

.ck-content figure.table table {
  border-collapse: collapse;  
  width: 100%;                 
}

.ck-content figure.table table th,
.ck-content figure.table table td {
  border: 1px solid #000000;  
  padding: 5px;              
  vertical-align: top;        
}

.stream-post .table table th,
.stream-post .table table td { 
    border: 1px solid #000000;      
    padding: 5px;                
    vertical-align: top;  
}

/* card shell */
.stream-card {
  border: 1px solid #f0ad4e;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin: 10px 0;
}

/* header: one continuous soft-orange bar */
.stream-card .stream-head {
  background: #fff7e6;
  border-bottom: 1px solid #f0ad4e;
}

.stream-card .stream-head tr > td {
  background: #fff7e6;          /* ensure all cells match */
  padding: 8px 12px;
  vertical-align: middle;
}

/* title block: no slide styling, inline layout */
.styled-post-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* toggle button: remove default chrome but keep click area */
.styled-post-title .post-toggle {
  border: 0;
  background: none;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.post-title-text {
  font-weight: 700;
  font-size: 18px;
}

/* right columns spacing */
.stream-card .post-meta {
  white-space: nowrap;
  font-size: 12px;
  text-align: right;
  padding-left: 12px;
}

.stream-card .post-actions {
  text-align: right;
  padding: 8px 14px 8px 14px;   /* <-- left padding so buttons don’t touch edge */
}

/* Keep comment textarea aligned with your form look */
.styled-textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
}
.muted { color:#777; font-size: 13px; }

/* body area (collapsed by default; JS toggles height) */
.stream-card .

/* when a post is open, let its content grow and show overflow */
.stream-card.open .post-content {
  height: auto !important;
  overflow: visible !important;
}

/* Applies both inside the editor (.ck-content) and when rendered in posts */
.ck-content pre,
.stream-card .ck-content pre {
  background-color: #000;     /* black background */
  color: #fff;                /* white text */
  padding: 10px;
  border-radius: 10px;
  font-family: "Courier New", monospace;
  overflow-x: auto;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1rem 0;         /* some breathing room */
}

.ck-content pre code.language-python,
.stream-card .ck-content pre code.language-python {
  display: block;
  white-space: pre-wrap;
}

/* Remove CKEditor’s default code block border/background if any theme tweaks conflict */
.ck-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

  /* Dark code block both in the editor (ck-content) and when rendered */
  .ck-content pre,
  .ck-content pre code {
    background-color: #000 !important;  /* force over CKEditor defaults */
    color: #fff !important;
  }

  .ck-content pre {
    padding: 10px;
    border-radius: 10px;
    font-family: "Courier New", monospace;
    overflow-x: auto;
    display: block;
    width: 100%;
    margin-left: 20px;      /* if you still want this indent */
    box-sizing: border-box;
  }

  .ck-content pre code {
    display: block;         /* keep block layout */
    white-space: pre-wrap;  /* wrap long lines */
    background: transparent;/* avoid double backgrounds */
    color: inherit;         /* inherit white text from pre */
  }

  /* Optional: language-specific hooks (if you keep them) */
  .ck-content pre code.language-python .keyword { color: #569cd6; }
  .ck-content pre code.language-python .string  { color: #ce9178; }
  .ck-content pre code.language-python .comment { color: #6a9955; }
  .ck-content pre code.language-python .function{ color: #dcdcdc; }
  .ck-content pre code.language-python .class-name { color: #4ec9b0; }

