frontend/src/style.css
/* panopti/server/static/css/style.css */
:root {
    --primary-color: #4361ee;
    --primary-opaque: #4362ee5f;
    --primary-hover: #3a56d4;
    --secondary-color: #3f37c9;
    --background-color: #f0f0f0;
    --panel-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #e9ecef;
    --success-color: #38b000;
    --success-hover: #2d9900;
    --button-active: #38b000;
    /* --global-zoom: 1.0;
    zoom: var(--global-zoom); 
    -moz-transform: scale(var(--global-zoom));
    -moz-transform-origin: 0 0; */
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    background-color: var(--background-color);
    color: var(--text-color);
}

#app {
    width: 100%;
    height: 100%;
}

.viewer-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.scene-container {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    background: radial-gradient(circle at center, #ffffff, #f0f0f0);
}

.scene-container canvas {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    display: block;
}

.ui-panel {
    width: 320px;
    flex-shrink: 0;
    background-color: var(--panel-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    /* Default: no transition */
    transition: none;
}

.ui-panel.panel-expanding {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-panel.panel-collapsing {
    transition: none;
}

.ui-panel.panel-collapsed {
    width: 0px;
    min-width: 0;
    overflow: hidden;
}

/* Hide header and content when collapsed */
.ui-panel.panel-collapsed .ui-panel-header,
.ui-panel.panel-collapsed .ui-panel-content {
    display: none;
}

.ui-panel-header {
    padding: 0px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

.ui-panel-header-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 0;
    position: relative;
}

.ui-panel-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: 400;
}

.collapse-ui-panel-btn {
    margin: 0px;
    background: none;
    border: none;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    position: absolute;
    left: 8px;
    top: 30%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}
.collapse-ui-panel-btn:hover {
    background: rgba(255,255,255,0.15);
}

.ui-panel-header h2 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.ui-panel-content {
    padding: 8px;
    flex-grow: 1;
    overflow-y: auto;
}

.control-group {
    /* margin-bottom: 12px; */
    background-color: white;
    border-radius: 8px;
    padding: 4px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color); */
}

.control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
}

.control-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #eaeaea;
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.15s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: background 0.15s ease;
}

.slider::-moz-range-thumb:hover {
    background: var(--primary-hover);
}

.slider-value-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.slider-btn {
    cursor: pointer;
    color: var(--primary-color);
}

.slider-value {
    width: 60px;
    text-align: center;
    font-weight: 600;
    background-color: #ffffff;
    color: var(--text-color);
    padding: 4px 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.25);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

.label-container {
    background-color: #f8f9fa;
    padding: 12px;
    padding-bottom: 8px;
    padding-top: 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-top: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
    /* white-space: pre-wrap; */
}

/* Checkbox styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    user-select: none;
}

/* Dropdown styles */
.dropdown {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.15s ease;
    outline: none;
    font-family: inherit;
}

.dropdown:hover {
    border-color: #d0d0d0;
}

.dropdown:focus {
    border-color: var(--primary-color);
}

