* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




:root {
    --primary: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary: #6b7280;
    --border: #e5e7eb;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --text: #111827;
    --text-light: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
}


body.dark-mode {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #1e3a8a;
    --secondary: #9ca3af;
    --border: #374151;
    --background: #111827;
    --card-bg: #1f2937;
    --text: #f3f4f6;
    --text-light: #d1d5db;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

.site_name {
    font-size: 28px;
    font-weight: 700;
}
.typing-wrapper {
    width: 90%;
    height: 120px; /* miejsce np. na 2 linie */

    margin: 50px auto;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;
    overflow: hidden;

    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: 1px;
    gap: 2px;

    line-height: 1.03;
}

#typingText {
    min-height: 1em;
}

.cursor {
    display: inline-block;
    animation: blink 0.8s infinite;
    transform: translateY(-2px);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


.description {
    display: block;
    margin-top: 12px;
    font-weight: 400;
    max-width: 100%;
    line-height: 1.5;

    text-align: center;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}





    .cylinder-main-container {
        display: block; 
        width: 100%;
        padding: 20px 0;
        clear: both;
    }

    .cylinder-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: transform 0.3s ease;
        margin-bottom: 20px;
    }

    .layout-side-by-side {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px; /* Increased gap for better spacing */
    }

    .layout-stacked {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .vial-and-scale {
        display: flex;
        align-items: center;
        gap: 15px;
        position: relative;
    }

    .glass-vial {
        width: 220px;
        height: 450px;
        border-left: 5px solid;
        border-right: 5px solid;
        border-bottom: 5px solid;
        border-top: none;
        border-radius: 0 0 110px 110px;
        position: relative;
        overflow: hidden;
        background: transparent;
        backdrop-filter: none;
    }

    .liquid-body {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0%;
        transition: height 2.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0.6;
        z-index: 1;
    }

    .liquid-counter {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: bold;
        font-size: 56px;
        pointer-events: none;
        z-index: 10;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .vial-scale {
        height: 450px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        user-select: none;
    }

    .vial-scale span {
        font-size: 12px;
        line-height: 1;
    }

    .label-under {
        margin-top: 20px;
        text-align: center;
        width: 220px;
        font-size: 22px; /* Enlarged as requested */
        font-weight: 500;
    }

    /* Beside text - no fixed width or font size */
    .label-beside {
    flex: 1;
    font-size: 26px; /* 28px * 1.4 */
    }

    .vial-bubble {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        z-index: 2;
    }

    .cylinder-config {
        display: none !important;
    }


/* Header */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}





.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo p {
    font-size: 12px;
    color: var(--text-light);
}

a:link,
a:visited {
    color: blue; /* albo dowolny kolor */
    text-decoration: none;
}







.xenqora_stats_row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:60px;
    flex-wrap:wrap;
    margin:50px 0;
}

