:root {
    /* Theme Variables - Cyan-ish Blue */
    --primary-color: #0ea5e9; /* Sky 500 */
    --primary-hover: #0284c7; /* Sky 600 */
    --primary-text: #7dd3fc; /* Sky 300 */
    --primary-border: #0ea5e9;
    --primary-bg-dim: rgba(14, 165, 233, 0.15);
    
    --action-color: #0369a1; /* Sky 700 */
    --action-hover: #075985; /* Sky 800 */
}

/* Utility Classes for Theme */
.text-theme { color: var(--primary-color); }
.text-theme-light { color: var(--primary-text); }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-action {
    background-color: var(--action-color);
    color: white;
}
.btn-action:hover {
    background-color: var(--action-hover);
}

/* Tool Button Active State */
.tool-btn {
    transition: all 0.2s ease;
    outline: none;
}
.tool-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-bg-dim);
}
.tool-btn.active {
    background-color: var(--primary-bg-dim) !important;
    border-color: var(--primary-border) !important;
    color: var(--primary-text) !important;
}

body {
    font-family: "Geo", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #0f172a;
    color: #e2e8f0;
    overflow: hidden;
    font-size: 1.1rem; /* Geo is a bit small */
}

h1, h2, h3, .font-title {
    font-family: "Parisienne", cursive;
    font-weight: 400;
    font-style: normal;
}

/* Adjust title size for Parisienne as it can be small */
h1, .app-title { font-size: 1.75rem !important; }
h3 { font-size: 2.8rem; }

.checkered-bg {
    background-color: #020617; /* Slate 950 */
    background-image: 
        linear-gradient(45deg, #1e293b 25%, transparent 25%), 
        linear-gradient(-45deg, #1e293b 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #1e293b 75%), 
        linear-gradient(-45deg, transparent 75%, #1e293b 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

input[type=range] {
    -webkit-appearance: none; 
    background: transparent; 
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-top: -6px;
    cursor: pointer;
    border: 2px solid #0f172a;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    background: #334155;
    border-radius: 2px;
}

.canvas-container {
    cursor: crosshair;
    touch-action: none;
}
.canvas-container.panning {
    cursor: grab;
}
.canvas-container.panning:active {
    cursor: grabbing;
}

#loader {
    backdrop-filter: blur(5px);
}

#brush-preview-overlay {
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#brush-cursor-preview {
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: width 0.1s, height 0.1s;
}

#global-tooltip {
    position: fixed;
    z-index: 9999;
    background-color: #0f172a;
    border: 1px solid var(--primary-border);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 1.0rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    display: none;
}
#global-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}