/* Дополнительные стили поверх Tailwind */

/* Шрифт интерфейса: Inter (латиница + кириллица) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.006em;
}

/* Единые отступы и типографика для полей ввода.
   Tailwind CDN не подключает forms-плагин, поэтому базовый padding задаём здесь. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="date"],
select,
textarea {
    padding: 0.5rem 0.75rem;   /* 8px / 12px */
    font-size: 0.875rem;       /* 14px */
    line-height: 1.375rem;
    font-family: var(--font-sans);
}

/* Чекбоксы и радио — компактный padding, чтобы не растягивались правилом выше */
input[type="checkbox"],
input[type="radio"] {
    padding: 0;
}

/* Единый акцент при фокусе для полей без явных focus-классов */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;            /* brand-600 */
    box-shadow: 0 0 0 1px #2563eb;
}

/* Плавные переходы для интерактивных элементов */
button, a, input, select, textarea {
    transition-property: color, background-color, border-color, box-shadow;
    transition-duration: 150ms;
}

/* Скроллбар для боковых панелей */
.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 2px;
}
