:root {
    line-height: 1.5;
    font-weight: 400;

    color-scheme: light dark;
    color: rgba(255, 255, 255, 0.87);
    background-color: #242424;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --idc-primary: #e63946;
    /* bazowy */
    --idc-primary-700: #b71c2d;
    /* ciemniejszy */
    --idc-primary-300: #f27b85;
    /* jaśniejszy */
    --idc-primary-100: #fdecef;
    /* bardzo jasny / tło */
    --idc-on-primary: #ffffff;
    /* tekst na czerwieni */

    --idc-muted-700: #495057;
    /* neutralne teksty */
    --idc-muted-500: #6c757d;
    --idc-muted-200: #e9ecef;
    /* delikatne tła/ramki */
    --idc-muted-100: #f8f9fa;

    --brand: #e63946;
        /* kolor kresek hamburgera */
    --nav-h: 76px;
    --divider: #e5e7eb;
}

a {
    font-weight: 500;
    color: #646cff;
    text-decoration: inherit;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}

h1 {
    font-size: 3.2em;
    line-height: 1.1;
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.25s;
}
button:hover {
    border-color: #646cff;
}

.col-auto {
    margin: 0 auto;
}

button:focus,
button:focus-visible {
    outline: 4px auto -webkit-focus-ring-color;
}

.card {
    padding: 2em;
}

.mt-6 {
    margin-top: 5rem !important;
}

#app {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
}
.top-login {
    display: flex;
    justify-content: flex-end;
    padding: 10px 24px;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 11;
}
.top-login form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-flag img {
    opacity: 0.2;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
}

.lang-flag:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.lang-flag.active img {
    opacity: 1;
    box-shadow: 0 0 4px rgba(230, 57, 70, 0.4);
}

.Vue-Toastification__container {
    position: fixed !important;
    pointer-events: none;
    z-index: 9999;
}

/* Opcjonalnie, jeśli są marginesy */
.Vue-Toastification__container:empty {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.oddzialy a[href^="mailto:"],
.oddzialy a[href^="tel:"] {
    cursor: pointer;
    display: inline;
    font: inherit;
}

.oddzialy a[href^="mailto:"]:hover,
.oddzialy a[href^="tel:"]:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    margin-bottom: 38px;
    margin-top: 40px;
}

.stuff-data {
    max-height: 65vh;
    max-width: 100%;
    overflow: hidden auto;
    position: relative;
}

.welcome-wrapper {
    padding: 2rem;
}

