/* Shader Mode CSS - Shader Mode specific styles */

body.shader-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

.shader-mode .side-panel {
    background: #252525;
    border-left: 1px solid #333;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.shader-mode .canvas-container {
    background-color: #111;
    position: relative;
}

.shader-mode #card-canvas {
    /* Checkerboard for transparency visualization */
    background-color: #1a1a1a;
    background-image: 
        linear-gradient(45deg, #222 25%, transparent 25%), 
        linear-gradient(-45deg, #222 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #222 75%), 
        linear-gradient(-45deg, transparent 75%, #222 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 1px solid #333;
    cursor: grab;
}

.shader-mode #card-canvas:active {
    cursor: grabbing;
}

.shader-mode .control-section {
    background: #333;
    border: none;
}

.shader-mode .control-section h3 {
    color: #4db8ff;
    border-bottom: 2px solid #4db8ff;
    padding-bottom: 5px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.shader-mode h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 15px;
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

.shader-mode .sub-group {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #444;
}

.shader-mode label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.shader-mode select {
    background: #444;
    color: white;
    border: 1px solid #555;
}

.shader-mode .file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin-bottom: 5px;
}

.shader-mode .file-btn {
    border: 1px solid #444;
    color: white;
    background-color: #444;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shader-mode .file-btn:hover {
    background-color: #555;
}

.shader-mode .file-btn input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: inherit;
    display: block;
}

.shader-mode .preview-img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 5px;
    background: #000;
    border: 1px solid #444;
    opacity: 0.7;
}

.shader-mode .remove-btn {
    background: #ff5555;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 5px;
    width: 100%;
}

.shader-mode .info {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
    line-height: 1.4;
}

.shader-mode .color-picker {
    width: 100%;
    height: 30px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.shader-mode .checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.shader-mode .checkbox-row input {
    margin-right: 10px;
}

.shader-mode .action-btn {
    background: #4db8ff;
    color: #111;
    font-weight: bold;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    transition: background 0.2s;
    text-align: center;
}

.shader-mode .action-btn:hover {
    background: #7acaff;
}

.shader-mode .action-btn:disabled {
    background: #555;
    color: #888;
    cursor: wait;
}

.shader-mode .progress-bar-container {
    width: 100%;
    height: 6px;
    background: #111;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
    display: none;
}

.shader-mode .progress-bar-container.show {
    display: block;
}

.shader-mode .progress-bar-fill {
    height: 100%;
    background: #ff7b7b;
    width: 0%;
    transition: width 0.2s;
}

/* Note: Spin + Shader mode is now handled via the shader slider in Spin Mode */

