.outline-item {
    width: 100% !important;
    display: inline-block;
    margin-left: 0!important;
}
.outline-item-title {
    min-width: 300px;
    max-width: 600px;

}
.outline-item-level-1 p {
    font-weight: bold;
}
.outline-item-level-2 p{
    text-indent: 20px;
}
.outline-item-level-3 p{
    text-indent: 40px;
}
.outline-item-level-4 p{
    text-indent: 60px;
}

.outline-item-level-5 p{
    text-indent: 80px;
}
.container, .container-center  {
    width: 100%;
    padding: var(--lumo-space-m);
}
.container-center {
    margin: 0 auto;
    text-align: center;
}
.container-div {
    margin-top: var(--lumo-space-m);
}
.container-mar {
    padding: var(--lumo-space-m);
}

.progress-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.progress-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.progress-row:last-child {
    border-bottom: none;
}

.row-item {
    padding: 10px;
    flex: 1;
}

.section-header {
    font-weight: bold;
    background-color: #f0f8ff;
}

.action button {
    padding: 5px 10px;
    cursor: pointer;
}

.sub-row.sub-row-level-1{
    margin-left: 0px; /* Indentation for sub-items */
}

.sub-row.sub-row-level-2{
    text-indent: 20px; /* Indentation for sub-items */
}

.sub-row.sub-row-level-3{
    text-indent: 40px;  /* Indentation for sub-items */
}

.sub-row .title {

}

.card-layout {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between cards */
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.card-title {
    font-size: 20px;
    color: #000;
    margin-top: 0;
    margin-bottom: 15px;
}

.action-link {
    color: #007bff; /* Standard link blue */
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
    display: block; /* Make it take its own line */
}

.action-link:hover {
    text-decoration: underline;
}

.result-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee; /* Separator for results */
}

.result-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.result-status {
    color: #777;
    font-style: italic;
}

.card-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.primary-button, .secondary-button {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.primary-button {
    background-color: #007bff;
    color: white;
}

.primary-button:hover {
    background-color: #0056b3;
}

.secondary-button {
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ccc;
}

.secondary-button:hover {
    background-color: #d6d8db;
}

.sectioned-layout {
    /*max-width: 700px; !* Constrain width for readability *!*/
    margin: 0 auto; /* Center the layout */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0; /* Section separator */
}

.form-section:last-of-type {
    border-bottom: none; /* No border for the last section */
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 22px;
    color: #000;
    margin-top: 0;
    margin-bottom: 15px;
}

.action-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
    display: inline-block; /* Allows text to flow around */
}

.action-link:hover {
    text-decoration: underline;
}

.result-info {
    margin-top: 10px;
}

.result-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
}

.result-status {
    color: #777;
    font-style: italic;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px;
}
.textarea-input {
    width: 100%;
}

.result-label {
    font-weight: 600; /* Bold */
    color: #555;
    margin-bottom: 5px;
}

.score-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0 0 15px 0;
}

.score-list li {
    padding: 2px 0;
    color: #444;
}

.result-summary {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #007bff; /* Highlight primary result */
}

.result-detail {
    font-size: 1em;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold; /* Based on screenshot */
}
.result-detail ul {
    margin: 0;
    padding: 0;
    margin-left: 20px;
    font-weight: normal;
}

.student-profile-markdown h2 {
    margin-bottom: var(--lumo-space-m);
}

.student-profile-markdown h2 + h3 {
    margin-top: var(--lumo-space-m);
}

.description-paragraph {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.description-paragraph:last-child {
    margin-bottom: 0;
}

/* Frontend/components/Breadcrumbs.css */
.breadcrumbs {
    padding: 12px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: #1976d2;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #757575;
}

.breadcrumbs .current {
    color: #757575;
}
.text-red {
    color: #b10202;
}

.container, .container-center {
    box-sizing: border-box;
}

/* Layout the controls on one row with spacing */
.report-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* wrap on small screens */
}

.outline-item-cb {
    padding: 10px 20px;
    min-width: 350px;
}

.report .primary-button {
    padding-top: 0;
    padding-bottom: 0;
}

.user-profile-column,
.user-profile-survey {
    box-sizing: border-box;
    min-width: 0;
    width: calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
    flex: 0 1 calc(50% - 1.5rem);
}

@media (max-width: 900px) {
    .user-profile-column,
    .user-profile-survey {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }
}
/**
 * Report header tb
 */
