/* ===========================================
CSS Variables - Globalne kolory i ustawienia
=========================================== /
:root {
--primary-color: #007aff; / macOS blue /
--primary-hover: #005fcc;
--secondary-color: #5ac8fa; / lighter blue /
--accent-color: #ffc107; / amber /
--text-color: #1c1c1e; / dark gray /
--text-secondary: #6e6e73; / medium gray /
--bg-color: #f5f5f7; / macOS light background */
--bg-light: #ffffff;
--border-color: #d1d1d6;
--shadow-color: rgba(0, 0, 0, 0.1);
--radius: 16px;
--transition-duration: 0.3s;
--font-family: -apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Helvetica,
Arial,
sans-serif;
}

/* ===========================================
Reset and Base Styles
=========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

a:hover,
a:focus {
    color: var(--primary-hover);
    outline: none;
}

/* ===========================================
Containers
=========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================================
Navbar Styles (macOS inspired)
=========================================== */
.navbar {
    background-color: var(--bg-light);
    padding: 1rem 2rem;
    box-shadow: 0 1px 6px var(--shadow-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-color);
}

.navbar-brand img {
    height: 48px;
}

.navbar-nav {
    display: flex;
    gap: 1.25rem;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background-color var(--transition-duration);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: var(--primary-color);
    color: var(--bg-light);
    outline: none;
}

.navbar-toggler {
    border: none;
    background: transparent;
}

/* ===========================================
Headings
=========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===========================================
Sections
=========================================== */
.section {
    background-color: var(--bg-light);
    padding: 3rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

.section.text-center {
    text-align: center;
}

/* ===========================================
Buttons (macOS style)
=========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-duration), box-shadow var(--transition-duration), transform var(--transition-duration);
    user-select: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-light);
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    box-shadow: 0 10px 18px rgba(0, 122, 255, 0.6);
    transform: translateY(-1px);
    outline: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-light);
    box-shadow: 0 4px 10px rgba(90, 200, 250, 0.5);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #3fc0ff;
    box-shadow: 0 8px 18px rgba(90, 200, 250, 0.7);
    transform: translateY(-1px);
    outline: none;
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--bg-light);
    outline: none;
}

/* ===========================================
Forms
=========================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    outline-offset: 2px;
    transition: border-color var(--transition-duration), box-shadow var(--transition-duration);
    user-select: text;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 7px rgba(0, 122, 255, 0.5);
}

/* ===========================================
Tables
=========================================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background-color: var(--bg-light);
    color: var(--text-color);
}

th,
td {
    padding: 0.8rem 1rem;
    text-align: left;
}

th {
    font-weight: 700;
    background-color: var(--bg-light);
}

/* Hover effect for table rows */
tbody tr:hover {
    background-color: #e6f0ff;
    transition: background-color var(--transition-duration);
}

/* ===========================================
Cards and Galleries
=========================================== */
.card {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: 0 8px 18px var(--shadow-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow var(--transition-duration);
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.25);
}

.photo-tile {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition-duration) ease;
    cursor: pointer;
}

.photo-tile img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-tile:hover {
    transform: scale(1.04);
}

/* Caption overlay on photo tiles */
.caption-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(28, 28, 30, 0.8);
    color: var(--bg-light);
    padding: 0.8rem;
    opacity: 0;
    transition: opacity var(--transition-duration);
    text-align: center;
    pointer-events: none;
}

.photo-tile:hover .caption-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ===========================================
Footer
=========================================== */
.footer {
    background-color: var(--bg-light);
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    transition: color var(--transition-duration);
}

.footer a:hover,
.footer a:focus {
    color: var(--primary-hover);
    outline: none;
}

/* ===========================================
Scroll to Top Button
=========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: var(--bg-light);
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 122, 255, 0.5);
    transition: background-color var(--transition-duration);
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
}

/* ===========================================
Animations
=========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===========================================
Responsive adjustments
=========================================== */
@media (max-width: 991px) {
    .container {
        padding: 0 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        flex-wrap: wrap;
    }
}

/* ===========================================
Utility Classes
=========================================== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}


/* ----- Ulepszone CSS Grid Layout z elastycznym rozciąganiem ----- */
.map-sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "sidebar"
        "map";
    height: calc(100vh - 120px);
    gap: 1rem;
    padding: 0 1rem;
    min-height: 0;
}

/* Desktop - elastyczny podział */
@media (min-width: 992px) {
    .map-sidebar-wrapper {
        grid-template-columns: minmax(350px, 32%) 1fr;
        grid-template-areas: "sidebar map";
        gap: 1.5rem;
    }
}

/* Tablet - szerszy sidebar */
@media (min-width: 768px) and (max-width: 991.98px) {
    .map-sidebar-wrapper {
        grid-template-columns: minmax(320px, 42%) 1fr;
        grid-template-areas: "sidebar map";
        gap: 1rem;
    }
}

/* Ultra-wide - ograniczenie maksymalnej szerokości sidebara */
@media (min-width: 1600px) {
    .map-sidebar-wrapper {
        grid-template-columns: minmax(400px, 28%) 1fr;
        max-width: 1900px;
        margin: 0 auto;
    }
}

