/* Global Font & Base Size Override */
body,
button,
input,
select,
textarea {
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.8125rem;
    /* 13px base font size */
}

.font-mono {
    font-family: 'JetBrains Mono', monospace !important;
}

[x-cloak] {
    display: none !important;
}

/* Custom Sleek Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

/* Replaced Slate-400 rgba with Potters-Clay-400 equivalents */
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(181, 143, 90, 0.3);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(181, 143, 90, 0.5);
}

/* Canvas container styles */
#konva-container canvas {
    outline: none !important;
}

/* Custom high-contrast standout horizontal & vertical scrollbars for canvas workspace */
.canvas-workspace-scroll {
    overflow: auto;
    scrollbar-width: auto;
    scrollbar-color: #a67d4c #ffffff;
    scroll-behavior: smooth;
}

.dark .canvas-workspace-scroll {
    scrollbar-color: #b58f5a #301d18;
    /* Replaced slate-950 with potters-clay-950 */
}

.canvas-workspace-scroll::-webkit-scrollbar:horizontal {
    height: 14px;
}

.canvas-workspace-scroll::-webkit-scrollbar:vertical {
    width: 14px;
}

.canvas-workspace-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

.canvas-workspace-scroll::-webkit-scrollbar-track:horizontal {
    background: #ffffff;
    border: 1px solid var(--color-potters-clay-400);
    /* Using Tailwind v4 CSS variable */
    border-radius: 9999px;
    margin: 0 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.canvas-workspace-scroll::-webkit-scrollbar-track:vertical {
    background: #ffffff;
    border: 1px solid var(--color-potters-clay-400);
    border-radius: 9999px;
    margin: 12px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dark .canvas-workspace-scroll::-webkit-scrollbar-track:horizontal {
    background: var(--color-potters-clay-950);
    /* Potters-clay-950 */
    border: 1px solid var(--color-potters-clay-700);
    /* Potters-clay-700 replaces slate-700 */
    border-radius: 9999px;
    margin: 0 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.dark .canvas-workspace-scroll::-webkit-scrollbar-track:vertical {
    background: var(--color-potters-clay-950);
    border: 1px solid var(--color-potters-clay-700);
    border-radius: 9999px;
    margin: 12px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.canvas-workspace-scroll::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(90deg, #b58f5a, #a67d4c, #865e3c);
    border-radius: 9999px;
    border: 2px solid #ffffff;
    min-width: 60px;
}

.canvas-workspace-scroll::-webkit-scrollbar-thumb:vertical {
    background: linear-gradient(180deg, #b58f5a, #a67d4c, #865e3c);
    border-radius: 9999px;
    border: 2px solid #ffffff;
    min-height: 60px;
}

.dark .canvas-workspace-scroll::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(90deg, #c6ab7e, #b58f5a, #a67d4c);
    border-radius: 9999px;
    border: 2px solid var(--color-potters-clay-950);
    min-width: 60px;
}

.dark .canvas-workspace-scroll::-webkit-scrollbar-thumb:vertical {
    background: linear-gradient(180deg, #c6ab7e, #b58f5a, #a67d4c);
    border-radius: 9999px;
    border: 2px solid var(--color-potters-clay-950);
    min-height: 60px;
}

.canvas-workspace-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #a67d4c, #865e3c, #734c35);
    box-shadow: 0 0 12px rgba(128, 84, 60, 0.8);
}

.dark .canvas-workspace-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #dbcbad, #c6ab7e, #b58f5a);
    box-shadow: 0 0 15px rgba(190, 134, 65, 0.9);
}

/* Color Swatch Styling */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.tab-btn {
    cursor: pointer !important;
}