/* 01-components.css — shared controls: the three button styles, the close button and the add buttons.
   Built only from 00-tokens.css names; loaded right after 01-base.css so screen files can still refine them. */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background-color var(--mo-fast) var(--ease-out), border-color var(--mo-fast) var(--ease-out), color var(--mo-fast) var(--ease-out), transform var(--mo-fast) var(--ease-out);
    font-family: inherit; line-height: 1.4; text-decoration: none;
}
.btn:focus-visible, .btn-close:focus-visible, .fab:focus-visible, .btn-add:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
/* The three button styles. Save / confirm in every window is .btn-primary. */
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: var(--c-primary-hover); }
}
.btn-secondary { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-border); }
@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover { background: var(--c-border); }
}
.btn-danger { background: var(--c-danger-soft); color: var(--c-danger); border-color: var(--c-danger-line); }
@media (hover: hover) and (pointer: fine) {
    .btn-danger:hover { background: var(--st-bad-soft); }
}
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
/* Legacy outline look = secondary (kept so old markup still matches). */
.btn-outline { background: var(--c-surface); border-color: var(--c-border-strong); color: var(--c-text); }
@media (hover: hover) and (pointer: fine) {
    .btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
}
.btn-full { width: 100%; }

/* One close button (×) for windows, sheets and banners. */
.btn-close {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: var(--tap); height: var(--tap); padding: 0; border: none; border-radius: var(--radius-pill);
    background: var(--c-surface-2); color: var(--c-text-muted); font-size: 1.05rem; cursor: pointer;
    transition: background-color var(--mo-fast), color var(--mo-fast);
}
@media (hover: hover) and (pointer: fine) {
    .btn-close:hover { background: var(--c-border); color: var(--c-text); }
}

/* One add button: .fab floats above the bottom bar (phones); .btn-add is the inline round "+". */
.fab, .btn-add {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    border: none; border-radius: var(--radius-pill); cursor: pointer;
    background: var(--c-primary); color: var(--c-on-primary);
    -webkit-tap-highlight-color: transparent; transition: transform var(--mo-fast), background-color var(--mo-fast);
}
@media (hover: hover) and (pointer: fine) {
    .fab:hover, .btn-add:hover { background: var(--c-primary-hover); }
}
.fab:active, .btn-add:active { transform: scale(.92); }
.btn-add { width: var(--tap); height: var(--tap); font-size: .9rem; box-shadow: var(--el-1); }
.fab {
    position: fixed; z-index: 850; width: 56px; height: 56px; font-size: 1.35rem;
    inset-inline-start: 18px; bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 10px 24px rgba(79,70,229,.38), var(--el-1);
}
