/* Font Option Row */
.font-option-row {
    &:disabled {
        opacity: 0.5;
        pointer-events: none;
    }
}

.font-option-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-text-color);
}

/* Font Picker Modal */
.font-picker-modal .modal-body {
    padding: 0;
}

.font-picker-content {
    display: flex;
    height: 400px;
}

.font-picker-list {
    width: 280px;
    border-right: 1px solid var(--main-border-color);
    overflow: hidden;

    .dropdownWrapper {
        height: 100%;
    }

    .dropdown-menu {
        border: none;
        border-radius: 0;
    }

    .dropdown-item {
        font-size: 14px;
    }
}

.font-picker-settings {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
}

.font-size-control {
    display: flex;
    flex-direction: column;
    gap: 8px;

    label {
        font-weight: 500;
        color: var(--muted-text-color);
        font-size: 12px;
        text-transform: uppercase;
    }

    .font-size-description {
        color: var(--muted-text-color);
        font-size: 12px;
    }
}

.font-size-slider {
    display: flex;
    align-items: center;
    gap: 12px;

    .slider {
        flex: 1;
    }

    .font-size-value {
        min-width: 50px;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }
}

.font-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;

    label {
        font-weight: 500;
        color: var(--muted-text-color);
        font-size: 12px;
        text-transform: uppercase;
    }
}

.font-preview-text {
    flex: 1;
    padding: 16px;
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    background: var(--main-background-color);
    overflow: auto;
    line-height: 1.6;
}

.orientation-illustration {
    width: 170px;
    height: 130px;
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    background: var(--root-background);
    overflow: hidden;

    > .tab-bar.full-width {
        height: 12px;
        flex-shrink: 0;
        display: flex;
        align-items: flex-end;
        gap: 2px;
        padding: 0 4px;
        background: var(--launcher-pane-background-color);

        .tab {
            width: 24px;
            height: 8px;
            background: var(--main-background-color);
            border-radius: 4px 4px 0 0;
            opacity: 0.4;

            &.active {
                height: 10px;
                opacity: 1;
            }
        }
    }

    .launcher-bar {
        background: var(--launcher-pane-vert-background-color);
        display: flex;
        align-items: center;
        flex-shrink: 0;

        .tn-icon {
            font-size: 12px;
            opacity: 0.5;
        }

        &.horizontal {
            flex-direction: row;
            height: 14px;
            padding: 0 4px;
            gap: 6px;
        }

        &.vertical {
            flex-direction: column;
            width: 24px;
            padding: 4px 0;
            gap: 4px;
        }
    }

    .main-area {
        display: flex;
        flex-grow: 1;
        min-height: 0;
    }

    .tree-pane {
        width: 40px;
        flex-shrink: 0;
        padding: 8px 4px;

        .tree-content {
            height: 100%;
            background: repeating-linear-gradient(
                180deg,
                var(--main-text-color) 0px,
                var(--main-text-color) 4px,
                transparent 4px,
                transparent 8px
            );
            opacity: 0.15;
            border-radius: 2px;
        }
    }

    .content-pane {
        flex-grow: 1;
        display: flex;
        flex-direction: column;

        .tab-bar {
            height: 12px;
            flex-shrink: 0;
            display: flex;
            align-items: flex-end;
            gap: 2px;
            padding: 0 4px;

            .tab {
                width: 24px;
                height: 8px;
                background: var(--main-background-color);
                border-radius: 4px 4px 0 0;
                opacity: 0.4;

                &.active {
                    height: 10px;
                    opacity: 1;
                }
            }
        }

        .note-content {
            flex-grow: 1;
            background: var(--main-background-color);
            border-top-left-radius: 6px;
            margin: 0;
        }
    }
}

.old-layout-illustration {
    width: 170px;
    height: 130px;
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    display: flex;
    background: var(--root-background);
    overflow: hidden;

    .launcher-pane {
        width: 10%;
        background: var(--launcher-pane-vert-background-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1px 0;

        svg {
            margin-top: 1px;
            margin-bottom: 5px;
        }

        .tn-icon {
            margin: 4px 0;
            font-size: 12px;
            opacity: 0.5;
        }
    }

    .tree {
        width: 20%;
        font-size: 4px;
        padding: 12px 5px;
        overflow: hidden;
        flex-shrink: 0;
        filter: blur(1px);

        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }
    }

    .main {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        font-size: 8px;

        .tab-bar {
            height: 10px;
            flex-shrink: 0;
        }

        .content {
            padding-inline-start: 6px;
            background-color: var(--main-background-color);
            flex-grow: 1;
            border-top-left-radius: 6px;
            display: flex;
            flex-direction: column;
            min-height: 0;

            .title-bar {
                display: flex;
                align-items: center;
                font-size: 14px;
                padding: 5px;

                .title {
                    margin-inline-start: 4px;
                    flex-grow: 1;
                    font-size: 12px;
                }
            }

            .ribbon {
                padding: 0 5px;

                .tn-icon {
                    font-size: 10px;
                }

                .ribbon-header {
                    display: flex;
                    gap: 3px;
                }

                .ribbon-body {
                    border: 0 solid var(--main-text-color);
                    border-top-width: 1px;
                    border-bottom-width: 1px;
                    margin: 2px 0;

                    .ribbon-body-content {
                        height: 4px;
                        margin-block: 4px;
                        background: repeating-linear-gradient(90deg, currentColor, currentColor 10px, transparent 10px, transparent 22px);
                        opacity: .5;
                    }
                }
            }

            .note-header {
                display: flex;
                flex-direction: column;
                padding-inline: 2px;

                .note-toolbar {
                    align-self: flex-end;
                }

                .note-inline-title {
                    display: flex;
                    align-items: center;
                    padding-bottom: 4px;

                    .note-icon {
                        display: flex;
                        width: 22px;
                        height: 22px;
                        justify-content: center;
                        align-items: center;
                        border-radius: 50%;
                        background: var(--note-icon-hover-background-color);
                        font-size: 12px;
                        color: var(--note-icon-color);
                    }

                    .note-title-row {
                        margin-inline-start: 4px;
                        line-height: 1;

                        .title {
                            font-size: 11px;
                        }

                        .subtitle {
                            font-size: 6px;
                            opacity: .5;
                        }
                    }
                }
            }

            .content-inner {
                font-size: 6px;
                overflow: hidden;
                padding: 5px;
                opacity: 0.5;
                filter: blur(1px);
            }

            .status-bar {
                background-color: var(--left-pane-background-color);
                flex-shrink: 0;
                padding: 0 2px;
                display: flex;

                &> .status-bar-breadcrumb {
                    flex-grow: 1;
                }
            }
        }
    }
}