.school-report-tb::part(header-cell),
.school-report-tb::part(cell) {
    white-space: normal;
    align-items: flex-start; /* top-align content */
}
.school-report-tb::part(cell) {
    text-overflow: clip;
    overflow: visible;
}
.school-report-tb::part(header-cell),
.school-report-tb::part(footer-cell) {
    font-weight: 700;
}

/* Main application drawer */
.app-drawer-content {
    box-sizing: border-box;
    background: linear-gradient(180deg, var(--lumo-contrast-5pct), transparent 45%);
    padding: var(--lumo-space-m) !important;
}

vaadin-side-nav.app-side-nav::part(label) {
    padding: var(--lumo-space-s) var(--lumo-space-s) var(--lumo-space-xs);
    color: var(--lumo-secondary-text-color);
    font-size: var(--lumo-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

vaadin-side-nav.app-side-nav vaadin-side-nav-item::part(link) {
    box-sizing: border-box;
    min-height: 44px;
    margin: 2px 0;
    padding: 0 var(--lumo-space-s);
    border-radius: var(--lumo-border-radius-m);
    color: var(--lumo-body-text-color);
    font-size: var(--lumo-font-size-m);
    transition: background-color 120ms ease, color 120ms ease;
}

vaadin-side-nav.app-side-nav vaadin-side-nav-item::part(link):hover {
    background-color: var(--lumo-contrast-10pct);
    color: var(--lumo-primary-text-color);
}

vaadin-side-nav.app-side-nav vaadin-side-nav-item[current]::part(link) {
    background-color: var(--lumo-primary-color-10pct);
    color: var(--lumo-primary-text-color);
    font-weight: 600;
}

vaadin-side-nav.app-side-nav vaadin-side-nav-item > vaadin-icon {
    width: var(--lumo-icon-size-s);
    height: var(--lumo-icon-size-s);
    color: var(--lumo-secondary-text-color);
}

vaadin-side-nav.app-side-nav vaadin-side-nav-item[current] > vaadin-icon {
    color: var(--lumo-primary-color);
}

.app-drawer-footer {
    box-sizing: border-box;
    padding: 0 !important;
}

.app-account-row,
.app-logout-button {
    width: 100%;
}

.app-account-row {
    box-sizing: border-box;
    justify-content: space-between;
    gap: var(--lumo-space-s);
}

.app-account-toggle {
    justify-content: flex-start;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--lumo-primary-text-color);
    background-color: var(--lumo-contrast-5pct);
    font-size: var(--lumo-font-size-m);
    font-weight: 500;
}

.app-logout-button {
    min-height: 52px;
    justify-content: center;
    margin: var(--lumo-space-s) 0 0;
    color: var(--lumo-primary-text-color);
    background-color: var(--lumo-contrast-5pct);
    font-size: var(--lumo-font-size-m);
    font-weight: 500;
}

.app-account-toggle:hover,
.app-logout-button:hover {
    background-color: var(--lumo-primary-color-10pct);
}

vaadin-popover.app-account-popover::part(overlay) {
    border-radius: var(--lumo-border-radius-l);
    box-shadow: var(--lumo-box-shadow-l);
}

vaadin-popover.app-account-popover::part(content) {
    padding: var(--lumo-space-s);
}

.app-account-menu-link {
    box-sizing: border-box;
    width: 100%;
    padding: var(--lumo-space-s) var(--lumo-space-m);
    border-radius: var(--lumo-border-radius-m);
    color: var(--lumo-primary-text-color);
    font-size: var(--lumo-font-size-m);
    text-decoration: none;
}

.app-account-menu-link:hover {
    background-color: var(--lumo-primary-color-10pct);
}

/* Student outline progress hierarchy */
vaadin-grid.progress-tree-grid::part(progress-level-0) {
    background-color: var(--lumo-primary-color-10pct);
    font-weight: 700;
}

vaadin-grid.progress-tree-grid::part(progress-level-1) {
    background-color: var(--lumo-contrast-5pct);
    font-weight: 600;
}

vaadin-grid.progress-tree-grid::part(progress-level-2) {
    font-weight: 400;
}

vaadin-grid.progress-tree-grid::part(progress-parent) {
    min-height: 46px;
    border-top: 1px solid var(--lumo-contrast-10pct);
}

vaadin-grid.progress-tree-grid::part(progress-leaf) {
    font-weight: 400;
}

.progress-tree-cell {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    overflow: visible;
}

.progress-tree-guide {
    position: relative;
    align-self: stretch;
    flex: 0 0 24px;
    min-height: 32px;
}

.progress-tree-guide::before {
    content: "";
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: 50%;
    border-left: 1px dashed var(--lumo-contrast-20pct);
}

.progress-tree-guide.branch::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 50%;
    border-top: 1px dashed var(--lumo-contrast-20pct);
}

