.disabled-section {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Post-processing workshop */
.workshop-tool,
.workshop-action,
.zoom-button {
    border: 1px solid #ddd6fe;
    border-radius: 0.5rem;
    background: #fff;
    color: #5b21b6;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.workshop-tool {
    padding: 0.45rem 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.workshop-tool:hover,
.workshop-tool.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.workshop-action {
    padding: 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.workshop-action:hover:not(:disabled),
.zoom-button:hover {
    background: #f5f3ff;
    border-color: #a78bfa;
}

.workshop-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.workshop-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 0.35rem;
    max-height: 13rem;
    overflow-y: auto;
    padding: 0.15rem;
}

.palette-swatch {
    position: relative;
    aspect-ratio: 1;
    min-height: 30px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.palette-swatch:hover,
.palette-swatch.active {
    outline: 2px solid #7c3aed;
    outline-offset: 1px;
    z-index: 1;
}

.zoom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.15rem;
    line-height: 1;
}

.disabled-section.active {
    opacity: 1;
    pointer-events: auto;
}

/* Local Tailwind build uses the project palette instead of the old runtime CDN config. */
.bg-primary { background-color: #3b82f6; }
.text-primary { color: #3b82f6; }
.border-primary { border-color: #3b82f6; }
.hover\\:bg-blue-600:hover { background-color: #2563eb; }
.hover\\:border-primary:hover { border-color: #3b82f6; }
.focus\\:border-primary:focus { border-color: #3b82f6; }
.focus\\:ring-primary:focus { --tw-ring-color: rgba(59, 130, 246, 0.5); }

/* A few arbitrary-size utilities used by the page are generated by Tailwind v3 at
   development time, so keep their local equivalents for the bundled v2 stylesheet. */
.min-h-\[500px\] { min-height: 500px; }
.max-h-\[600px\] { max-height: 600px; }

/* Custom Scrollbar for the table if needed */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}