.xenqora_statbox{
    position:relative;
    min-width:180px;
    text-align:center;

    opacity:0;
    transform:translateY(40px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.xenqora_statbox.xenqora_visible{
    opacity:1;
    transform:translateY(0);
}

.xenqora_counter{
    position:relative;
    z-index:2;

    font-size:3.5rem;
    font-weight:700;
    line-height:1;

    color:var(--primary-color, #4f46e5);
}

.xenqora_label{
    position:relative;
    z-index:2;

    margin-top:10px;

    font-size:1rem;
    font-weight:500;
}

.xenqora_bgmark{
    position:absolute;

    left:50%;
    top:50%;

    transform:translate(-50%,-50%);

    font-size:7rem;

    opacity:0.05;

    z-index:1;
    pointer-events:none;

    transition:transform .3s ease;
}

.xenqora_statbox:hover .xenqora_bgmark{
    transform:translate(-50%,-50%) scale(1.08);
}

@media(max-width:800px){

    .xenqora_stats_row{
        gap:35px;
    }

    .xenqora_counter{
        font-size:2.8rem;
    }

    .xenqora_bgmark{
        font-size:5rem;
    }

}




.nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.logo img {
    width: 10%;
    height: 10%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

@media (max-width: 800px) {
    .logo img {
        width: 20%;
        height: 20%;
    }
}

.user-info {
    font-size: 14px;
    color: var(--text-light);
}

/* Main */
.main {
    padding: 40px 0;
    margin-left: 2%;
    width: 98%;
    min-height: calc(100vh - 200px);
}

/* Section */
.section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}.task-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.task-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.task-card-year {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.task-card-tema {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    padding: 10px;
    background: var(--background);
    border-radius: 6px;
}

.task-section {
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.task-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.task-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}

.btn-small:hover {
    background: var(--primary);
    color: white;
}/* Archive */
.archive {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-edition {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edition-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    user-select: none;
}

.edition-header:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edition-toggle {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.edition-content {
    display: none;
    padding: 0;
    background: var(--card-bg);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.edition-content[style*="display: block"] {
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.archive-kola {
    border-bottom: 1px solid var(--border);
}

.archive-kola:last-child {
    border-bottom: none;
}

.kola-header {
    padding: 14px 20px 14px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--background);
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 500;
    font-size: 15px;
}

.kola-header:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.kola-toggle {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
}

.kola-content {
    display: none;
    padding: 0;
    background: var(--card-bg);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kola-content[style*="display: block"] {
    display: block !important;
}

.archive-type {
    border-bottom: 1px solid var(--border);
}

.archive-type:last-child {
    border-bottom: none;
}

.type-header {
    padding: 12px 20px 12px 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.05);
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 500;
    font-size: 14px;
    color: var(--primary);
}

.type-header:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.type-toggle {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
}

.type-content {
    display: none;
    padding: 0;
    background: var(--card-bg);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-content[style*="display: block"] {
    display: block !important;
}

.archive-file {
    padding: 12px 20px 12px 80px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.archive-file:last-child {
    border-bottom: none;
}

.archive-file:hover {
    background: var(--background);
}

.archive-file .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.about-card .profile {
    
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-cardk{
    
    margin-left: 2%;
    width: 98%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-card .profile img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.about-card .profile h3 {
    margin: 0 0 8px 0;
}

.about-card .profile ul {
    margin: 0;
    padding-left: 18px;
}


/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    will-change: transform, box-shadow;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-small {
    will-change: transform, background-color;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background);
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload input {
    display: none;
}

.file-upload-label {
    pointer-events: none;
}

.schedule-group {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
}

.schedule-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.schedule-inputs > div {
    display: flex;
    flex-direction: column;
}

.schedule-inputs label {
    margin-bottom: 5px;
    font-size: 13px;
}

.info-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tasks List */
.tasks-list {
    space-y: 10px;
}

.task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--background);
}

.task-row-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.task-row-info p {
    font-size: 13px;
    color: var(--text-light);
}

.task-row-actions {
    display: flex;
    gap: 10px;
}

/* Messages */
.message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo-icon {
    margin: 0 auto 15px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

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

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.login-header .theme-toggle {
    position: static;
    width: auto;
    height: auto;
    border: none;
    background: none;
    box-shadow: none;
    font-size: 28px;
    padding: 0;
    margin: 0;
}

.login-header .theme-toggle:hover {
    background: none;
    color: var(--primary);
    border: none;
    transform: scale(1.2);
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-light);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 800px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .schedule-inputs {
        grid-template-columns: 1fr;
    }

    .task-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .task-row-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .section-header h2 {
        font-size: 24px;
    }
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding: 100px 0 150px 0;
    margin: 40px 0;
    width: 100%;
    overflow-x: auto;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-bridge {
    position: absolute;
    top: 150px;
    left: 5%;
    right: 5%;
    height: 150px;
    border: 4px solid var(--primary);
    border-bottom: none;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.6;
    z-index: 1;
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 90%;
    max-width: 1000px;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
}

/* Sticky Note Style */
.sticky-note {
    background: #fef08a;
    color: #111827;
    padding: 20px;
    width: 160px;
    height: 160px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom-right-radius: 30px 5px;
}

@media (max-width: 800px) {
    .sticky-note {
        width: 120px;
        height: 120px;
        padding: 10px;
        font-size: 0.8rem;
    }
    .sticky-note h3 {
        font-size: 1rem;
    }
    .timeline-bridge {
        height: 100px;
        top: 200px;
    }
}

@media (max-width: 800px) {
    .timeline-container {
        flex-direction: column;
        padding: 40px 0;
        min-height: 600px;
        overflow-x: hidden;
        align-items: center;
    }
    .timeline-bridge {
        display: block;
        top: 50px;
        bottom: 50px;
        left: auto;
        right: 10%;
        width: 100px;
        height: auto;
        border: 4px solid var(--primary);
        border-left: none;
        border-radius: 0 100% 100% 0 / 0 50% 50% 0;
        opacity: 0.4;
    }
    .timeline-items {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        width: 100%;
        margin: 0;
        height: 100%;
    }
    .timeline-item {
        width: 100%;
        max-width: 180px;
        flex: none;
        position: relative;
        left: -10%; /* Bazowe przesunięcie */
    }
    .timeline-item:nth-child(2) {
        left: 20%; /* Środkowa karteczka bardziej w prawo, bliżej łuku */
    }
    .timeline-link {
        display: none;
    }
    .current-dot {
        top: 10px; /* Pinezka na górze karteczki */
        right: -10px; /* Pinezka na prawym brzegu */
        left: auto;
        transform: none;
    }
    .timeline-item:nth-child(even) .current-dot {
        right: 60%;
	top: none;
        left: 55%;
    }
    .marker {
        top: 50%;
        right: -20px;
        left: 50%;
        transform: rotate(-45deg);
    }
    .sticky-note {
        width: 140px;
        height: 140px;
        font-size: 0.8rem;
    }
    .sticky-note::before {
        display: none; /* Ukrywamy stary pin, bo używamy current-dot jako pinezki */
    }
}

.sticky-note::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ef4444; /* Pin color */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 3;
}

.timeline-item:nth-child(even) .sticky-note {
    transform: rotate(3deg);
}

body:not(.dark-mode) .timeline-item:nth-child(even) .sticky-note {
    background: #fde68a;
}

.sticky-note h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.sticky-note p {
    font-size: 0.9rem;
    margin: 2px 0;
}

.sticky-note .time {
    font-weight: bold;
    font-size: 0.8rem;
}

/* Google Maps Marker Style */
.marker {
    position: absolute;
    top: -80px;
    width: 40px;
    height: 40px;
    background: #ef4444;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
    z-index: 10;
}

.marker::after {
    content: "";
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) translate(0, 0); }
    50% { transform: rotate(-45deg) translate(10px, -10px); }
}

.current-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #ef4444;
    z-index: 5;
}

.timeline-link {
    position: absolute;
    top: 0;
    width: 2px;
    height: 120px;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

@media (max-width: 800px) {
    .timeline-link {
        height: 100px;
    }
    .marker {
        top: -60px;
        width: 30px;
        height: 30px;
    }
}

body.dark-mode .sticky-note {
    background: #3f3f46;
    color: #f4f4f5;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.6);
    border: 1px solid #52525b;
}

body.dark-mode .sticky-note::before {
    background: #f87171; /* Brighter red pin for dark mode */
}

body.dark-mode .timeline-bridge {
    border-color: var(--primary);
    opacity: 0.4;
}

body.dark-mode .timeline-link {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .current-dot {
    box-shadow: 0 0 15px #ef4444;
}



/* Styl dla hamburgera i responsywnego menu */
        .header {
            position: relative;
            z-index: 1000;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .nav-brand img {
            height: 50px;
        }

        .brand-text h1 {
            margin: 0;
            font-size: 1.2rem;
        }

        .brand-text p {
            margin: 0;
            font-size: 0.8rem;
            opacity: 0.8;
        }

        /* Ukrywamy hamburgera na komputerach */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 25px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
            position: fixed; /* Zawsze przyklejony w prawym górnym rogu na mobile */
            right: 20px;
            top: 20px;
        }

        .hamburger span {
            width: 30px;
            height: 3px;
            background: currentColor; /* Używa koloru tekstu rodzica */
            border-radius: 10px;
            transition: all 0.3s linear;
            position: relative;
            transform-origin: 1px;
        }
        body.dark-mode .hamburger {
            color: #fff;
        }

        /* Styl menu dla komputerów */
        .nav-menu {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        /* Responsywność dla telefonów */
        @media (max-width: 800px) {
            .hamburger {
                display: flex;
            }

            .nav-menu {
                display: none; /* Ukrywamy przyciski domyślnie */
                flex-direction: column;
                position: fixed;
                top: 0;
                right: 0;
                height: 100vh;
                width: 250px;
                background: #fff; /* Możesz zmienić na kolor tła Twojej strony */
                box-shadow: -2px 0 5px rgba(0,0,0,0.1);
                padding: 80px 20px 20px 20px;
                gap: 20px;
                z-index: 1000;
            }

            /* Ciemny motyw dla menu mobilnego (jeśli strona go używa) */
            body.dark-mode .nav-menu {
                background: #1a1a1a;
                color: #fff;
            }

            .nav-menu.active {
                display: flex; /* Pokazujemy po kliknięciu */
            }

            /* Animacja hamburgera do X */
            .hamburger.active span:nth-child(1) {
                transform: rotate(45deg);
            }

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

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