.progress-tree-toggle,
.progress-tree-toggle-spacer {
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
}

.progress-tree-toggle {
    height: 28px;
    padding: 0;
    color: var(--lumo-secondary-text-color);
}

.progress-tree-toggle-spacer {
    display: inline-block;
}

.progress-tree-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-summary {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--lumo-contrast-20pct);
    border-radius: var(--lumo-border-radius-s);
    font-size: var(--lumo-font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}

.progress-summary.complete {
    border-color: var(--lumo-success-color-50pct);
    color: var(--lumo-success-text-color);
    background-color: var(--lumo-success-color-10pct);
}

.progress-summary.partial {
    color: var(--lumo-secondary-text-color);
    background-color: var(--lumo-contrast-5pct);
}

/* Responsive student progress views */
.progress-responsive-content {
    width: 100%;
    min-width: 0;
}

.progress-mobile-list {
    display: none !important;
}

.progress-time-range {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    white-space: nowrap;
}

.progress-time-range span + span::before {
    content: "- ";
}

@media (min-width: 600px) and (max-width: 1023px) {
    vaadin-grid.progress-desktop-grid .progress-tree-title {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    vaadin-grid.progress-desktop-grid::part(cell),
    vaadin-grid.progress-desktop-grid::part(header-cell) {
        padding-inline: var(--lumo-space-s);
    }
}

@media (max-width: 599px) {
    .progress-desktop-grid {
        display: none !important;
    }

    .progress-mobile-list {
        display: flex !important;
        gap: var(--lumo-space-xs);
    }

    .progress-mobile-group,
    .progress-mobile-leaf {
        box-sizing: border-box;
        width: 100%;
    }

    vaadin-details.progress-mobile-group {
        overflow: hidden;
        border: 1px solid var(--lumo-primary-color-20pct);
        border-radius: var(--lumo-border-radius-m);
        background-color: var(--lumo-primary-color-10pct);
    }

    vaadin-details.progress-mobile-group::part(summary) {
        min-height: 48px;
        padding: var(--lumo-space-s);
    }

    vaadin-details.progress-mobile-group::part(content) {
        padding: 0 var(--lumo-space-xs) var(--lumo-space-xs)
            calc(var(--lumo-space-m) + var(--lumo-space-xs));
        background-color: var(--lumo-base-color);
    }

    .progress-mobile-summary {
        width: 100%;
        min-width: 0;
    }

    .progress-mobile-title {
        min-width: 0;
        color: var(--lumo-header-text-color);
        font-weight: 700;
        line-height: 1.35;
        white-space: normal;
    }

    .progress-mobile-children {
        position: relative;
        gap: var(--lumo-space-xs);
        padding-top: var(--lumo-space-xs) !important;
    }

    .progress-mobile-children::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: var(--lumo-space-m);
        left: calc(-1 * var(--lumo-space-s));
        border-left: 1px dashed var(--lumo-contrast-20pct);
    }

    .progress-mobile-leaf {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: var(--lumo-space-s);
        padding: var(--lumo-space-m);
        border: 1px solid var(--lumo-contrast-10pct);
        border-radius: var(--lumo-border-radius-m);
        background-color: var(--lumo-base-color);
        box-shadow: var(--lumo-box-shadow-xs);
    }

    .progress-mobile-leaf::before {
        content: "";
        position: absolute;
        top: 24px;
        left: calc(-1 * var(--lumo-space-s));
        width: var(--lumo-space-s);
        border-top: 1px dashed var(--lumo-contrast-20pct);
    }

    .progress-mobile-leaf-title {
        color: var(--lumo-body-text-color);
        font-weight: 600;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .progress-mobile-state-row {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .progress-mobile-state-row a {
        margin-left: auto;
        font-weight: 600;
        text-decoration: none;
    }

    .progress-mobile-date {
        display: flex;
        align-items: center;
        gap: var(--lumo-space-xs);
        color: var(--lumo-secondary-text-color);
        font-size: var(--lumo-font-size-s);
    }

    .progress-mobile-date vaadin-icon {
        width: var(--lumo-icon-size-s);
        height: var(--lumo-icon-size-s);
    }

    .progress-mobile-list .progress-summary {
        flex-shrink: 0;
    }
}
