/* UNIFORM DESIGNER CSS */
.designer-container {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.designer-stage-wrap {
    background: #f1f5f9;
    background-image: 
        linear-gradient(rgba(203, 213, 225, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(203, 213, 225, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

#uniformCanvas {
    background: transparent;
    border-radius: 4px;
    cursor: crosshair;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 100%;
    height: auto;
}

.view-selector-bar {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 4px 6px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.view-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--rr-red);
    color: #ffffff;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
    display: inline-block;
    transition: transform 0.15s;
    margin: 4px;
}

.color-swatch:hover, .color-swatch.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--rr-red);
}

.designer-sidebar {
    background: #ffffff;
    border-left: 1px solid var(--rr-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.designer-tab-nav {
    border-bottom: 1px solid var(--rr-border);
    background: #f8fafc;
}

.designer-tab-nav .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.designer-tab-nav .nav-link.active {
    color: var(--rr-red);
    border-bottom-color: var(--rr-red);
    background: transparent;
}

.designer-panel-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 520px;
}

/* Layer element floating controls */
.canvas-selected-box {
    position: absolute;
    border: 1.5px dashed var(--rr-red);
    pointer-events: none;
}
