@import "./tokens.css";
@import "./components.css";

/* Prevent page-level scrollbar — app is fully contained in the shell */
html,
body {
    overflow: hidden;
    height: 100%;
}

/* Global input reset so all inputs use our design */
/* Exclude checkboxes and radios from the full reset */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    box-sizing: border-box;
    width: 100%;
    background-color: var(--color-bg-input);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: 1.5;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 0;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder,
textarea::placeholder {
    color: var(--color-text-subtle);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

input:not([type="checkbox"]):not([type="radio"]):disabled,
textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

button {
    font-family: var(--font-family-base);
    cursor: pointer;
}

/* ── Scrollbars (WebKit + Firefox) ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-border-strong);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
