* {
    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;
    --input-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;
    --input-bg: #111827;
    --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;
}


#snow-canvas {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 999999;
    }


.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);
            }
        }
/* Partnerzy */
.partner-card-link { display:block; color:inherit !important; text-decoration:none !important; }
.partner-card-link:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(15,23,42,.14); }
.partner-card { min-width: 240px; max-width: 280px; padding: 22px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.partner-card h3 { margin: 14px 0 3px; font-size: 18px; color: var(--text); }
.partner-card strong { color: var(--primary); font-size: 13px; }
.partner-card p { color: var(--text-light); margin-top: 10px; font-size: 14px; line-height: 1.5; }
.partner-logo { width: 70px; height: 70px; object-fit: contain; border-radius: 12px; background: var(--background); display: block; }
.partner-logo-placeholder { display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:30px; }
.partners-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; }
.uploaded-files { margin-top: 18px; display:grid; gap:8px; }
.uploaded-file { padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--background); }
.partner-card-cta { display:block; margin-top:14px; color:var(--primary); font-size:13px; font-weight:600; }
.partner-detail { max-width: 820px; margin: 0 auto; }
.partner-detail .partner-logo { width: 120px; height: 120px; margin-bottom: 22px; }
.partner-detail h2 { margin-bottom: 8px; }
.partner-detail-description { color:var(--text-light); font-size:18px; line-height:1.8; white-space:pre-wrap; }
.partner-website { display:inline-block; margin-top:24px; }

.partner-detail-description, .partner-popup-description { overflow-wrap:anywhere; word-break:break-word; white-space:pre-wrap; }
.partner-popup { position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(15,23,42,.65); }
.partner-popup.open { display:flex; }
.partner-popup-dialog { position:relative; width:min(620px,100%); max-height:min(80vh,680px); overflow-y:auto; padding:34px; border-radius:16px; background:var(--card-bg); color:var(--text); box-shadow:0 18px 60px rgba(0,0,0,.3); }
.partner-popup-title { margin-bottom:6px; }
.partner-popup-description { margin:20px 0; color:var(--text-light); line-height:1.7; }
.partner-popup-close { position:absolute; top:10px; right:14px; border:0; background:transparent; color:var(--text); font-size:30px; line-height:1; cursor:pointer; }

.partner-popup-logo { margin-bottom: 16px; }
.partner-popup-logo .partner-logo { width: 100px; height: 100px; }
.partner-popup-link { margin-left: 8px; }
@media (max-width: 600px) { .partner-popup-link { margin-left: 0; margin-top: 10px; } }

.registration-container { max-width: 880px; margin: 35px auto; }
.registration-card { padding: 32px; }
.registration-intro { color: var(--text-light); margin: 8px 0 24px; }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.registration-logo { text-decoration: none; color: inherit; }
.registration-logo img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.section-header-inline { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.attendance-list { display: grid; gap: 8px; margin: 15px 0 22px; }
.attendance-person { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.attendance-person input { width: 18px; height: 18px; }
@media (max-width: 650px) { .registration-grid { grid-template-columns: 1fr; } .registration-card { padding: 20px; } .section-header-inline { align-items: flex-start; flex-direction: column; } }


.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .65); }
.modal-overlay[hidden] { display: none; }
.modal-card { width: min(760px, 100%); max-height: 92vh; overflow-y: auto; padding: 26px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); color: var(--text); box-shadow: 0 20px 70px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.modal-close { border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 30px; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }


.registration-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) { .registration-actions { align-items: flex-end; flex-direction: column; } }

