/* ==========================================================================
   LAYOUT CSS - Page structure and major layout components
   ========================================================================== */

/* Header */
.header {
    background: var(--background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--animation);
    border-bottom: 1px solid var(--border);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Main navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    min-height: 64px;
}

/* Logo */
.logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--animation);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo:hover {
    transform: scale(1.05);
    text-decoration: none;
}

/* Main content area */
.main {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.page-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
    padding-top: 0;
}

/* Hero section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grain' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23ffffff' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grain)'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
    line-height: var(--line-height-relaxed);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Photo tiles section */
.photo-tiles-section {
    padding: var(--spacing-3xl) 0;
    background: var(--surface);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-2xl);
    color: var(--text-primary);
}

.photo-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.photo-tile {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: var(--animation);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.photo-tile-large {
    grid-column: span 2;
    height: 400px;
}

.photo-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.photo-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-xl);
    opacity: 0;
    transition: var(--animation);
}

.photo-tile:hover .photo-tile-overlay {
    opacity: 1;
}

.photo-tile-content {
    color: white;
    width: 100%;
}

.photo-tile-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.photo-tile-description {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    line-height: var(--line-height-relaxed);
}

.photo-tile-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid white;
    border-radius: var(--radius-full);
    transition: var(--animation);
}

.photo-tile-link:hover {
    background: white;
    color: var(--text-primary);
    text-decoration: none;
}

/* Gallery grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
}

.gallery-summary {
    background: var(--background);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.gallery-summary p {
    margin: 0;
    color: var(--text-secondary);
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.pagination-wrapper .btn {
    margin: 0 var(--spacing-xs);
    min-width: 44px;
    height: 44px;
    border-radius: var(--radius);
}

.pagination-wrapper .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: white;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--animation);
    padding: var(--spacing-xs) 0;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--animation);
}

.social-link:hover {
    background: white;
    color: var(--text-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
}

.contact-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-light);
}

.contact-info a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--animation);
}

.contact-info a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: var(--font-size-sm);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.k3e-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #10b981;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--animation);
}

.k3e-link:hover {
    color: #059669;
    text-decoration: none;
}

.k3e-logo {
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

/* Login page specific layouts */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) 0;
}

.login-card {
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-3xl);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.login-icon {
    background: var(--gradient-primary);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    box-shadow: var(--shadow);
}

.login-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: var(--line-height-relaxed);
}

.login-form {
    position: relative;
}

.login-footer {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
    margin-top: var(--spacing-xl);
}

.help-text {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.help-text i {
    color: var(--primary-color);
}

/* Background decoration */
.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: -15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error page layouts */
.error-container {
    text-align: center;
    padding: var(--spacing-3xl) 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-code {
    font-size: 6rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.error-message {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
}

.error-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   BREADCRUMBS STYLES - Navigation breadcrumbs styling
   ========================================================================== */

/* Breadcrumbs container */
.breadcrumbs {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-sm);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--animation);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.breadcrumb-item a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

.breadcrumb-item a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Breadcrumb separators */
.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 var(--spacing-sm);
    color: var(--text-light);
    font-weight: var(--font-weight-normal);
    pointer-events: none;
}

/* Alternative separator styles - you can choose which one you prefer */
.breadcrumb-item:not(:last-child)::after {
    content: '›';
    font-size: var(--font-size-lg);
}

/* Or use an icon separator */
/* 
.breadcrumb-item:not(:last-child)::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid var(--text-light);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin: 0 var(--spacing-sm);
}
*/

/* Active breadcrumb (current page) */
.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--background);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* Home icon in breadcrumbs */
.breadcrumb-item i.fa-home {
    color: var(--primary-color);
    font-size: var(--font-size-base);
}

