/* ══════════════════════════════════════════════════════════════════════
   EasyToolio — Shared Converter & Tool Design System (Canonical Layer)
   Production-ready design tokens, card surfaces, form controls,
   interactive pills, table styling, and responsive layout primitives.
   ══════════════════════════════════════════════════════════════════════ */

:root {
    /* Layout & Geometry Tokens */
    --cw-max-width: 72rem; /* 1152px / max-w-6xl */
    --cw-radius-xl: 1.5rem; /* 24px */
    --cw-radius-2xl: 1.75rem; /* 28px */
    --cw-radius-3xl: 2rem; /* 32px */
    --cw-radius-pill: 9999px;

    /* Elevation & Surface Shadows */
    --cw-shadow-surface: 0 4px 24px -4px rgba(0, 0, 0, 0.06);
    --cw-shadow-card: 0 2px 12px -2px rgba(0, 0, 0, 0.04);
    --cw-shadow-focus: 0 0 0 3px rgba(16, 185, 129, 0.2);

    /* Animation Timing */
    --cw-transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --cw-transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark {
    --cw-shadow-surface: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
    --cw-shadow-card: 0 4px 20px -4px rgba(0, 0, 0, 0.4);
    --cw-shadow-focus: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

/* ══════════════════════════════════════════════════════════════════════
   1. CORE CONVERTER WORKSPACE & SURFACES
   ══════════════════════════════════════════════════════════════════════ */

.converter-surface {
    transition: background-color var(--cw-transition-normal),
                border-color var(--cw-transition-normal),
                box-shadow var(--cw-transition-normal);
}

/* ══════════════════════════════════════════════════════════════════════
   2. FORM CONTROLS & NUMERIC INPUTS
   ══════════════════════════════════════════════════════════════════════ */

/* Eliminate default browser spin buttons for clean typography */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Clean accessible focus without harsh browser outlines */
input:focus,
input:focus-visible,
select:focus,
select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════════════════
   3. PRESET CHIPS & SCROLL AFFORDANCE
   ══════════════════════════════════════════════════════════════════════ */

.preset-scroll-wrapper {
    position: relative;
    mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
}

.preset-scroll-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.preset-scroll-container::-webkit-scrollbar {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════════
   4. CUSTOM SCROLLBARS
   ══════════════════════════════════════════════════════════════════════ */

.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.2);
    border-radius: var(--cw-radius-pill);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 150, 150, 0.4);
}

/* ══════════════════════════════════════════════════════════════════════
   5. INTERACTIVE ANIMATIONS & BUTTON FEEDBACK
   ══════════════════════════════════════════════════════════════════════ */

.swap-btn-icon {
    transition: transform var(--cw-transition-normal);
}

button:hover .swap-btn-icon {
    transform: rotate(180deg);
}
