* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

header {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #ff6b6b;
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #888;
    font-size: 0.85rem;
}

main {
    display: grid;
    grid-template-columns: 220px 1fr 250px;
    gap: 15px;
    padding: 15px;
    height: calc(100vh - 85px);
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel h2 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b6b;
    color: #ff6b6b;
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tab-btn.active {
    background: #ff6b6b;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-tip {
    color: #888;
    font-size: 0.7rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.panel h3 {
    font-size: 0.8rem;
    margin: 12px 0 8px;
    color: #ffd93d;
}

/* Shoe Grid */
.shoe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.shoe-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.shoe-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.shoe-item.selected {
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.1);
}

.shoe-preview {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shoe-preview img {
    max-width: 100%;
    max-height: 100%;
    filter: invert(1) brightness(0.8);
    transition: filter 0.3s;
}

.shoe-item:hover .shoe-preview img {
    filter: invert(1) brightness(1) sepia(1) hue-rotate(-50deg) saturate(5);
}

.shoe-name {
    display: block;
    font-size: 0.6rem;
    margin-top: 4px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Canvas Area */
.canvas-area {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.canvas-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.canvas-controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

#clearCanvas {
    background: #ff6b6b;
    color: white;
}

#clearCanvas:hover {
    background: #ff5252;
}

#downloadDesign {
    background: #6bcb77;
    color: white;
}

#downloadDesign:hover {
    background: #5cb868;
}

#flipHorizontal, #scaleUp, #scaleDown {
    background: #4d96ff;
    color: white;
}

#flipHorizontal:hover, #scaleUp:hover, #scaleDown:hover {
    background: #3d7dd9;
}

.canvas-instruction {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-align: center;
    display: none;
}

.canvas-container {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#shoeCanvas {
    cursor: crosshair;
}

.canvas-hint {
    color: #999;
    font-size: 1rem;
    position: absolute;
}

