/* Custom slider styling */
.slider {
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
    transition: box-shadow 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
    transition: box-shadow 0.2s;
}

.slider::-moz-range-thumb:hover {
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
}

/* Blueprint dots and lines */
.blueprint-dot {
    fill: #ef4444;
    opacity: 0.8;
}

.blueprint-handle {
    stroke: #22c55e;
    stroke-width: 1;
    opacity: 0.6;
}

/* Gradient grid background */
.grid-bg {
    background-image:
        linear-gradient(90deg, rgba(100, 116, 139, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(100, 116, 139, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Blob animation */
@keyframes blob-morph {
    0% {
        d: path('M100,100');
    }
    100% {
        d: path('M100,100');
    }
}

.blob-animating {
    animation: blob-morph 4s ease-in-out infinite alternate;
}

/* Code output smooth scrolling */
#codeOutput {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* SVG canvas styling */
#blobCanvas {
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

#blobCanvas:hover {
    filter: drop-shadow(0 15px 35px rgba(6, 182, 212, 0.3));
}

/* Blueprint layer SVG */
#blueprintLayer svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Background patterns */
.light-bg {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.dark-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.grid-bg-pattern {
    background-image:
        linear-gradient(90deg, rgba(100, 116, 139, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(100, 116, 139, 0.2) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: #0f172a;
}

/* Stock layout gradient backgrounds */
.stock-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stock-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stock-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stock-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stock-gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Tab styling */
.code-tab {
    border-bottom-width: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-tab.active {
    border-color: #06b6d4;
    color: #06b6d4;
}

.code-tab:not(.active):hover {
    color: #e2e8f0;
}

/* Copy button feedback */
.copy-success {
    background-color: #22c55e !important;
}

.copy-success::after {
    content: '✓ Copied!';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    animation: fadeout 1.5s ease-in-out forwards;
}

@keyframes fadeout {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Smooth scrolling for sidebar */
#sidebar {
    scroll-behavior: smooth;
}

/* Radio button and checkbox custom styling */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #06b6d4;
}

/* Loading spinner for image load */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
