/**
 * Open Notebook Styles
 */

/* Navigation wrappers */
.on-sequence-navigation-top,
.on-sequence-navigation-bottom {
    margin: 0 0 30px 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.on-sequence-navigation-bottom {
    margin: 30px 0 0 0;
    padding: 30px;
}

/* Main containers */
.on-sequence-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Progress bar */
.on-progress-bar-container {
    margin-bottom: 20px;
    padding: 10px 0 15px;
    border-bottom: 1px solid #eee;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.on-sequence-title-header {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.on-sequence-title-header a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

/* Navigator home link */
.on-navigator-link {
    margin-bottom: 15px;
}

.on-navigator-link a {
    color: var(--e-global-color-primary) !important;
    font-size: 22px;
    font-weight: 500;
}

.on-sequence-lesson {
    font-size: 24px;
}

.on-sequence-lesson span {
    color: var(--e-global-color-secondary);
}

.on-back-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.on-back-link:hover {
    text-decoration: underline;
}

/* Sequence header bar with lesson info */
.on-sequence-header-bar {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.on-progress-sections {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 8px;
    margin-bottom: 30px;
}

.on-progress-section {
    flex: 1;
    height: 100%;
    background-color: #e0e0e0;
    margin: 0 3px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.on-progress-section:first-child {
    margin-left: 0;
}

.on-progress-section:last-child {
    margin-right: 0;
}

.on-progress-active {
    background-color: #0073aa;
}

.on-progress-section:hover {
    background-color: #bbb;
}

.on-progress-active:hover {
    background-color: #005a87;
}

.on-progress-current:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #0073aa;
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid white;
}

/* Sequence navigation header */
.on-sequence-navigation-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.on-sequence-title {
    font-size: 16px;
    font-weight: bold;
}

.on-sequence-title a {
    color: #0073aa;
    text-decoration: none;
}

/* Module navigation */
.on-module-navigation {
    margin: 40px 0;
    padding: 40px 0;
    border-top: 1px solid #D4D4D8;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.on-navigation-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.on-prev-button,
.on-next-button {
    display: flex;
    justify-content: center;
    width: 45%;
    padding: 15px;
    background-color: transparent;
    color: var(--e-global-color-primary) !important;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s;
    border: 1px solid var(--e-global-color-primary);

}


.on-prev-button {
    padding-left: 25px;
    position: relative;
}

.on-next-button {
    padding-right: 25px;
    position: relative;
    text-align: right;
}

.on-prev-button:hover,
.on-next-button:hover {
    background-color: transparent;
    color: white;
    border-color: #0073aa;
}

.on-prev-button:hover .on-nav-arrow,
.on-next-button:hover .on-nav-arrow,
.on-prev-button:hover .on-nav-label,
.on-next-button:hover .on-nav-label,
.on-prev-button:hover .on-nav-title,
.on-next-button:hover .on-nav-title {
    color: var(--e-global-color-primary);
}

.on-nav-arrow {
    font-size: 24px;
    color: var(--e-global-color-primary);
}

.on-prev-button .on-nav-arrow {
    left: 10px;
}

.on-next-button .on-nav-arrow {
    right: 10px;
}

.on-nav-label {
    font-size: 16px;
    color: var(--e-global-color-primary);
    font-weight: 600;
    margin-right: 3px;
}

.on-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--e-global-color-primary);
}

.on-prev-button-placeholder,
.on-next-button-placeholder {
    width: 45%;
}

.no-module {
    border-color: #BD362580;
    cursor: not-allowed;
}

.no-module:hover {
    border-color: #BD362580;
    color: #BD362580;
    cursor: not-allowed;
}

.no-module .on-nav-label, .no-module .on-nav-arrow,
.no-module:hover .no-module .on-nav-label,.no-module:hover .no-module .on-nav-arrow {
    color: #BD362580 !important;
}

/* Module sidebar and list */
.on-module-sidebar {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.on-module-sidebar h3 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

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

.on-module-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.on-module-list li:last-child {
    border-bottom: none;
}

.on-module-list li a {
    color: #333;
    text-decoration: none;
    display: block;
}

.on-module-list li a:hover {
    color: #0073aa;
}

.on-current-module {
    background-color: #e6f3fa;
    font-weight: bold;
    position: relative;
    padding-left: 15px !important;
}

.on-current-module-marker {
    position: absolute;
    left: 0;
    color: #0073aa;
}

.on-bottom-navigation {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.on-back-to-sequence {
    display: inline-block;
    margin-bottom: 20px;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.on-back-to-sequence:hover {
    text-decoration: underline;
}

.on-bottom-nav-buttons {
    display: flex;
    justify-content: space-between;
}

.on-bottom-nav-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.on-bottom-nav-button:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.on-bottom-next {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.on-bottom-next:hover {
    background-color: #005a87;
}

/* Button styles */
.on-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.on-button:hover {
    background-color: #005a87;
    color: white;
}

/* Start sequence button */
.on-start-sequence {
    margin: 30px 0;
    text-align: center;
}

/* Module content */
.on-module-content {
    margin-bottom: 30px;
}

.on-module-featured-image {
    margin-bottom: 20px;
}

.on-module-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.on-module-content-body {
    margin-bottom: 30px;
}

.on-module-custom-fields {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.on-module-field {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.on-module-field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.on-module-field h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.on-field-value {
    font-size: 14px;
    line-height: 1.5;
}

.on-module-taxonomies {
    margin: 20px 0;
}

.on-taxonomy {
    margin-bottom: 15px;
}

.on-taxonomy h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

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

.on-term-list li {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 4px 10px;
    background-color: #eee;
    border-radius: 3px;
    font-size: 13px;
}

/* Sequence modules container */
.on-modules-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.on-module-list h2 {
    margin-bottom: 15px;
}

/* Empty sequence message */
.on-empty-sequence {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    color: #666;
}