/* Mobile - pionowy układ */
@media (max-width: 767.98px) {
    .map-sidebar-wrapper {
        height: auto;
        grid-template-rows: auto 65vh;
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
}

.map-sidebar-container {
    grid-area: sidebar;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--apple-gray-medium, #e1e1e6);
    border-radius: 18px;
    padding: 1.8rem;
    overflow-y: auto;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-main-container {
    grid-area: map;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    background: white;
    position: relative;
}

#map {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

/* Mobile responsywność */
@media (max-width: 767.98px) {
    .map-sidebar-container {
        max-height: 55vh;
        padding: 1.2rem;
    }

    .map-main-container {
        min-height: 65vh;
    }
}

/* ----- Ulepszone Apple Style Components ----- */
.sidebar-title {
    font-weight: 800;
    color: var(--apple-text-primary, #1c1c1e);
    margin-bottom: 1.5rem;
    font-size: clamp(1.3rem, 2.8vw, 1.7rem);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--apple-blue, rgb(209, 24, 24)), rgb(141, 8, 8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-title .bi {
    color: var(--apple-blue, rgb(228, 15, 15));
    margin-right: 0.8rem;
    font-size: 2rem;
    -webkit-text-fill-color: var(--apple-blue, rgb(156, 6, 6));
    filter: drop-shadow(0 2px 4px rgba(189, 10, 10, 0.3));
}

/* Licznik wyfiltrowanych wyników */
.results-counter {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.results-counter .bi {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    color: #ffc107;
}

.results-counter.has-filters {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08));
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.25);
}

.input-group-text-apple {
    background: linear-gradient(135deg, var(--apple-gray-light, #f5f5f7), #e9ecef);
    border: 1px solid var(--apple-gray-dark, #d1d1d6);
    border-right: none;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    padding: 0.7rem 0.9rem;
    border-radius: 14px 0 0 14px;
}

.input-group-text-apple .bi {
    color: var(--apple-blue, rgb(255, 0, 0));
    font-size: 1.1rem;
}

.form-control-apple {
    border: 1px solid var(--apple-gray-dark, #d1d1d6);
    background: linear-gradient(135deg, var(--apple-gray-light, #f5f5f7), #fff);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    padding: 0.7rem 0.9rem;
    border-radius: 0 14px 14px 0;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control-apple:focus {
    border-color: var(--apple-blue, rgb(233, 27, 12));
    box-shadow: 0 0 0 0.25rem rgba(0, 122, 255, 0.15);
    background: white;
    transform: translateY(-1px);
}

.sidebar-filter-heading {
    font-weight: 700;
    color: var(--apple-text-primary, #1c1c1e);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.sidebar-filter-heading .bi {
    color: var(--apple-blue, #007aff);
    margin-right: 0.7rem;
    font-size: 1.2rem;
}

.accordion-button-apple {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    background: linear-gradient(135deg, var(--apple-gray-light, #f5f5f7), #e9ecef);
    color: var(--apple-text-primary, #1c1c1e);
    border-radius: 14px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-button-apple:not(.collapsed) {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(0, 122, 255, 0.06));
    color: var(--apple-blue, rgb(255, 0, 0));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2);
}

.accordion-button-apple:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 122, 255, 0.15);
}

.accordion-button-apple .bi {
    color: var(--apple-blue, rgb(255, 0, 0));
    margin-right: 0.7rem;
    font-size: 1.1rem;
}

.accordion-item-apple {
    border: 1px solid var(--apple-gray-medium, #e1e1e6);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.accordion-body-apple {
    max-height: clamp(180px, 30vh, 280px);
    overflow-y: auto;
    padding: 1.2rem;
    background: linear-gradient(to bottom, #fff, #fafbfc);
}

.form-check {
    margin-bottom: 0.8rem !important;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-check:hover {
    background: rgba(0, 122, 255, 0.05);
}

.form-check-input:checked {
    background-color: var(--apple-blue, rgb(138, 6, 6));
    border-color: var(--apple-blue, rgb(105, 9, 9));
}

.form-check-label {
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Ulepszona lista atrakcji */
.attraction-list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.attraction-list-group {
    flex: 1;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid var(--apple-gray-medium, #e1e1e6);
    background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.attraction-list-item {
    border: none;
    border-bottom: 1px solid var(--apple-gray-medium, #e1e1e6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    padding: 1rem 1.2rem;
    position: relative;
}

.attraction-list-item:last-child {
    border-bottom: none;
}

.attraction-list-item:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(0, 122, 255, 0.03));
    transform: translateX(6px);
    box-shadow: 0 3px 12px rgba(0, 122, 255, 0.15);
}

.attraction-list-item.active {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(0, 122, 255, 0.08));
    border-left: 4px solid var(--apple-blue, rgb(133, 14, 14));
    font-weight: 700;
    padding-left: calc(1.2rem - 4px);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

/* Wyróżnienie wyfiltrowanych elementów */
.attraction-list-item.filtered-result {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    padding-left: calc(1.2rem - 4px);
}

.attraction-list-item.filtered-result:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08));
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.25);
}

.attraction-list-item.filtered-result.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    border-left: 4px solid #e0a800;
}

.category-legend-list {
    padding-left: 0;
    list-style: none;
}

.category-legend-list li {
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--apple-text-secondary, #515154);
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-legend-list li:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(0, 122, 255, 0.03));
    transform: translateX(3px);
}

.category-legend-list .bi {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Lepsze scrollbary */
.map-sidebar-container::-webkit-scrollbar,
.attraction-list-group::-webkit-scrollbar,
.accordion-body-apple::-webkit-scrollbar {
    width: 8px;
}

.map-sidebar-container::-webkit-scrollbar-track,
.attraction-list-group::-webkit-scrollbar-track,
.accordion-body-apple::-webkit-scrollbar-track {
    background: var(--apple-gray-light, #f5f5f7);
    border-radius: 4px;
}

.map-sidebar-container::-webkit-scrollbar-thumb,
.attraction-list-group::-webkit-scrollbar-thumb,
.accordion-body-apple::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--apple-gray-dark, #d1d1d6), #c1c1c6);
    border-radius: 4px;
}

.map-sidebar-container::-webkit-scrollbar-thumb:hover,
.attraction-list-group::-webkit-scrollbar-thumb:hover,
.accordion-body-apple::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--apple-blue, #007aff), #0056b3);
}

/* Clear filters button */
.clear-filters-btn {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1), rgba(255, 59, 48, 0.05));
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #d70015;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0.5rem;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 59, 48, 0.08));
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 59, 48, 0.2);
}

/* Loading animation */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--apple-gray-medium);
    border-top: 2px solid var(--apple-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

:root {
    --apple-blue: rgb(196, 14, 14);
    --apple-blue-dark: rgb(255, 22, 22);
    --apple-gray-light: #f5f5f7;
    --apple-gray-medium: #e1e1e6;
    --apple-gray-dark: #d1d1d6;
    --apple-text-primary: #1d1d1f;
    --apple-text-secondary: #515154;
    --apple-green: #34c759;
    --apple-red: #ff3b30;
    --apple-shadow: rgba(0, 0, 0, 0.08);
    --apple-shadow-strong: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--apple-gray-light);
    color: var(--apple-text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Kompaktowa górna belka z przezroczystością */
.navbar {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px var(--apple-shadow),
        0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    -webkit-backface-visibility: hidden;
    padding: 0.5rem 0;
    max-height: 80px;
    min-height: 60px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 0 0 20px 20px;
    margin: 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--apple-blue) !important;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    padding: 0.4rem 0;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: var(--apple-blue-dark) !important;
}

.navbar-brand .bi {
    font-size: 1.5rem;
    margin-right: 0.4rem;
    filter: drop-shadow(0 1px 2px rgba(255, 0, 0, 0.3));
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--apple-text-primary) !important;
    margin: 0 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--apple-blue) !important;
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.navbar-nav .nav-link .bi {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

/* Przesunięcie głównej zawartości */
.container-main {
    max-width: 1280px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    flex: 1;
    padding-top: calc(80px + 1.5rem);
}

/* Kompaktowa dolna belka z przezroczystością */
.footer {
    background: rgba(249, 249, 251, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--apple-text-secondary);
    padding: 1rem 0;
    margin: auto 10px 10px 10px;
    box-shadow: 0 -4px 20px var(--apple-shadow),
        0 -1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    -webkit-backface-visibility: hidden;
    border-radius: 20px 20px 0 0;
    max-height: 80px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.footer a:hover {
    color: var(--apple-blue-dark);
    transform: translateY(-1px);
}

.footer .list-inline-item {
    margin: 0 0.5rem;
}

.footer .list-inline-item a {
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.footer .list-inline-item a:hover {
    background: rgba(0, 122, 255, 0.1);
}

/* Flash Messages z zaokrąglonymi rogami */
.flash-messages-container {
    position: fixed;
    top: calc(80px + 1rem);
    right: 1.5rem;
    z-index: 1060;
    width: auto;
    max-width: 380px;
}

.flash-message {
    padding: 0.8rem 1.1rem;
    margin-bottom: 0.8rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards,
        fadeOut 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 4.6s forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.flash-message .bi {
    font-size: 1.2rem;
    margin-right: 0.6rem;
}

.flash-message.success {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.9), rgba(40, 167, 69, 0.9));
    color: white;
}

.flash-message.error {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.9), rgba(220, 53, 69, 0.9));
    color: white;
}

.flash-message.info {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.9), rgba(0, 166, 255, 0.9));
    color: white;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Hover efekty dla belki nawigacyjnej */
.navbar:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 25px var(--apple-shadow-strong),
        0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 991.98px) {
    .navbar {
        max-height: 70px;
        margin: 0 5px;
        border-radius: 0 0 15px 15px;
    }

    .footer {
        margin: auto 5px 5px 5px;
        border-radius: 15px 15px 0 0;
        max-height: 70px;
    }

    .container-main {
        padding-top: calc(70px + 1rem);
    }
}