/* ===================================== */
/*              RESET CSS                */
/* ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 4px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.4);
}

/* Выделение текста */
::selection {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent);
}

/* Убираем стандартные кнопки у input[type=number] */
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;
}

/* Убираем стандартные стили у кнопок */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Убираем стандартные стили у списков */
ul, ol {
    list-style: none;
}

/* Убираем подчеркивание у ссылок */
a {
    text-decoration: none;
    color: inherit;
}

/* Базовые стили для изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* ============================================
   ОЩУЩЕНИЕ НАТИВНОГО ПРИЛОЖЕНИЯ
   Текст не выделяется, кроме полей ввода.
   ============================================ */
html,
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}
