:root {
    --brand: #0f3d3e;
    --brand-2: #1f6f78;
    --accent: #1f6fd6;
    --ink: #1a2024;
    --muted: #5b6472;
    --surface: #ffffff;
    --canvas: #f4f7f8;
    --dark: #14191c;
}

html, body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--canvas);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, .fw-black {
    letter-spacing: .01em;
}

/* ---------- Navbar ---------- */
.navbar.site-nav {
    background: var(--dark) !important;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.navbar.site-nav .navbar-brand {
    font-weight: 800;
    letter-spacing: .04em;
}

.navbar.site-nav .nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    position: relative;
}

.navbar.site-nav .nav-link:hover,
.navbar.site-nav .nav-link.active {
    color: #fff;
}

.navbar.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.language-switcher.active {
    background: #fff;
    border-color: #fff;
    color: var(--dark);
    font-weight: 700;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    color: #fff;
    padding: 6rem 0 5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/banner-bg.JPG');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 183, 110, .18), transparent 45%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .logo {
    max-width: 650px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}

.hero-section h1 {
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero-section .lead {
    color: rgba(255, 255, 255, .85);
}

.hero-section p {
    max-width: 60ch;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Strona ze zdjęciem na całym tle ---------- */
.bg-page {
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('/images/reservation-form-bg.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ---------- Section helpers ---------- */
.section-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.section-subtitle {
    color: var(--muted);
}

.bg-light-soft {
    background: #eef3f4;
}

.text-accent {
    color: var(--accent) !important;
}

.soft-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .45rem .9rem;
    background: rgba(31, 111, 214, .12);
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 1rem;
}

.feature-card {
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .12) !important;
}

.surface-card {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
    border-radius: 1.25rem;
}

/* ---------- Map ---------- */
#map-container {
    min-height: 420px;
    height: 100%;
    border: 4px solid #fff;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
    z-index: 0;
}

.leaflet-control-attribution {
    display: none !important;
}

.map-pin {
    background: transparent;
    border: 0;
    text-align: center;
    line-height: 1;
}

.map-pin i {
    font-size: 2.25rem;
    color: var(--accent);
    -webkit-text-stroke: 1px #fff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

.map-pin--home i {
    color: #000;
    font-size: 2.75rem;
}

.map-popup-prices {
    margin-top: .5rem;
    display: grid;
    gap: .25rem;
}

.map-popup-prices > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.map-popup-prices span {
    color: var(--muted);
}

.map-popup-prices b {
    color: var(--accent);
}

/* ---------- Pricing ---------- */
.pricing-table thead th {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    font-weight: 700;
}

.pricing-table td,
.pricing-table th {
    vertical-align: middle;
}

.pricing-intent-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.pricing-intent-card .card-title {
    color: var(--brand);
    font-weight: 800;
}

/* ---------- Why us / offer icons ---------- */
.feature-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--accent);
    background: rgba(31, 111, 214, .12);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.why-card:hover .feature-icon {
    transform: translateY(-4px);
    background: var(--accent);
    color: #fff;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.why-card p {
    color: var(--muted);
}

/* ---------- Reservation form ---------- */
.reservation-shell {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/reservation-form-bg.JPG');
    background-size: cover;
    background-position: center;
}

.form-section-title {
    font-weight: 800;
    color: var(--brand);
    margin-bottom: .75rem;
}

.reservation-form .form-control,
.reservation-form .form-select {
    border-radius: .6rem;
    padding: .6rem .85rem;
}

.reservation-form .form-control:focus,
.reservation-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(31, 111, 214, .2);
}