.color-tip {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.tolerance-section {
    margin-top: 15px;
}

.tolerance-section input[type="range"] {
    width: 100%;
    margin: 8px 0;
}

.tolerance-section span {
    color: #888;
    font-size: 0.8rem;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.color-item {
    aspect-ratio: 1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-item:hover {
    transform: scale(1.15);
    border-color: #fff;
}

.color-item.selected {
    border-color: #ffd93d;
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
    transform: scale(1.1);
}

/* Custom color */
.custom-color-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.custom-color-row input[type="color"] {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.custom-color-row button {
    flex: 1;
    padding: 8px 12px;
    background: #4d96ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

.custom-color-row button:hover {
    background: #3d7dd9;
}

/* Pattern Grid */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pattern-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.pattern-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b6b;
}

.pattern-item.selected {
    border-color: #ffd93d;
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.pattern-preview {
    height: 35px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.pinstripe-preview {
    background: repeating-linear-gradient(
        90deg,
        #1a1a2e,
        #1a1a2e 4px,
        #3a3a5e 4px,
        #3a3a5e 5px
    );
}

.houndstooth-preview {
    background-color: #f5f5f5;
    background-image:
        linear-gradient(45deg, #2c2c2c 25%, transparent 25%),
        linear-gradient(-45deg, #2c2c2c 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2c2c2c 75%),
        linear-gradient(-45deg, transparent 75%, #2c2c2c 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}

.herringbone-preview {
    background-color: #d4c4a8;
    background-image: repeating-linear-gradient(
        -45deg,
        #8b7355 0px,
        #8b7355 2px,
        transparent 2px,
        transparent 8px
    ),
    repeating-linear-gradient(
        45deg,
        #8b7355 0px,
        #8b7355 2px,
        transparent 2px,
        transparent 8px
    );
}

.carbon-preview {
    background-color: #1a1a1a;
    background-image:
        linear-gradient(45deg, #2d2d2d 25%, transparent 25%),
        linear-gradient(-45deg, #2d2d2d 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2d2d2d 75%),
        linear-gradient(-45deg, transparent 75%, #2d2d2d 75%);
    background-size: 6px 6px;
    background-position: 0 0, 0 3px, 3px -3px, -3px 0;
}

.leather-preview {
    background: #8B4513;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(0,0,0,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.gradient-preview {
    background: linear-gradient(90deg, #1a1a2e, #16213e, #0f3460);
}

.pattern-item span {
    display: block;
    font-size: 0.6rem;
    color: #aaa;
}

/* Pattern colors */
.pattern-color-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pattern-color-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.pattern-color-row input[type="color"] {
    width: 40px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Scrollbar Styling */
.panel::-webkit-scrollbar {
    width: 6px;
}

.panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1100px) {
    main {
        grid-template-columns: 180px 1fr 200px;
    }
}

@media (max-width: 800px) {
    main {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto;
    }

    .left-panel, .right-panel {
        max-height: 180px;
    }

    .shoe-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .canvas-area {
        min-height: 350px;
    }
}

/* Large Pattern Grid */
.pattern-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pattern-item-large {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.pattern-item-large:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b6b;
}

.pattern-item-large.selected {
    border-color: #ffd93d;
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.pattern-preview-large {
    height: 50px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.pattern-item-large span {
    font-size: 0.7rem;
    color: #ccc;
}

/* Additional pattern previews */
.checkers-preview {
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #000 75%),
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 14px 14px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.stripes-preview {
    background: repeating-linear-gradient(
        90deg,
        #1E3A5F,
        #1E3A5F 8px,
        #fff 8px,
        #fff 16px
    );
}

.camo-preview {
    background-color: #4a5d23;
    background-image:
        radial-gradient(ellipse at 20% 30%, #2d3a14 30%, transparent 30%),
        radial-gradient(ellipse at 70% 60%, #6b7c3f 25%, transparent 25%),
        radial-gradient(ellipse at 40% 80%, #2d3a14 20%, transparent 20%);
}

.denim-preview {
    background-color: #4a6fa5;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        #3d5a80 2px,
        #3d5a80 4px
    );
}

/* Logo Grid */
.logo-section {
    margin-bottom: 15px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.logo-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #fff;
    padding: 6px;
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b6b;
    transform: scale(1.05);
}

.logo-item:active {
    cursor: grabbing;
}

.logo-item svg {
    width: 100%;
    height: 100%;
}

.logo-item.text-logo {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -1px;
}

.logo-item.custom-uploaded img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Logo controls */
.logo-controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.logo-size-control,
.logo-color-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-size-control label,
.logo-color-control label {
    font-size: 0.75rem;
    color: #888;
    min-width: 40px;
}

.logo-size-control input[type="range"] {
    flex: 1;
}

.logo-color-control input[type="color"] {
    width: 40px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#logoUpload {
    width: 100%;
    font-size: 0.75rem;
    color: #888;
}

/* Placed logos on canvas */
#logoLayer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.placed-logo {
    position: absolute;
    cursor: move;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease;
}

.placed-logo svg {
    width: 100%;
    height: 100%;
}

.placed-logo .logo-text {
    font-weight: 800;
    letter-spacing: -1px;
}

.placed-logo.selected {
    outline: 2px dashed #ff6b6b;
    outline-offset: 4px;
}

.placed-logo:hover {
    outline: 2px dashed rgba(255, 107, 107, 0.5);
    outline-offset: 4px;
}

/* Canvas controls button styles */
.canvas-controls button {
    background: #4d96ff;
    color: white;
}

.canvas-controls button:hover {
    background: #3d7dd9;
}

.canvas-controls button:first-child {
    background: #ff6b6b;
}

.canvas-controls button:first-child:hover {
    background: #ff5252;
}

.canvas-controls button:nth-child(4) {
    background: #6bcb77;
}

.canvas-controls button:nth-child(6):hover {
    background: #5cb868;
}

.canvas-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.canvas-controls button:disabled:hover {
    transform: none;
}

/* Upload / Drop Zones */
.upload-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-section h3 {
    font-size: 0.8rem;
    color: #ffd93d;
    margin-bottom: 8px;
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone span {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.drop-zone.drag-over {
    transform: scale(1.02);
}

.upload-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #4d96ff;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #3d7dd9;
}

.upload-tip {
    font-size: 0.65rem;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

/* Custom uploaded items */
.shoe-item.custom-shoe {
    border-color: rgba(77, 150, 255, 0.3);
}

.pattern-item-large.custom-pattern {
    border-color: rgba(77, 150, 255, 0.3);
}

.pattern-item-large.custom-pattern .pattern-preview-large {
    background-repeat: repeat;
    background-position: center;
}

/* View Tabs */
.view-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.view-tab {
    flex: 1;
    padding: 6px 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.view-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.view-tab.active {
    background: #4d96ff;
    color: #fff;
}

/* Design Info Bar */
.design-info {
    display: flex;
    gap: 20px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #888;
}

/* Material Selector */
.material-section {
    margin-bottom: 12px;
}

.material-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}

.material-select:focus {
    outline: none;
    border-color: #ff6b6b;
}

.material-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Current Selection Display */
.current-selection {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

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

.selection-color {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.selection-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selection-info span {
    font-size: 0.75rem;
    color: #aaa;
}

.selection-info span:first-child {
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
}

/* Custom Color Row */
.custom-color-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.custom-color-row input[type="color"] {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.pantone-input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
}

.pantone-input::placeholder {
    color: #666;
}

/* Specs Tab */
.specs-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.specs-empty {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-section h4 {
    color: #ffd93d;
    font-size: 0.8rem;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.spec-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
}

.spec-color {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.spec-details {
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.4;
}

.spec-details strong {
    color: #fff;
}

/* Specs Actions */
.specs-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.spec-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: #6bcb77;
    color: white;
}

.spec-btn:hover {
    background: #5cb868;
}

.spec-btn.secondary {
    background: #4d96ff;
}

.spec-btn.secondary:hover {
    background: #3d7dd9;
}

/* Project Info */
.project-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.project-field {
    margin-bottom: 10px;
}

.project-field label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
}

.project-field input,
.project-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
}

.project-field textarea {
    min-height: 60px;
    resize: vertical;
}

.project-field input::placeholder,
.project-field textarea::placeholder {
    color: #555;
}

/* Pantone grid styling */
.pantone-grid .color-item {
    position: relative;
}

.pantone-grid .color-item::after {
    content: attr(title);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: #666;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.pantone-grid .color-item:hover::after {
    opacity: 1;
}

/* Design Sets */
.panel-tip {
    font-size: 0.65rem;
    color: #666;
    margin-bottom: 8px;
}

.design-set-item {
    position: relative;
    border-color: rgba(77, 150, 255, 0.3);
}

.design-set-item:hover {
    border-color: #4d96ff;
}

.set-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #4d96ff;
    color: white;
    font-size: 0.5rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* View tab availability */
.view-tab.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

.view-tab.available {
    opacity: 1;
}

.view-tab.available::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #6bcb77;
    border-radius: 50%;
}

.view-tab {
    position: relative;
}

/* Custom Text Tool (Feature #3) */
.custom-text-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-text-controls input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
}

.custom-text-controls input[type="text"]::placeholder {
    color: #666;
}

.custom-text-controls select {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}

.custom-text-controls select option {
    background: #1a1a2e;
}

.add-text-btn {
    padding: 8px 12px;
    background: #6bcb77;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.add-text-btn:hover {
    background: #5cb868;
}

.custom-text-logo .logo-text {
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Colorways Section (Feature #4) */
.colorways-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-bottom: 15px;
}

.colorway-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.colorway-controls input {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
}

.colorway-controls input::placeholder {
    color: #555;
}

.colorway-btn {
    padding: 8px 12px;
    background: #4d96ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: background 0.3s;
}

.colorway-btn:hover {
    background: #3d7dd9;
}

.colorway-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.colorway-empty {
    color: #666;
    font-size: 0.75rem;
    text-align: center;
    padding: 15px;
}

.colorway-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.colorway-item:last-child {
    margin-bottom: 0;
}

.colorway-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.colorway-thumb {
    width: 50px;
    height: 35px;
    object-fit: contain;
    border-radius: 4px;
    background: white;
}

.colorway-name {
    flex: 1;
    font-size: 0.8rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colorway-actions {
    display: flex;
    gap: 4px;
}

.colorway-load {
    padding: 4px 10px;
    background: #6bcb77;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: background 0.2s;
}

.colorway-load:hover {
    background: #5cb868;
}

.colorway-delete {
    padding: 4px 8px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1;
    transition: background 0.2s;
}

.colorway-delete:hover {
    background: #ff5252;
}

/* Size Range Row */
.size-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-range-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
}

.size-range-row select option {
    background: #1a1a2e;
}

.size-range-row span {
    color: #888;
    font-size: 0.8rem;
}

/* Project Info Selects */
.project-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
}

.project-field select option {
    background: #1a1a2e;
}

/* Drawing Tools */
.draw-section {
    margin-bottom: 15px;
}

.draw-section h3 {
    font-size: 0.8rem;
    color: #ffd93d;
    margin-bottom: 8px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.tool-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #aaa;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tool-btn.active {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    color: #fff;
}

.tool-btn svg {
    width: 100%;
    height: 100%;
}

.draw-action-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    background: #4d96ff;
    color: white;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.draw-action-btn:hover {
    background: #3d7dd9;
}

.draw-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.draw-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.draw-action-btn.secondary.active {
    background: #6bcb77;
    color: white;
}

.draw-action-btn.danger {
    background: #ff6b6b;
}

.draw-action-btn.danger:hover {
    background: #ff5252;
}

.brush-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.brush-preview-row span {
    font-size: 0.75rem;
    color: #888;
}

.brush-preview {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    transition: all 0.2s;
}

.draw-color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.draw-color-item {
    aspect-ratio: 1;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.draw-color-item:hover {
    transform: scale(1.1);
}

.draw-color-item.active {
    border-color: #ffd93d;
    box-shadow: 0 0 8px rgba(255, 217, 61, 0.5);
}

.custom-draw-color {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-draw-color input[type="color"] {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.custom-draw-color span {
    font-size: 0.75rem;
    color: #888;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #aaa;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
