/* K3 EDITOR UI THEME */
:root {
    --k3-ui-bg: rgba(255, 255, 255, 0.95);
    --k3-ui-border: #ddd;
    --k3-ui-text: #333;
    --k3-ui-accent: #007aff;
}

.k3-window {
    position: fixed;
    background: var(--k3-ui-bg);
    border: 1px solid var(--k3-ui-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    width: 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    backdrop-filter: blur(10px);
    transition: height 0.2s ease, opacity 0.2s ease;
}

.k3-window-header {
    padding: 10px 12px;
    background: #f8f8f8;
    border-bottom: 1px solid var(--k3-ui-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}
.k3-window-header:active { cursor: grabbing; }

.k3-window-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.k3-window-btn {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    font-size: 12px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #666;
}
.k3-window-btn:hover { border-color: #999; color: #000; }

.k3-window-body {
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

.k3-window.minimized .k3-window-body { display: none; }
.k3-window.minimized { height: auto !important; }

/* CONTROLS */
.k3-control-group { margin-bottom: 15px; }
.k3-label { 
    display: block; font-size: 10px; font-weight: 600; 
    color: #888; text-transform: uppercase; margin-bottom: 5px; 
}
.k3-input-range { width: 100%; display: block; cursor: pointer; }
.k3-input-color { width: 100%; height: 28px; border: 1px solid #ccc; padding: 0; cursor: pointer; }
.k3-select { width: 100%; padding: 4px; font-size: 11px; }
.k3-input-text { width: 100%; padding: 4px; font-size: 11px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }

hr { border: 0; border-top: 1px solid #eee; margin: 10px 0; }