/* Kierunek transferu jako przyciski */
.btn-outline-accent {
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.btn-outline-accent:hover {
    background: rgba(31, 111, 214, .08);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-check:checked + .btn-outline-accent,
.btn-check:active + .btn-outline-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-check:focus-visible + .btn-outline-accent {
    box-shadow: 0 0 0 .2rem rgba(31, 111, 214, .25);
}

/* Wyeksponowany przełącznik "Chcę fakturę" */
.invoice-toggle {
    background: rgba(31, 111, 214, .08);
    border: 1px solid rgba(31, 111, 214, .25);
    padding: 1rem 1rem 1rem 3.5rem;
}

.invoice-toggle .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    margin-top: 0;
    flex-shrink: 0;
}

.invoice-toggle .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.invoice-toggle .form-check-label {
    margin-left: .5rem;
    cursor: pointer;
}

/* Kompaktowy wariant formularza */
.reservation-form--compact .form-label {
    margin-bottom: .2rem;
    font-size: .85rem;
    font-weight: 600;
}

.reservation-form--compact .form-control,
.reservation-form--compact .form-select {
    padding: .4rem .75rem;
    border-radius: .55rem;
}

.reservation-form--compact .form-section-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.reservation-form--compact .form-check-label {
    font-size: .92rem;
}

/* ---------- Gallery ---------- */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .1);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-placeholder {
    height: 240px;
    border: 2px dashed rgba(15, 23, 42, .15);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    background: #fff;
    padding: 1rem;
}

/* ---------- Contact ---------- */
.contact-card .card-title {
    color: var(--brand);
    font-weight: 800;
}

.contact-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
    height: 100%;
    padding: 1.75rem 1rem;
    border-radius: 1.25rem;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    border-top: 4px solid transparent;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .15);
    color: var(--ink);
}

.contact-tile__icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: .35rem;
}

.contact-tile__label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .85rem;
    color: var(--muted);
}

.contact-tile__value {
    font-size: 1.15rem;
    font-weight: 700;
    word-break: break-word;
}

.contact-tile--phone {
    border-top-color: var(--brand);
}

.contact-tile--phone .contact-tile__icon {
    background: var(--brand);
}

.contact-tile--email {
    border-top-color: var(--accent);
}

.contact-tile--email .contact-tile__icon {
    background: var(--accent);
}

.contact-tile--facebook {
    border-top-color: #1877f2;
}

.contact-tile--facebook .contact-tile__icon {
    background: #1877f2;
}

.contact-tile--instagram {
    border-top-color: #dc2743;
}

.contact-tile--instagram .contact-tile__icon {
    background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}

/* ---------- Buttons ---------- */
.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
}

.btn-brand:hover {
    background: var(--brand-2);
    border-color: var(--brand-2);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    background-color: #1857b0;
    border-color: #1857b0;
    color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .82);
}

.site-footer h5 {
    font-weight: 800;
}

.footer-link {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.social-link {
    color: #fff;
    font-size: 1.4rem;
    transition: color .2s ease;
}

.social-link:hover {
    color: var(--accent);
}

/* ---------- Panel administracyjny ---------- */
.admin-body {
    background: var(--canvas);
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.admin-content {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-sidebar {
    background: var(--dark) !important;
    color: #fff;
    width: 280px;
}

/* Karta konta użytkownika u dołu sidebara */
.admin-account {
    padding: .6rem .65rem;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    margin: .35rem;
}

.admin-account__divider {
    height: 1px;
    margin: .5rem 0;
    background: rgba(255, 255, 255, .1);
}

.admin-account__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 1.6rem;
}

.admin-account__row + .admin-account__row {
    margin-top: .25rem;
}

.admin-account__label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
}

.admin-account__label > .bi {
    font-size: .95rem;
    opacity: .85;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.admin-user__avatar {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--dark);
    background: var(--accent);
    text-transform: uppercase;
}

.admin-session {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.admin-account__row .admin-session.is-low,
.admin-session.is-low {
    color: #ffb4b4;
}

/* Przełącznik języka */
.admin-lang {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .08);
}

.admin-lang__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: .18rem .45rem;
    border-radius: .4rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.admin-lang__btn:hover {
    color: #fff;
}

.admin-lang__btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 111, 214, .35);
}

/* Akcje konta (Profil / Wróć na stronę / Wyloguj) — piktogramy obok siebie */
.admin-actions {
    display: flex;
    align-items: stretch;
    gap: .4rem;
}

.admin-actions form {
    display: flex;
    flex: 1 1 0;
}

.admin-actions__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    padding: .5rem 0;
    border: 0;
    background: rgba(255, 255, 255, .05);
    border-radius: .55rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.admin-actions__btn:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.admin-actions__btn--danger {
    color: #ff9b9b;
}

