/* Sign Lab Bespoke Editor Styles */
#fl-sign-lab-modal {
    font-family: 'Inter', sans-serif;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

canvas {
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
}

/* Base Utilities for Standalone Mode */
.hidden {
    display: none !important;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-\[1000\] {
    z-index: 1000;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.bg-charcoal\/95 {
    background-color: rgba(26, 29, 33, 0.95);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Layout & Spacing */
.flex-1 {
    flex: 1 1 0%;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.w-80 {
    width: 20rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.bg-dark-charcoal {
    background-color: #0a0b0d;
}

.bg-charcoal {
    background-color: #1a1d21;
}

.bg-white {
    background-color: #ffffff;
}

.border-r {
    border-right-width: 1px;
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.fl-sign-lab-launcher {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fl-sign-lab-launcher:hover {
    border-color: rgba(249, 215, 28, 0.3);
    box-shadow: 0 10px 40px -10px rgba(249, 215, 28, 0.1);
}

#fl-lab-controls button {
    transition: all 0.2s ease;
}

#fl-lab-controls button:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

#fl-lab-controls button:active {
    transform: scale(0.95);
}

/* Spinner Animation */
.fl-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(249, 215, 28, 0.2);
    border-top-color: #f9d71c;
    border-radius: 50%;
    animation: fl-spin 0.8s linear infinite;
}

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

.fl-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 13, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    gap: 1.5rem;
}

.fl-loading-text {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Inter', sans-serif;
}

/* AS 1319 Palette Grid */
.fl-palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.fl-swatch {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fl-swatch:hover {
    border-color: #ffffff;
    transform: scale(1.05);
}

/* Tooltip */
.fl-tooltip {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    font-size: 9px;
    padding: 0.35rem 0.6rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fl-swatch:hover .fl-tooltip {
    opacity: 1;
}