/* Aktualności i edytowalne osiągnięcia */
.news-section{padding:52px 20px 60px}.news-section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:22px}.news-section-heading h2,.achievements-page h2{font-size:clamp(24px,4vw,34px);color:var(--text)}.eyebrow{color:var(--primary);font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:12px}.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.news-card{padding:0;text-align:left;font:inherit;color:inherit;background:var(--card-bg);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px #0f172a0d;cursor:pointer;transition:transform .2s,box-shadow .2s}.news-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px #0f172a1c}.news-card>img{width:100%;height:180px;object-fit:cover;display:block}.news-card-copy{padding:18px}.news-card-copy h3{margin:7px 0;font-size:20px}.news-card-copy p{color:var(--text-light);line-height:1.55}.news-icon{font-size:25px}.news-read{display:inline-block;margin-top:14px;color:var(--primary);font-weight:700}.news-empty{color:var(--text-light);padding:20px}.news-modal{z-index:1200;overflow:auto;align-items:center}.news-modal-card{position:relative;width:min(760px,100%);max-height:90vh;overflow:auto;padding:30px}.news-close{position:sticky;float:right;top:0;z-index:2}.news-modal-heading{display:flex;gap:14px;align-items:flex-start;padding-right:24px}.news-modal-heading h2{font-size:28px;line-height:1.2}.news-modal-heading p{color:var(--text-light);margin-top:8px}.news-modal-cover{width:100%;max-height:400px;object-fit:cover;border-radius:14px;margin:20px 0}.news-long-description{white-space:normal;line-height:1.8;margin:20px 0}.content-gallery{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.content-gallery img{width:min(220px,100%);height:160px;object-fit:cover;border-radius:12px}.gallery-item{position:relative}.gallery-item img{width:100px;height:80px;object-fit:cover;border-radius:9px}.gallery-item button{position:absolute;right:3px;top:3px;border:0;border-radius:50%;width:24px;height:24px;background:#ef4444;color:white;cursor:pointer}.contest-row,.student-ach-row{display:flex;gap:8px;align-items:center;margin:8px 0}.contest-row input,.student-ach-row input{flex:1}.student-admin-card{margin:10px 0}.students-grid{display:grid;gap:16px;margin-top:18px}.student-card .profile{align-items:flex-start}.student-card .profile img{width:100px;height:100px;object-fit:cover;border-radius:50%}.student-card .profile h3{margin:0 0 8px}.student-card ul{padding-left:20px}.student-status{color:#f59e0b;font-weight:700}.achievements-page{max-width:1000px;margin:30px auto;padding:0 20px}.achievements-page>.container>section{margin:24px 0}.achievements-page .about-card{padding:24px;border-radius:14px;background:var(--card-bg)}.achievements-page .about-cardk{padding:22px;border-radius:14px;background:var(--card-bg)}.achievements-page .about-cardk li{margin:8px 0}.achievement-contests h2{margin-bottom:12px}
@media(max-width:600px){.news-section{padding:34px 14px}.news-section-heading{align-items:flex-start;flex-direction:column}.news-modal-card{padding:22px 16px}.news-card>img{height:155px}.contest-row{align-items:stretch}.contest-row .btn{flex-shrink:0}.student-card .profile{flex-direction:column}}

[hidden]{display:none!important}

/* Główne zdjęcia Aktualności: proporcje Full HD 16:9, bez rozciągania i przycinania. */
.news-card>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center;background:var(--background)}
.news-modal-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:min(56.25vw,400px);object-fit:contain;object-position:center;background:var(--background)}
@media(max-width:600px){.news-card>img{height:auto}.news-modal-cover{max-height:56.25vw}}

