/* Bartbo Ofertownik — style niestandardowe */

/* ── Typografia ── */
:root {
    --bs-font-sans-serif: 'DM Sans', system-ui, -apple-system, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

body {
    font-family: var(--bs-font-sans-serif);
    font-size: 0.9375rem;
}

/* ── Navbar ── */
.navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    background: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: -.01em;
}
.navbar .nav-link {
    font-size: .875rem;
    font-weight: 500;
}
.navbar .nav-link.active {
    color: #fff !important;
}

/* ── Karty ── */
.card {
    border-radius: 10px;
}
.card-header {
    font-weight: 600;
}

/* ── Tabele ── */
.table > :not(caption) > * > * {
    padding: 0.65rem 0.75rem;
}

/* ── Przyciski — płynne przejścia ── */
.btn {
    transition: background-color .15s ease, border-color .15s ease,
                color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

/* ── Kursor pointer dla etykiet ── */
.cursor-pointer {
    cursor: pointer;
}

/* ── Formularz kolorów ── */
.form-control-color {
    width: 48px;
    padding: 0.25rem;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
}

/* ── Animacja przycisku kopiowania ── */
.copy-link {
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* ── Badge — subtelniejsze ── */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* ── Alert ── */
.alert {
    border-radius: 10px;
}

/* ── Focus — widoczny outline dla dostępności ── */
:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(13,110,253,.25);
}

/* ── Input i select — płynne tło ── */
.form-control,
.form-select {
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* ── Tabela kreatora oferty ── */
#items-table .item-row td {
    transition: background .1s;
}

#items-table .item-row:has(.item-checkbox:checked) {
    background-color: rgba(var(--bs-primary-rgb), 0.04);
}

/* ── Wiersze tabeli — hover efekt ── */
.table-hover > tbody > tr {
    transition: background-color .1s ease;
}

/* ── Nav link — płynne podkreślenie ── */
.nav-link {
    transition: color .15s ease, opacity .15s ease;
}

/* ── Placeholder obrazków ── */
.img-placeholder {
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

/* ── Empty state ── */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}
.empty-state-icon {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}
.empty-state-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .4rem;
}
.empty-state-desc {
    font-size: .85rem;
    color: #6b7280;
    max-width: 36ch;
    margin: 0 auto .75rem;
    line-height: 1.6;
}

/* ── Print helper ── */
@media print {
    .no-print { display: none !important; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