/* Scene Toolbar */
.scene-toolbar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    gap: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Render Toolbar */
.render-toolbar {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    gap: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Lighting Toolbar */
.lighting-toolbar {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toolbar-button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    /* background-color: #4361ee; */
    background-color: var(--primary-color);
    /* border: 1px solid var(--border-color); */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.toolbar-button.active {
    background-color: var(--button-active);
}

.toolbar-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toolbar-separator {
    width: 1px;
    height: 36px;
    background-color: var(--primary-opaque);
    margin: 0 6px;
    align-self: center;
}

/* Info Bar */
.info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.info-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.widget-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.widget-button.active {
    background-color: var(--primary-color);
    color: white;
}

.info-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-grow: 1;
}

.info-item {
    font-weight: 500;
}

/* Status Indicators Container */
.status-indicators-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: help;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-label {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0px;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.status-message {
    white-space: nowrap;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Animation for when objects are added */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.control-group {
    animation: fadeIn 0.3s ease-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .viewer-container {
        flex-direction: column;
    }
    
    .ui-panel {
        width: 100%;
        height: 40%;
    }
    
    .scene-container {
        height: 60%;
    }
}

/* Toggle sidebar button */
.toggle-panel {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 1.2rem;
}

.panel-collapsed {
    transform: translateX(-100%);
}

/* Loading indicator */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(67, 97, 238, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Layers Panel */
.layers-panel {
    position: absolute;
    bottom: 50px;
    right: 6px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    width: 260px;
    max-height: 35%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.01s cubic-bezier(0.4, 0, 0.2, 1);
}

.layers-panel.collapsed {
    max-height: 48px; /* Only show header */
    min-height: 0;
}

.layers-panel-header {
    padding: 0px 16px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.layers-panel-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.collapse-layers-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
    margin-left: 8px;
    display: flex;
    align-items: center;
}
.collapse-layers-btn:hover {
    background: rgba(255,255,255,0.15);
}

.layers-panel-content {
    overflow-y: auto;
    padding: 8px;
    max-height: calc(50vh - 44px);
    transition: opacity 0.2s;
}

.layers-panel.collapsed .layers-panel-content {
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding: 0;
}

.layer-item {
    display: flex;
    align-items: center;
    /* padding: 8px 12px; */
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
}

.layer-item:hover {
    background-color: rgba(240, 240, 240, 0.8);
}

.layer-item.selected {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: var(--primary-color);
}

.layer-item.warning {
    border-color: #e6394673;
}

.layer-item i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.layer-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.warning-icon {
    margin-left: 4px;
    font-size: 0.85rem;
}

.layer-item .warning-icon i {
    color: #e63946;
}

.layer-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-pause-button,
.visibility-toggle,
.export-button {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 4px;
    margin: 0;
    box-shadow: none;
    width: 28px;
    height: 28px;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.85rem;
}

.play-pause-button:hover,
.visibility-toggle:hover,
.export-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: none;
    box-shadow: none;
}

.export-button {
    color: #666;
}

.export-button:hover {
    color: var(--primary-color);
}

.visibility-visible {
    color: var(--primary-color);
    opacity: 1.0;
}

.visibility-semi {
    opacity: 0.6;
}

.visibility-hidden {
    color: #ccc;
    opacity: 0.5;
}

.no-layers {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    /* padding: 16px; */
}

/* Modal styles for render functionality */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h3 {
    margin: 0 0 16px 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.save-btn {
    background-color: var(--primary-color);
    color: white;
}

.save-btn:hover {
    background-color: var(--primary-hover);
}

.discard-btn {
    background-color: #6c757d;
    color: white;
}

.discard-btn:hover {
    background-color: #5a6268;
}

/* Transform Panel */
.transform-panel {
    position: absolute;
    /* top: 16px; */
    /* right: 16px; */
    bottom: 50px;
    left: 6px;
    z-index: 12;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    /* width: 240px; */
}

.transform-row {
    margin-bottom: 8px;
}

/* .transform-row.label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
} */

.vector-fields {
    display: flex;
    gap: 4px;
}

.transform-lock-reset {
    display: flex;
    /* justify-content: space-between;
    align-items: center; */
    margin-top: 8px;
}

.lock-btn, .reset-btn {
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
}

.lock-btn {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.lock-btn i {
    pointer-events: none;
}

.console-window {
    position: absolute;
    width: 550px;
    height: 250px;
    background: #181c24b8;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', monospace;
    border: 1.5px solid #3a4252;
    border-radius: 4px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(24,28,36,0.18);
}
.console-header {
    background: #23272f9b;
    color: #fff;
    padding: 4px 8px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-radius: 4px 4px 0 0;
}
.console-header-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
}
.console-content {
    flex-grow: 1;
    padding: 4px 8px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #d8d8d8;
    margin: 0;
    word-wrap: break-word;
    font-size: 0.85rem;
}

/* Console line colors */
.console-line {
    /* display: block; */
}

.console-red {
    color: #ff6b6b;
}

.console-green {
    color: #51cf66;
}

.console-yellow {
    color: #ffd43b;
}

.console-blue {
    color: #74c0fc;
}

.console-magenta {
    color: #f783ac;
}

.console-cyan {
    color: #63e6be;
}

.console-white {
    color: #dddddd;
}

.console-bright-red {
    color: #ff8787;
}

.console-bright-green {
    color: #69db7c;
}

.console-bright-yellow {
    color: #ffec99;
}

.console-bright-blue {
    color: #91a7ff;
}

.console-bright-magenta {
    color: #faa2c1;
}

.console-bright-cyan {
    color: #87e6c9;
}

.console-black {
    color: #252525;
}

.console-bright-black {
    color: #6b6b6b;
}

.console-bright-white {
    color: #ffffff;
}

.console-close {
    all: unset;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.console-close:hover {
    color: #ff4d4d;
    text-decoration: none;
}
.console-clear {
    all: unset;
    background: none;
    font-size: 0.8em;
    padding: 0 8px;
    margin: 0;
    cursor: pointer;
    height: 2em;
    display: flex;
    align-items: center;
    color: #ffd43b;
    border-radius: 4px;
    transition: color 0.15s;
}
.console-clear:hover {
    color: #ffe066;
    text-decoration: none;
}
/* Generic tooltip styling */
.tooltip[data-tooltip] {
    cursor: default;
}

.tooltip-floating {
    position: fixed;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: pre-line;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.tooltip-floating.show {
    display: block;
    opacity: 1;
}

/* Color Picker */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Floating caret button for collapsed panel */
.floating-ui-panel-caret {
    position: absolute;
    top: 25%;
    right: -12px;
    z-index: 30;
    background: rgba(67, 97, 238, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.15s, color 0.15s;
    /* Extend hitbox with pseudo-element */
    /* position: relative; */
}

.floating-ui-panel-caret::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
}

.floating-ui-panel-caret:hover {
    background: rgba(58, 86, 212, 0.95);
    right: 0px;
    transition: right 0.15s ease-out;
}


.widget-window {
    position: absolute;
    width: 400px;
    height: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.widget-header {
    background: var(--primary-color);
    color: #fff;
    padding: 0px 12px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.widget-header-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}
.widget-header-buttons button {
    padding: 0px 0px;
}
.widget-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.widget-minimize:hover {
    background: rgba(255, 255, 255, 0.15);
}
.widget-content {
    flex-grow: 1;
    padding: 12px;
    padding-top: 0px;
    overflow-y: auto;
    background: white;
}
.segmented-control.wireframe-segmented {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    gap:2px;
}
.segmented-control.wireframe-segmented .toolbar-button.segmented {
    border: none;
    background: none;
    color: #fff;
    background: var(--primary-color);
    border-radius: 6px;
    box-shadow: none;
    padding: 0 14px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.segmented-control.wireframe-segmented .toolbar-button.segmented.active {
    background: var(--button-active);
    color: #fff;
}
.segmented-control.wireframe-segmented .toolbar-button.segmented {
    /* border: 1px solid var(--primary-opaque); */
}

.ms-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24
}

.ms-filled {
    font-variation-settings:
    'FILL' 1,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24
}