/* Pływający przycisk */
#ef-side-trigger {
    position: fixed;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    background: #4e7c0e;
    color: white !important;
    padding: 20px 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    z-index: 2147483647;
    border-radius: 8px 0 0 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-trigger-icon {
    display: none;
    font-size: 20px;
}

#ef-side-trigger.open {
    right: 320px;
    background: #212121;
}

#ef-side-trigger:hover {
    padding-right: 15px;
    background: #212121;
}

#ef-side-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 10000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

#ef-side-panel.open {
    right: 0;
}

#ef-side-panel .ef-header {
    background: #212121;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ef-side-panel .ef-header h3 {
    margin: 0;
    font-size: 15px;
    color: white;
    text-transform: uppercase;
}

#ef-side-panel .ef-close {
    cursor: pointer;
    font-size: 24px;
}

#ef-side-panel .ef-content {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Lista wydarzeń */
.ef-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

.ef-item:hover {
    transform: translateX(-5px);
    border-color: #4e7c0e;
}

.ef-date-info {
    margin-bottom: 8px;
}

.ef-date-text {
    background: #4e7c0e;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

.ef-info {
    display: flex;
    flex-direction: column;
}

.ef-name {
    font-weight: 700;
    color: #212121;
    font-size: 14px;
    margin-bottom: 4px;
}

.ef-place {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

#ef-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(3px);
}

#ef-overlay.visible {
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #ef-side-trigger {
        writing-mode: horizontal-tb;
        padding: 12px;
        width: 50px;
        height: 50px;
    }

    .ef-trigger-text {
        display: none;
    }

    .ef-trigger-icon {
        display: block;
    }

    #ef-side-panel {
        width: 85%;
        right: -90%;
    }

    #ef-side-trigger.open {
        right: 85%;
    }
}