.breadcrumb-item a:hover i.fa-home {
    color: var(--primary-dark);
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: var(--spacing-sm) 0;
    }
    
    .breadcrumb-list {
        font-size: var(--font-size-xs);
        gap: var(--spacing-xs);
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 var(--spacing-xs);
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.active {
        padding: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    /* On very small screens, show only home icon and current page */
    .breadcrumb-item:not(:first-child):not(:last-child) {
        display: none;
    }
    
    .breadcrumb-item:not(:first-child):not(:last-child)::after {
        display: none;
    }
    
    /* Show ellipsis when items are hidden */
    .breadcrumb-list::before {
        content: '...';
        color: var(--text-light);
        margin: 0 var(--spacing-xs);
        order: 1;
    }
    
    .breadcrumb-item:first-child {
        order: 0;
    }
    
    .breadcrumb-item:last-child {
        order: 2;
    }
}

/* Enhanced styles for better visual hierarchy */
.breadcrumb-item a {
    background: transparent;
    border: 1px solid transparent;
}

.breadcrumb-item a:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .breadcrumbs {
        background: var(--surface);
        border-bottom-color: var(--border);
    }
    
    .breadcrumb-item.active {
        background: var(--surface-elevated);
        border-color: var(--border-dark);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .breadcrumb-item a {
        border: 1px solid var(--primary-color);
    }
    
    .breadcrumb-item.active {
        border: 2px solid var(--text-primary);
        background: var(--background);
    }
    
    .breadcrumb-item:not(:last-child)::after {
        color: var(--text-primary);
        font-weight: var(--font-weight-bold);
    }
}

/* Animation for breadcrumbs */
.breadcrumb-item {
    animation: slideInLeft 0.3s ease-out;
    animation-fill-mode: both;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0ms; }
.breadcrumb-item:nth-child(2) { animation-delay: 50ms; }
.breadcrumb-item:nth-child(3) { animation-delay: 100ms; }
.breadcrumb-item:nth-child(4) { animation-delay: 150ms; }
.breadcrumb-item:nth-child(5) { animation-delay: 200ms; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .breadcrumb-item {
        animation: none;
    }
    
    .breadcrumb-item a:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .breadcrumbs {
        display: none;
    }
}

/* CSS dla nowego nav-menu - dodaj do frontend/web/css/layout.css */

/* Header i navbar */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    min-height: 70px;
    position: relative;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
    font-family: 'Comfortaa', sans-serif;
    z-index: 1001;
}

.logo:hover {
    text-decoration: none;
    color: #4338ca;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    z-index: 1001;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #f3f4f6;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Hamburger lines */
.hamburger-line {
    width: 24px;
    height: 3px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Nav menu wrapper */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

/* Desktop nav menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: #f3f4f6;
    color: #6366f1;
    text-decoration: none;
}

.nav-link i {
    font-size: 1rem;
}

/* Dropdown styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    justify-content: space-between;
    min-width: 120px;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #6366f1;
    text-decoration: none;
}

.external-link-icon {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile menu wrapper */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu-wrapper.active {
        left: 0;
    }
    
    /* Mobile nav menu */
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 2rem;
        gap: 0;
        height: 100%;
    }
    
    /* Mobile nav items */
    .nav-item {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Mobile nav links */
    .nav-link {
        padding: 1.25rem 2rem;
        border-radius: 0;
        border-left: 4px solid transparent;
        justify-content: flex-start;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #f9fafb;
        border-left-color: #6366f1;
    }
    
    .nav-link i {
        width: 24px;
        text-align: center;
    }
    
/* CSS poprawka - zastąp sekcję mobile dropdown w layout.css */

/* Mobile styles */
@media (max-width: 768px) {
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile menu wrapper */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu-wrapper.active {
        left: 0;
    }
    
    /* Mobile nav menu */
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 2rem;
        gap: 0;
        height: 100%;
    }
    
    /* Mobile nav items */
    .nav-item {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Mobile nav links */
    .nav-link {
        padding: 1.25rem 2rem;
        border-radius: 0;
        border-left: 4px solid transparent;
        justify-content: flex-start;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #f9fafb;
        border-left-color: #6366f1;
    }
    
    .nav-link i {
        width: 24px;
        text-align: center;
    }
    
    /* POPRAWKA: Mobile dropdown - zawsze pokazane */
    .nav-dropdown .dropdown-toggle {
        /* Ukryj dropdown button na mobile */
        display: none;
    }
    
    .nav-dropdown .dropdown-menu {
        /* Zawsze pokazane na mobile */
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f9fafb;
        display: block !important; /* Zawsze widoczne */
        padding: 0;
    }
    
    .nav-dropdown .dropdown-item {
        padding: 1rem 2rem;
        border-bottom: 1px solid #e5e7eb;
        border-left: 4px solid transparent;
    }
    
    .nav-dropdown .dropdown-item:hover {
        background: #f3f4f6;
        border-left-color: #6366f1;
    }
    
    .nav-dropdown .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* DODANE: Pokaż etykietę użytkownika na mobile */
    .nav-dropdown::before {
        content: attr(data-username);
        display: block;
        padding: 1rem 2rem;
        color: #6b7280;
        font-size: 0.9rem;
        font-weight: 600;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
    }
    
    /* Hamburger animation */
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Header adjustments for mobile */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
    }
    
    /* Adjust main content for fixed header */
    .main {
        padding-top: 70px;
    }
}
    
    /* Hamburger animation */
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Prevent body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Header adjustments for mobile */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
    }
    
    /* Adjust main content for fixed header */
    .main {
        padding-top: 70px;
    }
}