@import url('./dialog-renderer/css/global.css');
@import url('./dialog-renderer/css/editor.css');
@import url('./dialog-renderer/css/preview.css');
@import url('./shared/plotToolbar.css');

/* Host chrome only. Controls are styled by the pinned DialogCreator renderer. */
.dialog-root:focus { outline: none; }
#dialogQuickActionsHotspot {
    position: fixed;
    top: 0;
    left: 50%;
    width: 140px;
    height: 16px;
    transform: translateX(-50%);
    z-index: 49;
}

#dialogQuickActions {
    position: fixed;
    top: 6px;
    left: 50%;
    transform: translate(-50%, -120%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid #d0d0d0;
    border-radius: 0 0 8px 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: transform 110ms ease-out, opacity 90ms ease-out;
    z-index: 50;
}

body.dialog-actions-visible #dialogQuickActions,
#dialogQuickActionsHotspot:hover + #dialogQuickActions,
#dialogQuickActions:hover {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.dm-dialog-action {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    color: #2f2f2f;
    cursor: pointer;
    box-shadow: none;
    position: relative;
}

.copy-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    color: currentColor;
}

.copy-icon::before,
.copy-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.3px solid currentColor;
    border-radius: 2.5px;
    background: transparent;
    box-sizing: border-box;
}

.copy-icon::before {
    top: 1.5px;
    left: 5px;
}

.copy-icon::after {
    top: 4.5px;
    left: 1.5px;
}

.dm-dialog-action:hover {
    background: #ececec;
    color: #1f1f1f;
}

.dm-dialog-action:active {
    background: #dfdfdf;
}

.dm-dialog-action:disabled {
    opacity: 0.45;
    cursor: default;
}

.dm-dialog-action .codicon {
    font-size: 15px;
    line-height: 1;
}

.dm-dialog-action::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #f5f5f5;
    color: #3a3a3a;
    border: 1px solid #c7c7c7;
    border-radius: 10px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 70ms ease-out;
    transition-delay: 20ms;
    pointer-events: none;
    z-index: 30;
}

.dm-dialog-action:hover::after,
.dm-dialog-action:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

#paper {
    position: relative;
    margin: 0;
    border: none;
    background: #ffffff;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dm-plot {
    background: #ffffff;
    border-radius: 0;
    overflow: visible;
}

.dm-plot-surface {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}