.admin-actions__btn--danger:hover {
    background: rgba(220, 53, 69, .16);
    color: #ffb4b4;
}

@media (min-width: 992px) {
    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        flex: 0 0 280px;
        order: 0;
        display: flex;
        flex-direction: column;
    }

    .admin-content {
        order: 1;
    }
}

/* offcanvas-body wypełnia całą wysokość sidebara, by sekcja użytkownika trafiła na sam dół;
   przy niskich ekranach treść przewija się pionowo zamiast się obcinać */
.admin-sidebar .offcanvas-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

.admin-sidebar .offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar .offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar .offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 3px;
}

.admin-sidebar .offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .45);
}

/* Elementy menu zachowują naturalną wysokość — to kontener przewija się, a nie treść się ściska */
.admin-sidebar .offcanvas-body > * {
    flex-shrink: 0;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255, 255, 255, .75);
    border-radius: .6rem;
    padding: .6rem .85rem;
    font-weight: 600;
    font-size: .95rem;
    transition: background .15s ease, color .15s ease;
}

/* Ikony w jednej kolumnie, niezależnie od szerokości glifu */
.admin-sidebar .nav-link > .bi:first-child {
    width: 1.25rem;
    flex: 0 0 1.25rem;
    text-align: center;
    font-size: 1.05rem;
    opacity: .85;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-sidebar .nav-link:hover > .bi:first-child {
    opacity: 1;
}

.admin-sidebar .nav-link.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(31, 111, 214, .35);
}

.admin-sidebar .nav-link.active > .bi:first-child {
    opacity: 1;
}

.admin-sidebar .nav-link.disabled {
    opacity: .5;
}

/* Link zewnętrzny (Telescope) */
.admin-sidebar .nav-link__external {
    margin-left: auto;
    font-size: .75rem;
    opacity: .45;
}

/* Pulpit wyróżniony nad sekcjami */
.admin-sidebar .nav-link--dashboard {
    margin-bottom: .25rem;
}

/* Nagłówek sekcji + separator */
.admin-sidebar .nav-section {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    padding-top: 1rem;
    padding-inline: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .4);
}

.admin-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

/* ---------- Dashboard ---------- */
.min-w-0 {
    min-width: 0;
}

/* Wiersze list na dashboardzie ("Czeka na decyzję" / "Najbliższe przejazdy")
   mają różną liczbę linii (1-2 odcinki), ale mają wyglądać tak samo wysoko. */
.dash-list-row {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}