.top-login {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f3f3;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.top-login input {
    padding: 0.3rem;
    font-size: 0.9rem;
}

.top-login button {
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.logged-in {
    font-size: 0.85rem;
    color: #007bff;
    margin-left: 0.5rem;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.with-navbar {
    margin-top: 65px;
}

.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 5;
    border-bottom: 1px solid #dee2e6;
}

.top-nav {
    background: white;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    /* ważne */
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo {
    width: 80px;
    height: 80px;
    background-image: url('/images/logo-male.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #e63946;
    background-color: transparent;
}

.custom-select {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    width: 100%;
}

.custom-select option:disabled {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.nav-link:hover,
.nav-link.active {
    color: #e63946;
}

.login-dropdown {
    position: relative;
    margin-left: 1rem;
}

.login-btn {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 0.75rem;
    color: #e63946;
    cursor: pointer;
}

.login-panel {
    position: absolute;
    top: 100%;
    min-width: 250px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.login-panel input {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-panel button {
    width: 100%;
    background-color: #e63946;
    color: white;
    border: none;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fafafa;
    padding: 0.4rem 1rem 0.3rem;
    font-size: 0.65rem;
    color: #666;
    border-top: 1px solid #eee;
    z-index: 1;
}

.footer-note-top {
    text-align: center;
    font-size: 0.65rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    padding: 0 1rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    padding: 0 1rem;
}

.footer-col {
    flex: 1;
}

.footer-col.left {
    text-align: left;
}

.footer-col.right {
    text-align: right;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.65rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.3;
    text-align: right;
}

.nav-item.dropdown {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-item.dropdown:hover .submenu {
    display: block;
}

.small-link {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    display: block;
    color: #333;
    text-decoration: none;
}

.small-link:hover {
    background-color: #f8f9fa;
    color: #000;
    border-radius: 0.25rem;
}

.no-link {
    cursor: default;
    pointer-events: none;
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .footer-col.left {
        text-align: left;
    }

    .footer-col.right {
        text-align: right;
    }

    .footer-note-top {
        text-align: center;
        font-size: 0.65rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
        padding: 0;
    }
}

/* RESPONSIVE */
.desktop-only {
    display: flex;
}

.mobile-menu {
    display: none;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: .5rem 0;
    list-style: none;
    background: #fff;
    border-top: 1px solid var(--divider);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
    z-index: 2;
    max-height: calc(100dvh - var(--nav-h) - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
}

/* reset przycisku */
.hamburger-btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    padding: 0;
    line-height: 0;
    width: 38px;
    height: 38px;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: var(--brand, #e63946);
    z-index: 2006;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* box na kreski */
.hamburger-box {
    width: 28px;
    height: 18px;
    position: relative;
    display: block;
}

/* kreski */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform .25s ease, opacity .2s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    top: -7px;
}

.hamburger-inner::after {
    top: 7px;
}

/* stan otwartego menu (X) */
.hamburger-btn.is-active .hamburger-inner {
    background: transparent;
}

.hamburger-btn.is-active .hamburger-inner::before {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-inner::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* menu mobilne */
#mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: .5rem 0;
    list-style: none;
    background: #fff;
    border-top: 1px solid var(--divider);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
    z-index: 2000;
    max-height: calc(100dvh - var(--nav-h) - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        background: white;
        padding: 1rem 0;
        text-align: center;
    }
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 1rem;
    background-color: #f8f8f8;
    text-align: center;
}

.stat-item {
    min-width: 120px;
    max-width: 180px;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d00;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .slider-admin {
        margin-bottom: 60px !important;
        margin-top: 55px !important;
    }
    .stats-container {
        flex-direction: column;
        align-items: center;
        padding: .3rem .6rem;
        gap: 1.5rem;
    }

    .stat-item {
        display: flex;
        align-items: center;
        text-align: left;
        flex-direction: row;
        gap: 1rem;
        width: 100%;
    }

    .stat-number {
        font-size: 1.4rem;
        min-width: 60px;
    }

    .stat-label {
        font-size: 0.7rem;
        line-height: 1.4;
        color: #444;
    }
}

.hamburger-wrapper {
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1080;
}

.fixed-top-start {
    position: fixed;
    top: 1rem;
    left: 1rem;
}

.absolute-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.hamburger {
    width: 100%;
    height: 100%;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--hamburger-color, #e63946);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 12px;
}

.hamburger span:nth-child(3) {
    top: 24px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 12px;
}

.slider-container {
    width: 100%;
    margin: auto;
    padding: 1rem 0;
}

.my-swiper {
    max-width: 90%;
    margin: 0 auto;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    text-align: left;
}

.slide-image img {
    max-width: 450px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.slide-text {
    max-width: 600px;
}

.slide-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.slide-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.slide-button {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: #c00;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.slide-button:hover {
    background-color: #2f3439;
    color: #fff;
}

@media (max-width: 768px) {
    .slide-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    .slide-image img {
        max-width: 90%;
        margin: 0 auto;
    }

    .slide-text {
        max-width: 100%;
    }

    .slide-text h2 {
        font-size: 1.4rem;
    }

    .slide-text p {
        font-size: 0.7rem;
    }

    .slide-button {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    height: 100%;
    top: 0;
    bottom: 0;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    background-size: 50% 50%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.emergency-banner {
    width: 100%;
    height: 150px;
    background-color: #e63946;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.emergency-banner h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.emergency-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ba-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    background-color: white;
    color: #e63946;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.ba-btn:hover {
    background-color: #fff3f3;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .with-navbar {
        margin-top: 30px;
    }
    .top-login {
        flex-direction: column;
        align-items: flex-end;
    }

    .emergency-banner {
        height: 170px;
    }

    .top-login form {
        flex-direction: column;
        align-items: flex-end;
    }

    .container {
        margin-bottom: 130px;
        margin-top: 70px;
    }

    .oddzialy {
        margin-bottom: 80px;
    }

    .management-row {
        flex-direction: column;
        gap: .35rem;
    }

    .management-left,
    .management-right {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: left;
        /* zamiast text-end na mobile */
    }

    /* opcjonalnie: „piguła” jak na screenie tylko dla lewej części */
    .management-row.table-red-row .management-left {
        background: #fff5f6;
        border-radius: .75rem;
        padding: .75rem;
    }

    /* czytelniejsze linki dotykowe */
    .management-left a,
    .management-right a {
        display: inline-block;
        padding: .125rem 0;
    }
}
