/* Wspolny system wygladu aplikacji AMS Radar. */

/* Kompaktowy widok odpowiadajacy mniej wiecej 90% zoomu przegladarki. */
html {
    font-size: 90%;
}

*:focus-visible {
    outline: 3px solid #0d6efd !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .22) !important;
}

[data-bs-theme="dark"] *:focus-visible {
    outline-color: #62dce7 !important;
    box-shadow: 0 0 0 3px rgba(98, 220, 231, .24) !important;
}

.skip-link {
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    padding: .65rem 1rem;
    color: #fff;
    background: #0b5ed7;
    border-radius: .375rem;
    transform: translateY(-180%);
    transition: transform .15s ease-in-out;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.select2-container {
    width: 100% !important;
}

.manual-product-column {
    min-width: 500px;
}

body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[data-bs-theme="dark"] body {
    background-color: #0f1720;
    background-image:
        radial-gradient(circle at 94% 12%, transparent 0 68px, rgba(86, 196, 207, .12) 69px 70px, transparent 71px 112px, rgba(86, 196, 207, .08) 113px 114px, transparent 115px),
        linear-gradient(145deg, rgba(24, 39, 52, .55), rgba(8, 15, 22, .92));
    background-attachment: fixed;
}

[data-bs-theme="dark"] .app-footer {
    background-color: #17212b !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-dropdown,
[data-bs-theme="dark"] .select2-search__field {
    color: #e8f0f5;
    background-color: #18232d;
    border-color: #465563;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e8f0f5;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #167d8a;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #263744;
}

.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

[data-bs-theme="dark"] .select2-container--focus .select2-selection,
[data-bs-theme="dark"] .select2-container--open .select2-selection {
    outline-color: #62dce7;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .form-text {
    color: #b9c7d1 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    border-color: #667786;
}

.page-container {
    max-width: 1400px;
    width: 100%;
    margin: 30px auto;
    flex: 1 0 auto;
}

.page-container,
.card,
.alert,
td,
th {
    overflow-wrap: anywhere;
}

canvas {
    max-width: 100%;
}

.ward-patient-days-table tbody tr > * {
    transition: background-color .15s ease;
}

.ward-patient-days-table tbody tr:hover > *,
.ward-patient-days-table tbody tr:focus-within > * {
    background-color: rgba(var(--bs-info-rgb), .12);
}

.chart-container {
    width: 100%;
    height: 420px;
    margin-top: 20px;
}

.dashboard-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.dashboard-card .card-title {
    font-size: 14px;
    color: #666;
}

.dashboard-card .card-text {
    font-size: 26px;
    font-weight: 700;
}

.app-navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.app-navbar .navbar-brand {
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    letter-spacing: .02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.brand-name-ams {
    color: #fff;
}

.brand-name-radar {
    color: #56c4cf;
}

.app-navbar .nav-link,
.app-navbar .dropdown-item {
    white-space: nowrap;
}

.app-navbar .dropdown-menu {
    min-width: 220px;
}

.theme-menu {
    min-width: 190px;
}

.hospital-context-badge {
    display: inline-block;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

@media (max-width: 1199.98px) {
    .navbar-account {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .hospital-context-badge {
        max-width: min(100%, 520px);
    }
}

@media (max-width: 575.98px) {
    .page-container {
        margin: 1rem auto;
    }

    .btn {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Publiczna prezentacja produktu — wszystkie wartości są fikcyjne. */
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 560px;
    padding: clamp(2rem, 6vw, 5.5rem) clamp(1rem, 5vw, 5rem);
    border-radius: 1.5rem;
    background: radial-gradient(circle at 90% 5%, rgba(36, 179, 190, .17), transparent 38%), linear-gradient(135deg, rgba(15, 96, 125, .08), transparent 60%);
    overflow: hidden;
}

.landing-kicker { color: #087f8c; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.landing-hero h1 { max-width: 720px; margin: .7rem 0 1rem; font-size: clamp(2.2rem, 4.3vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.landing-lead { max-width: 650px; margin-bottom: 1.7rem; color: var(--bs-secondary-color); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.landing-note { margin-top: 1.25rem; color: var(--bs-secondary-color); font-size: .82rem; }
.landing-preview { padding: 1.25rem; border: 1px solid rgba(86, 196, 207, .35); border-radius: 1.25rem; background: var(--bs-body-bg); box-shadow: 0 25px 70px rgba(3, 34, 54, .18); transform: rotate(1deg); }
.landing-preview-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; font-weight: 700; }
.preview-dot { display: inline-block; width: .65rem; height: .65rem; margin-right: .35rem; border-radius: 50%; background: #32c5d2; box-shadow: 0 0 0 .3rem rgba(50, 197, 210, .14); }
.landing-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.landing-metrics article { min-width: 0; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: .85rem; background: var(--bs-tertiary-bg); }
.landing-metrics span, .landing-metrics small { display: block; color: var(--bs-secondary-color); font-size: .72rem; }
.landing-metrics strong { display: block; margin: .25rem 0; font-size: 1.6rem; }
.landing-chart { margin-top: .8rem; padding: 1.1rem; border: 1px solid var(--bs-border-color); border-radius: .85rem; }
.landing-chart-title { margin-bottom: 1rem; font-weight: 700; }
.trend-row { display: grid; grid-template-columns: 3rem 1fr 3rem; gap: .7rem; align-items: center; margin: .75rem 0; font-size: .82rem; }
.trend-row > div { height: .65rem; border-radius: 1rem; background: var(--bs-tertiary-bg); overflow: hidden; }
.trend-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087f8c, #42c8d3); }
.trend-row b { text-align: right; }
.landing-section { padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 5vw, 5rem); }
.landing-section-heading { max-width: 680px; margin-bottom: 2rem; }
.landing-section h2, .landing-cta h2 { margin-top: .55rem; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.025em; }
.landing-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.landing-steps article { padding: 1.4rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); }
.landing-steps article > span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #087f8c; color: white; font-weight: 700; }
.landing-steps h3 { margin: 1.2rem 0 .55rem; font-size: 1.05rem; }
.landing-steps p { margin: 0; color: var(--bs-secondary-color); font-size: .9rem; }
.landing-benefits { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; border-radius: 1.5rem; background: var(--bs-tertiary-bg); }
.landing-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.landing-checklist li { padding: 1rem 1rem 1rem 2.6rem; border: 1px solid var(--bs-border-color); border-radius: .8rem; background: var(--bs-body-bg); position: relative; }
.landing-checklist li::before { content: "✓"; position: absolute; left: 1rem; color: #087f8c; font-weight: 800; }
.landing-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin: clamp(2rem, 5vw, 5rem); padding: clamp(2rem, 4vw, 3.5rem); border-radius: 1.25rem; background: linear-gradient(135deg, #073b52, #087f8c); color: white; }
.landing-cta p { margin-bottom: 0; color: rgba(255,255,255,.78); }

[data-bs-theme="dark"] .landing-kicker { color: #60dce6; }
[data-bs-theme="dark"] .landing-preview { box-shadow: 0 25px 70px rgba(0, 0, 0, .4); }

@media (max-width: 991.98px) {
    .landing-hero { grid-template-columns: 1fr; min-height: 0; }
    .landing-preview { transform: none; }
    .landing-steps { grid-template-columns: 1fr 1fr; }
    .landing-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .landing-metrics, .landing-steps, .landing-checklist { grid-template-columns: 1fr 1fr; }
    .landing-cta { margin-inline: 0; flex-direction: column; align-items: flex-start; }
}