a:hover > .kpi-card {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

.kpi-card__icon {
    font-size: 1.5rem;
    opacity: .35;
}

.kpi-card--warning { border-top-color: #ffc107; }
.kpi-card--warning .kpi-card__icon { color: #ffc107; }

.kpi-card--success { border-top-color: #198754; }
.kpi-card--success .kpi-card__icon { color: #198754; }

.kpi-card--accent { border-top-color: var(--accent); }
.kpi-card--accent .kpi-card__icon { color: var(--accent); }

.kpi-card--dark { border-top-color: var(--dark); }
.kpi-card--dark .kpi-card__icon { color: var(--dark); }

/* Szybkie akcje w wierszu transferu */
.row-actions {
    display: inline-flex;
    gap: .35rem;
    vertical-align: middle;
    margin-left: .5rem;
}

.row-actions__btn {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    font-size: .9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}

.row-actions__btn:hover {
    transform: translateY(-1px);
    filter: brightness(.95);
}

.row-actions__btn--confirm {
    background: #d1f0dd;
    color: #198754;
}

.row-actions__btn--confirm:hover {
    background: #198754;
    color: #fff;
}

.row-actions__btn--reject {
    background: #f9d7dc;
    color: #dc3545;
}

.row-actions__btn--reject:hover {
    background: #dc3545;
    color: #fff;
}

/* Kafelki transferów (widok mobilny listy) */
.transfer-cards {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.transfer-card {
    display: block;
    padding: 1rem;
    border-radius: .85rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    color: var(--ink);
    text-decoration: none;
}

.transfer-card:hover {
    color: var(--ink);
    border-color: rgba(15, 23, 42, .16);
}

/* Filtry listy transferów */
.filter-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6c757d;
}

/* Ramka wokół każdej grupy filtrów, żeby się wizualnie nie zlewały */
.filter-box {
    padding: .85rem .9rem;
    background: rgba(15, 23, 42, .02);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .75rem;
}

.dual-range {
    position: relative;
    height: 1.6rem;
}

.dual-range__input {
    position: absolute;
    top: .55rem;
    left: 0;
    width: 100%;
    margin: 0;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.dual-range__input::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(15, 23, 42, .12);
    border-radius: 2px;
}

.dual-range__input::-moz-range-track {
    height: 4px;
    background: rgba(15, 23, 42, .12);
    border-radius: 2px;
}

.dual-range__input::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .35);
    margin-top: -6px;
    cursor: pointer;
}

.dual-range__input::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .35);
    cursor: pointer;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.filter-actions__sep {
    color: rgba(15, 23, 42, .2);
    font-size: .68rem;
}

.filter-action-link {
    background: none;
    border: 0;
    padding: 0;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.filter-action-link:hover:not(:disabled) {
    text-decoration: underline;
}

.filter-action-link:disabled {
    color: rgba(15, 23, 42, .25);
    cursor: default;
}

.bg-accent {
    background-color: var(--accent);
}

.bg-accent-subtle {
    background-color: rgba(31, 111, 214, .08);
}

.border-accent {
    border-color: var(--accent) !important;
}

.modal-confirm-wide {
    max-width: min(1600px, 96vw);
}

/* Kalendarz transferów */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-grid--head {
    margin-bottom: 6px;
}

.cal-weekday {
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    padding: 4px 0;
}

.cal-day {
    min-height: 118px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .5rem;
    padding: 4px 4px 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.cal-day--muted {
    background: #f8f9fa;
}

.cal-day--muted .cal-day__num {
    color: #adb5bd;
}

.cal-day--today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.cal-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.cal-day__num {
    border: 0;
    background: none;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
    padding: 2px 5px;
    border-radius: .35rem;
    color: #212529;
    cursor: pointer;
}

.cal-day__num:hover {
    background: rgba(31, 111, 214, .12);
    color: var(--accent);
}

.cal-day__count {
    font-size: .64rem;
    font-weight: 600;
    color: #adb5bd;
}

.cal-day__events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

/* Chip w siatce miesiąca: dwie linie — góra (godzina + kierunek + pojazd), dół (lotnisko) */
.cal-event {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: .7rem;
    line-height: 1.25;
    padding: 2px 5px;
    border-radius: .3rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    overflow: hidden;
}

.cal-event__top {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.cal-event__time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.cal-event__dir {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    flex: 0 0 auto;
}

.cal-event__pax {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
    font-weight: 600;
    opacity: .75;
}

.cal-event__pax i {
    opacity: .85;
}

.cal-event__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

/* Kolory kierunku: wylot vs przylot */
.cal-dir--dep { color: #1f6fd6; }
.cal-dir--arr { color: #0c8599; }

.cal-dir-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.cal-dir-dot.cal-dir--dep { background: #1f6fd6; }
.cal-dir-dot.cal-dir--arr { background: #0c8599; }

.cal-legend {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: .25rem;
    border-left: 3px solid transparent;
}

/* Kolory wg statusu: 10 = oczekuje, 20 = potwierdzony, 30 = odrzucony */
.cal-event--10 { background: #fff8e6; color: #946200; border-left-color: #f0ad4e; }
.cal-event--20 { background: #e9f7ee; color: #1a7f37; border-left-color: #2ecc71; }
.cal-event--30 { background: #fdecec; color: #b02a37; border-left-color: #e35d6a; }

.cal-more {
    border: 0;
    background: none;
    font-size: .68rem;
    font-weight: 600;
    color: var(--accent);
    text-align: left;
    padding: 0 5px;
    cursor: pointer;
}

.cal-more:hover {
    text-decoration: underline;
}

/* Mini-siatka (telefon): numer + kropki, dotknięcie dnia = szczegóły pod spodem */
.cal-grid--mini {
    gap: 3px;
}

.cal-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    min-height: 46px;
    padding: 4px 2px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .45rem;
    background: #fff;
    cursor: pointer;
}

.cal-mini--muted {
    background: #f8f9fa;
}

.cal-mini--muted .cal-mini__num {
    color: #adb5bd;
}

.cal-mini--today {
    border-color: var(--accent);
}

.cal-mini--sel {
    border-color: var(--accent);
    background: rgba(31, 111, 214, .1);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.cal-mini__num {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

.cal-mini__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    min-height: 6px;
}

.cal-mini__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #adb5bd;
}

.cal-dot--10 { background: #f0ad4e; }
.cal-dot--20 { background: #2ecc71; }
.cal-dot--30 { background: #e35d6a; }

/* Agenda (telefon): dni jeden pod drugim */
.cal-agenda-day {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: .6rem;
    overflow: hidden;
    margin-bottom: 10px;
}

.cal-agenda-day--today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.cal-agenda-date {
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    background: #f6f8fa;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding: 7px 12px;
    font-weight: 700;
    font-size: .82rem;
    text-transform: capitalize;
    color: var(--ink);
    cursor: pointer;
}

.cal-agenda-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(15, 23, 42, .05);
    font-size: .82rem;
}

.cal-agenda-row:last-child {
    border-bottom: 0;
}

.cal-agenda-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.cal-agenda-pax {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .78rem;
}

@media (max-width: 767.98px) {
    .cal-weekday { font-size: .6rem; }
}

/* Informacje o systemie */
.system-item {
    padding: .75rem 1rem;
    border-radius: .75rem;
    background: #f6f8fa;
    border: 1px solid rgba(15, 23, 42, .05);
    height: 100%;
}

.system-item__label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: .15rem;
}

.system-item__value {
    font-weight: 700;
    color: var(--ink);
    word-break: break-word;
}

/* Kafelki skrótów */
.shortcut {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1rem;
    border-radius: .75rem;
    background: #f6f8fa;
    border: 1px solid rgba(15, 23, 42, .05);
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.shortcut:hover {
    background: #eef3f7;
    transform: translateY(-2px);
    color: var(--ink);
}

.shortcut > .bi {
    font-size: 1.15rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
    z-index: 1030;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #000;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0 3rem;
        text-align: center;
    }

    .hero-section .logo {
        max-width: 220px;
    }

    .hero-section p {
        margin-inline: auto;
    }
}

/* ---------- Admin datatables ---------- */
.admin-dt-wrapper {
    display: block;
}

.admin-dt-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1rem 1rem 0 0;
}

.admin-dt-bottom:has(.admin-dt-info, .admin-dt-dropdown, .pagination:not(:empty)) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-radius: 0 0 1rem 1rem;
}

.admin-dt-bottom-start,
.admin-dt-bottom-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.admin-dt-bottom-end {
    margin-left: auto;
}

.admin-dt-dropdown label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
    white-space: nowrap;
}

.admin-dt-search-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
}

.admin-dt-search .form-control {
    min-width: 220px;
}

.admin-dt-info {
    margin: 0;
}

.admin-dt-pagination .pagination .page-link {
    color: var(--ink);
}

.admin-dt-pagination .pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.admin-dt-pagination .pagination .page-item.disabled .page-link {
    color: rgba(26, 32, 36, .3);
}

.admin-dt-pagination .pagination .page-link:hover {
    background: rgba(31, 111, 214, .08);
    color: var(--accent);
}

.admin-dt-sorter {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}

.admin-dt-sorter:hover {
    color: var(--accent);
}

.admin-dt-sorter::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .25;
    margin-top: 2px;
}

th.admin-dt-asc .admin-dt-sorter::after {
    border-top: 0;
    border-bottom: 5px solid var(--accent);
    opacity: 1;
}

th.admin-dt-desc .admin-dt-sorter::after {
    border-top: 5px solid var(--accent);
    opacity: 1;
}

.datatable-empty {
    text-align: center;
    color: var(--muted);
    padding: 2.5rem 1rem !important;
}

@media (max-width: 575.98px) {
    .admin-dt-top,
    .admin-dt-bottom:has(.admin-dt-info, .admin-dt-dropdown, .pagination:not(:empty)) {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dt-bottom-end {
        margin-left: 0;
        justify-content: space-between;
    }

    .admin-dt-search .form-control {
        min-width: 0;
        width: 100%;
    }
}