/* Dłuższe treści Aktualności zawijają się również wewnątrz długich wyrazów i adresów. */
.news-card-copy h3,.news-card-copy p,.news-modal-heading h2,.news-modal-heading p,.news-long-description{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
.news-card-copy p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.55}
.news-long-description{white-space:pre-wrap;line-height:1.8}
.news-lightbox[hidden]{display:none!important}.news-lightbox{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.96);padding:64px 76px}.lightbox-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.lightbox-control{position:absolute;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(30,30,30,.72);color:#fff;cursor:pointer;transition:background .2s}.lightbox-control:hover{background:rgba(80,80,80,.9)}.lightbox-close{right:22px;top:18px;width:44px;height:44px;font-size:30px}.lightbox-prev,.lightbox-next{top:50%;transform:translateY(-50%);width:52px;height:64px;border-radius:12px;font-size:48px;line-height:1}.lightbox-prev{left:16px}.lightbox-next{right:16px}.lightbox-counter{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:6px 12px;border-radius:20px;background:rgba(30,30,30,.75);color:#fff;font-size:14px}
@media(max-width:600px){.news-lightbox{padding:56px 50px}.lightbox-prev{left:5px}.lightbox-next{right:5px}.lightbox-prev,.lightbox-next{width:40px;height:52px;font-size:38px}.lightbox-close{right:10px;top:10px}}
.news-modal-cover,.content-gallery img{cursor:zoom-in}

/* Aktualności: każde zdjęcie mieści się w polu 16:9 bez kadrowania; mniejsze obrazy nie są rozciągane w pionie. */
.news-section .news-card>img,
.updates-page .news-card>img,
#newsModal .news-modal-cover,
#newsModal .content-gallery img{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  object-fit:contain!important;
  object-position:center!important;
  background:var(--background)!important;
}
#newsModal .content-gallery{width:100%;align-items:flex-start}
#newsModal .content-gallery img{flex:0 1 420px;width:min(420px,100%)!important;cursor:zoom-in}
#newsModal .news-modal-cover{max-height:min(56.25vw,520px)!important;cursor:zoom-in}
#newsLightbox .lightbox-image{width:auto!important;height:auto!important;max-width:calc(100vw - 150px)!important;max-height:calc(100vh - 130px)!important;aspect-ratio:auto!important;object-fit:contain!important}
@media(max-width:600px){
  #newsModal .content-gallery img{flex-basis:100%;width:100%!important}
  #newsModal .news-modal-cover{max-height:56.25vw!important}
  #newsLightbox .lightbox-image{max-width:calc(100vw - 100px)!important;max-height:calc(100vh - 120px)!important}
}
.student-profile-link{color:inherit;text-decoration:none}.student-profile-link:hover{color:var(--primary);text-decoration:underline}.student-profile-more{display:inline-block;margin-top:8px;color:var(--primary);font-weight:700;text-decoration:underline}.student-card{transition:transform .18s,box-shadow .18s}.student-card:hover{box-shadow:0 10px 28px rgba(15,23,42,.12)}.student-admin-card .task-row-actions .btn:disabled{opacity:.4;cursor:not-allowed}

/* Stopka nowych podstron pozostaje przy dolnej krawędzi ekranu przy krótkiej treści. */
body.page-with-bottom-footer{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.page-with-bottom-footer>header{flex:0 0 auto;width:100%}
body.page-with-bottom-footer>main{flex:1 0 auto;width:100%}
body.page-with-bottom-footer>.footer{flex:0 0 auto;width:100%;margin-top:auto}
.news-card-copy p a,.news-modal-heading a,.news-long-description a{color:var(--primary);text-decoration:underline;text-underline-offset:2px}.news-card{display:block;width:100%;cursor:pointer}.news-card:focus-visible{outline:3px solid var(--primary);outline-offset:3px}

/* Panel administratora: zakładki w dwóch równych rzędach na komputerze. */
@media(min-width:801px){
  .admin-page main>.container>.tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(42px,auto);gap:10px;overflow:visible;}
  .admin-page main>.container>.tabs .tab-btn{width:100%;min-width:0;white-space:normal;text-align:center;}
}

