@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* NOTE: @tailwind base (Preflight) is intentionally excluded here.
   It resets global browser styles and bleeds into the theme's design.
   Only utilities and components are used to avoid CSS conflicts. */
@tailwind components;
@tailwind utilities;

#wise-stock-bar-app {
    --wise-purple: 139, 92, 246;
    --wise-dark: 30, 27, 75;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scoped Reset to replace missing Tailwind Preflight without bleeding
   Using :where() to keep specificity low so Tailwind utilities can override these defaults */
:where(#wise-stock-bar-app) *,
:where(#wise-stock-bar-app) *::before,
:where(#wise-stock-bar-app) *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

:where(#wise-stock-bar-app) button,
:where(#wise-stock-bar-app) [type='button'],
:where(#wise-stock-bar-app) [type='reset'],
:where(#wise-stock-bar-app) [type='submit'] {
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    text-transform: none;
    -webkit-appearance: button;
}

:where(#wise-stock-bar-app) input,
:where(#wise-stock-bar-app) select,
:where(#wise-stock-bar-app) textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    line-height: inherit;
}

/* Custom scrollbar scoped to stock bar widget */
#wise-stock-bar-app ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#wise-stock-bar-app ::-webkit-scrollbar-track {
    background: transparent;
}

#wise-stock-bar-app ::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

#wise-stock-bar-app ::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}