body{
    margin: 0px;
    margin: 0px;
    padding: 0px;
    font-family: Arial, sans-serif;
    background-color: #263238;
    color: #212529;
}
.api-content, .article{
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding: 16px 20px; /* delikatnie mniejszy padding pionowy, bardziej kompaktowy header */
    font-size: 20px; /* trochę mniejszy od 24px, ale nadal czytelny tytuł */
    font-weight: 600;
    color: #343a40;
    border-bottom: 1px solid #dee2e6; /* cieńsza linia dla lżejszego wyglądu */
    display: flex;
    align-items: center;
}
.header .logo{
    display: flex;
    align-items: center;
}

.header .logo a {
    text-decoration: none;
    color: #343a40;
    align-items: center;
}

.header .logo img {
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

.header .version-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.header .version-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.header .version-menu {
    font-size: 0.75em;
    display: none;
    position: absolute;
    right: 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    min-width: 120px;
}
.header .version-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Przewijana jest tylko lista pozostałych wersji; alpha i latest zostają przypięte nad nią */
.header .version-menu .version-menu-list {
    max-height: calc(var(--visible-versions, 10) * (1.5em + 10px));
    overflow-y: auto;
    /* bez poziomego paska: miejsce na pionowy scrollbar jest zarezerwowane, więc nowrap nie wypycha treści */
    overflow-x: hidden;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}
.header .version-menu .version-menu-pinned + .version-menu-list {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #dee2e6;
}
.header .version-menu li {
    text-align: left;
}
.header .version-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    line-height: 1.5em;
    white-space: nowrap;
    text-decoration: none;
    color: #333;
}

.header .version-menu li a:hover {
    background: #f0f0f0;
}

.header .version-dropdown.open .version-menu {
    display: block;
}

.header .menu{
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end; /* wszystko w menu wyrównane do prawej */
    gap: 12px; /* spójne odstępy między wersją a linkami */
}

.menu .version {
    margin-left: 15px;
    font-size: 0.85em; /* trochę większe niż 0.75, bliżej linków */
    color: #6c757d;
    display: flex;
    align-items: center;
}

.menu .version .changelog-link {
    font-size: 0.9em; /* jak linki po prawej */
    color: #343a40;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    margin-left: 10px;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.menu .version .changelog-link:hover {
    color: #343a40;
    background-color: #e9ecef;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.menu .version .alpha-link {
    font-size: 0.9em;
    color: #fff;
    background-color: #5037fe;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: 10px;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.menu .version .alpha-link:hover,
.menu .version .alpha-link.active {
    filter: brightness(1.1);
    box-shadow: 0 0 0 2px rgba(80, 55, 254, 0.25);
}

.header .version-menu .version-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 1px 6px;
    font-size: 0.8em;
    line-height: 1.2;
    vertical-align: middle;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 3px;
}

.header .version-menu .alpha-badge {
    background-color: #5037fe;
}

.header .version-menu .latest-badge {
    background-color: #2f8132;
}

.menu .links{
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px; /* równe odstępy między linkami */
    padding-right: 4px; /* lekki oddech od prawej krawędzi */
}

.menu .links a {
    margin-left: 0; /* gap przejmuje rolę odstępu */
    text-decoration: none;
    color: #343a40;
    font-size: 0.9em;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.menu .links a:hover {
    color: #343a40;
    background-color: #e9ecef; /* szare tło przy hoverze */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); /* bardzo delikatny obrys */
    text-decoration: none;
}

header h1{
    margin-left: 20px;
    font-size: 2em;
    color:#fff;
}


.POST, .post,
.GET, .get,
.PUT, .put,
.PATCH, .patch,
.DELETE, .delete {
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 0 4px 4px 0;
}

/* Modyfikacje kolorów dla poszczególnych metod */
.POST, .post { background-color: #186faf; }
.GET, .get { background-color: #2f8132; }
.PUT, .put { background-color: #95507c; }
.PATCH, .patch { background-color: #bf581d;}
.DELETE, .delete { background-color: #cc3333; }

/* Zwijanie/rozwijanie wpisów changeloga */
ol > li {
    margin-bottom: 16px;
}

ol > li.expandable {
    cursor: pointer;
}

ol > li.expandable .chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    margin-left: 0.5em;
    vertical-align: middle;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #6c757d;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

ol > li.expandable .chevron:hover {
    background: #e9ecef;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

ol > li.expandable .chevron svg {
    transition: transform 0.15s ease;
}

ol > li.expandable.collapsed .chevron svg {
    transform: rotate(-90deg);
}

ol > li.expandable.collapsed > .detail {
    display: none;
}

.changelog-section-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.changelog-controls {
    display: flex;
    gap: 8px;
    margin: 0;
}

.changelog-toggle-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 0.9em;
    font-family: inherit;
    color: #186faf;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.changelog-toggle-all:hover {
    background: #e9ecef;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.changelog-toggle-all-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.changelog-toggle-all-icon svg {
    width: 100%;
    height: 100%;
}

.changelog-toggle-all-icon.icon-up svg {
    transform: rotate(180deg);
}

.detail{
    background: linear-gradient(90deg, #f8fafc 80%, #e9ecef 100%);
    border-left: 5px solid #186faf;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(24, 111, 175, 0.07);
    padding: 18px 24px;
    margin: 18px 0 24px 0;
    font-size: 1.08em;
    color: #23272b;
    position: relative;
    transition: box-shadow 0.2s;
    list-style: none;
}
.detail:hover {
    box-shadow: 0 4px 16px rgba(24, 111, 175, 0.13);
    background: linear-gradient(90deg, #f1f3f6 80%, #e3e7ea 100%);
}
.detail:not(:empty)::before {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #186faf;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.1em;
    margin-right: 14px;
    box-shadow: 0 1px 4px rgba(24, 111, 175, 0.10);
    position: absolute;
    left: -18px;
    top: 18px;
}

.detail:empty {
    display: none !important;
}

.detail > li {
    margin-bottom: 14px;
}

.detail > li:last-child {
    margin-bottom: 0;
}

.change {
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0;
}

.change > li {
    margin-bottom: 8px;
    padding-left: 14px;
    border-left: 2px solid #dee2e6;
}

.change > li:last-child {
    margin-bottom: 0;
}

.detail h3.incompatible {
    color: #b02a37;
}

.comment {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-style: italic;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    color: #6a9955;
    background: #f1f3f5;
    border-radius: 4px;
}

.missing {
    display: block;
    width: fit-content;
    margin-top: 8px;
    padding: 4px 10px;
    color: #b02a37;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 0.92em;
}

.missing::before {
    content: "⚠ ";
}

.detail li h3 {
    margin-top: 2px;
    font-size: 1.1em;
    color: #186faf;
}