/* Statusy zgód i dokumentów w panelu uczestników. */
.participant-needs-attention{background:#fee2e2!important;border:1px solid #ef4444!important;color:#7f1d1d!important}
.participant-needs-attention .task-row-info p{color:#7f1d1d!important}
.participant-consent-status{font-size:.92em}
.participant-delivery-controls{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px}
.participant-delivery-controls label{display:inline-flex;align-items:center;gap:6px;font-weight:600;cursor:pointer}

.points-table-wrap{width:100%;overflow-x:auto;margin-top:12px}
.points-table{width:100%;border-collapse:collapse;min-width:520px}
.points-table th,.points-table td{padding:9px 10px;border-bottom:1px solid var(--border);text-align:left}
.points-table thead th{background:var(--background);white-space:nowrap}
.points-table .points-total{font-weight:700}
.points-cell-input{width:96px;min-width:72px;padding:7px;border:1px solid var(--border);border-radius:6px;background:var(--card-bg);color:var(--text)}
.points-cell-input.points-saved{border-color:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.16)}
.points-sort{border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.points-table tbody tr:hover{background:var(--background)}
.points-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0}
.points-category-delete-tool{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.points-category-delete-tool label{width:100%;font-weight:600}
.points-category-delete-tool select{min-width:220px;max-width:100%;padding:8px;border:1px solid var(--border);border-radius:7px;background:var(--card-bg);color:var(--text)}
.participant-status-fieldset{display:flex;flex-wrap:wrap;gap:12px 22px;margin:16px 0;padding:14px;border:1px solid var(--border);border-radius:10px}
.participant-status-fieldset legend{padding:0 7px;font-weight:700}
.participant-status-fieldset label{display:inline-flex;align-items:center;gap:7px;cursor:pointer}
#adminEditor{width:min(720px,96vw);max-height:90vh;overflow:auto;border:0;border-radius:14px;padding:24px;background:var(--card-bg,#fff);color:var(--text,#222);box-shadow:0 18px 70px #0005}#adminEditor::backdrop{background:#10182899}#adminEditor label{display:grid;gap:6px;font-weight:600}#adminEditor label.inline{display:flex;align-items:center;gap:10px}.year-accordion,.school-accordion{margin:10px 0;padding:12px;border:1px solid var(--border,#ddd);border-radius:10px}.year-accordion summary,.school-accordion summary{cursor:pointer;padding:8px;font-weight:700}.attendance-summary{font-weight:700;color:var(--primary,#2563eb)}
/* Spójne, wyśrodkowane okno edycji panelu */
#adminEditor{position:fixed;inset:0;margin:auto;width:min(680px,calc(100vw - 32px));max-width:none;max-height:min(88vh,900px);padding:0;border:1px solid color-mix(in srgb,var(--border,#d7dce5) 78%,transparent);border-radius:18px;background:var(--card-bg,#fff);color:var(--text,#202638);box-shadow:0 24px 90px #10182840;overflow:hidden}#adminEditor[open]{display:block}#adminEditor::backdrop{background:rgba(17,24,39,.58);backdrop-filter:blur(3px)}#adminEditor form{display:flex;flex-direction:column;max-height:min(88vh,900px)}#adminEditor .modal-header{position:sticky;top:0;z-index:1;padding:22px 26px 16px;background:var(--card-bg,#fff);border-bottom:1px solid var(--border,#e5e7eb)}#adminEditor .modal-header h2{margin:0;font-size:22px;line-height:1.25}#adminEditor .form{padding:18px 26px;overflow:auto;gap:15px}#adminEditor label{display:grid;gap:7px;font-size:14px;font-weight:650}#adminEditor input:not([type=checkbox]),#adminEditor select,#adminEditor textarea{width:100%;box-sizing:border-box;border:1px solid var(--border,#d1d5db);border-radius:9px;padding:10px 12px;background:var(--input-bg,var(--card-bg,#fff));color:var(--text,#202638);font:inherit}#adminEditor textarea{resize:vertical;min-height:84px;line-height:1.5}#adminEditor input:focus,#adminEditor select:focus,#adminEditor textarea:focus{outline:3px solid color-mix(in srgb,var(--primary,#2563eb) 22%,transparent);border-color:var(--primary,#2563eb)}#adminEditor label.inline{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:9px;background:var(--primary-light,#eff6ff)}#adminEditor .modal-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:15px 26px 20px;border-top:1px solid var(--border,#e5e7eb);background:var(--card-bg,#fff)}#adminEditor .modal-close{font-size:25px;border:0;background:transparent;color:inherit;cursor:pointer}.uploaded-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border,#e5e7eb);border-radius:9px;margin:8px 0}.uploaded-file a{overflow-wrap:anywhere}

#adminEditor .modal-header,#adminEditor .modal-actions{color:var(--text)}#adminEditor label,#adminEditor small{color:var(--text)}#adminEditor input::placeholder,#adminEditor textarea::placeholder{color:var(--text-light);opacity:1}
