/* Course hierarchy side panel styles */

.course-hierarchy-container .course .icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
}

.module-hierarchy-container .module .icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
}

.lesson .icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
}

.module-hierarchy-container {
    margin-left: 12px;
}

.module {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.module h3 {
    line-height: 1;
    margin: 0;
}

.lesson {
    margin-left: 12px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lesson h4 {
    line-height: 1;
    margin: 0;
}

.icon.secondary {
    opacity: 0.5;
}

.button.add-button {
    margin-top: 16px;
    opacity: 0.5;
}

.module-hierarchy-container .button.add-button {
    margin-left: 24px;
}

.course-hierarchy-container .button.add-button {
    margin-left: 12px;
}

/* Interactive controls */

.buttons-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hierarchy-toggle-dependency {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    line-height: 0;
}

.hierarchy-toggle-dependency .icon {
    width: 14px;
    height: 14px;
    margin-right: 0;
}

.hierarchy-toggle-dependency .dependency-icon.active {
    opacity: 1;
    color: var(--w-color-primary);
}

.hierarchy-toggle-dependency .dependency-icon.inactive {
    opacity: 0.25;
}

.hierarchy-reorder {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    line-height: 0;
}

.hierarchy-reorder .icon {
    width: 12px;
    height: 12px;
    margin-right: 0;
}

.hierarchy-reorder:disabled {
    opacity: 0.15;
    cursor: default;
}

/* Content preview side panel */

.content-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.content-preview-header .icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.content-preview-iframe {
    width: 100%;
    height: 500px;
    border: 1px solid var(--w-color-border-furniture);
    border-radius: 4px;
    margin-top: 12px;
}

.content-preview-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--w-color-text-placeholder);
}

.content-preview-empty .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Pending Review menu item badge */

a[data-pending-count]::after {
    content: attr(data-pending-count);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 3px 5px;
    margin-left: auto;
    border-radius: 100%;
    background-color: var(--w-color-secondary, #00b0b1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
