/* Zabezpieczenie przed ucięciem contentu na dole (zapas na duży pasek) */
body {
    padding-bottom: 100px;
}

/* Główny kontener paska na samym dole */
.navbar-bottom-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.075), 0 -0.5rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: flex;
    align-items: center;
    height: 84px;
}

/* Obszar przewijania */
.responsive-navbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 8px;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.25rem;
}
@media screen and (max-width: 1024px) {
    .responsive-navbar {
        justify-content: flex-start;
    }
}
.responsive-navbar::-webkit-scrollbar {
    display: none;
}

/* Pojedynczy przycisk */
.responsive-navbar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    padding: 0.5rem;
    min-width: 90px;
    height: 72px;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
    border-radius: 0.5rem;
    margin: 0 0.125rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.responsive-navbar .nav-item:hover, 
.responsive-navbar .nav-item:focus {
    background-color: #f8f9fa;
    color: #3273dc;
    outline: none;
    transform: translateY(-2px);
}

.responsive-navbar .nav-item.active {
    background-color: #3273dc;
    color: #ffffff;
    box-shadow: 0 0.125rem 0.25rem rgba(50, 115, 220, 0.5);
}

.responsive-navbar .nav-item .material-symbols-outlined {
    font-size: 32px;
    margin: 0 auto 4px auto;
    display: block;
    transition: all 0.2s;
}

.responsive-navbar .nav-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* Badge dla licznika spotów */
.nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: #f14668;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

/* Przyciski strzałek Lewo/Prawo */
.nav-scroll-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #363636;
    cursor: pointer;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s, opacity 0.2s;
}
.nav-scroll-btn .material-symbols-outlined {
    font-size: 36px;
    font-weight: bold;
}
.nav-scroll-btn:hover {
    background: #f5f5f5;
    color: #3273dc;
}
.nav-scroll-left {
    border-right: 1px solid #dee2e6;
    box-shadow: 4px 0 8px rgba(0,0,0,0.05);
}
.nav-scroll-right {
    border-left: 1px solid #dee2e6;
    box-shadow: -4px 0 8px rgba(0,0,0,0.05);
}
.nav-scroll-btn.is-hidden {
    display: none;
}

@keyframes slideInBottom {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.navbar-bottom-wrapper {
    animation: slideInBottom 0.4s ease-out;
}

@media screen and (min-width: 1024px) {
    .navbar-bottom-wrapper {
        padding-right: 280px;
    }
}

.nav-item-ses-brand {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 6px 12px !important;
    min-width: auto !important;
    height: 72px !important; 
}

/* Wersja Desktop (przyklejona do prawej krawędzi paska) */
.nav-item-ses-brand-desktop {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-decoration: none;
    padding: 6px;
    height: 76px;
    max-width: 320px;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    z-index: 10;
}
.nav-item-ses-brand-desktop .nav-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-content: center;
    height: 100%;
}
.nav-item-ses-brand-desktop .nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 2px;
    font-weight: 600;
}
.nav-item-ses-brand-desktop .nav-text {
    font-size: 1rem; 
    font-weight: 700;
    line-height: 1.1;
    color: #363636;
}
.nav-item-ses-brand-desktop:hover {
    background-color: #f8f9fa;
    transform: translateY(-50%) scale(1.02);
}