/* =========================================================
   RED ROCK PRO UNIFORM DESIGNER STYLES
   ========================================================= */

:root {
    --designer-bg: #0f172a;
    --designer-panel-bg: #ffffff;
    --designer-accent: #990000;
    --designer-active-border: #dc2626;
}

.designer-workspace-wrap {
    background: #f8fafc;
    border-radius: 16px;
}

/* Stage Canvas Container */
.designer-stage-wrap {
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    background-image: 
        linear-gradient(rgba(226, 232, 240, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

#uniformCanvas {
    background: transparent;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
    transition: transform 0.2s ease;
}

/* Multi-View Selector Bar */
.view-selector-bar {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 5px 8px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    z-index: 10;
}

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

.view-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.view-btn.active {
    background: var(--designer-accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(153, 0, 0, 0.35);
}

/* Tab Navigation */
.designer-tab-nav {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0 0.5rem;
}

.designer-tab-nav .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}

.designer-tab-nav .nav-link:hover {
    color: #0f172a;
}

.designer-tab-nav .nav-link.active {
    color: var(--designer-accent);
    border-bottom-color: var(--designer-accent);
    background: #ffffff;
}

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

/* Custom Interactive Selection Cards (Collar, Patterns, Fabric) */
.style-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.style-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    position: relative;
}

.style-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.style-card.active {
    border-color: var(--designer-accent);
    background: #fff5f5;
    box-shadow: 0 0 0 1px var(--designer-accent);
}

.style-card .card-title-mini {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.style-card .card-desc-mini {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

/* Fabric Cards */
.fabric-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.fabric-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.fabric-card.active {
    border-color: var(--designer-accent);
    background: #fff5f5;
    box-shadow: 0 0 0 1.5px var(--designer-accent);
}

.fabric-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.fabric-card.active .fabric-badge {
    background: #fee2e2;
    color: #990000;
}

/* Color Swatches & Spectrum */
.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, box-shadow 0.15s;
    margin: 3px;
}

.color-swatch:hover, .color-swatch.active {
    transform: scale(1.18);
    box-shadow: 0 0 0 2.5px var(--designer-accent);
}

.color-zone-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.color-picker-input {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

/* Sleeve Toggle Buttons */
.sleeve-toggle-group {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    display: flex;
    gap: 4px;
}

.sleeve-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s ease;
}

.sleeve-btn.active {
    background: #ffffff;
    color: #990000;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Roster Table Styling */
.roster-table input, .roster-table select {
    font-size: 0.85rem;
}

.roster-badge-count {
    background: var(--designer-accent);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
}
