.sidebar-dependent, .client-filter {
    margin-right: 40px !important;
}

#helper-button {
    position: fixed;
    top: 10px;
    right: 0;
    width: 50px;
    height: 50px;
    background: #59677e;
    color: white;
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.3s ease;
}

#helper-button i {
    text-align: center;
    justify-self: center;
    align-self: center;
    font-size: 20px;
}

/* Popup */
#helper-popup {
    position: fixed;
    top: 10px;
    right: 55px;
    width: 340px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    display: flex;
    flex-direction: column;

    opacity: 0;
    pointer-events: none;

    /* → Start from top-right */
    transform-origin: top right;
    transform: scale(0.2) translate(20px, -20px);

    /* → Clip-path start also from top-right */
    clip-path: circle(0% at 100% 0%);

    transition: opacity 0.45s ease,
    transform 0.55s cubic-bezier(.17, .67, .3, 1.45),
    clip-path 0.55s cubic-bezier(.17, .67, .3, 1.45);
}

#helper-popup.visible {
    opacity: 1;
    pointer-events: auto;

    transform: scale(1) translate(0, 0);

    /* Expand circle to cover celý popup */
    clip-path: circle(150% at 100% 0%);
}

.helper-header {
    padding: 10px;
    background: #f5cf2c;
    color: #2e2e2e;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.helper-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.helper-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.helper-input {
    display: flex;
    padding: 8px;
    border-top: 1px solid #eee;
}

.helper-input input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.helper-input button {
    margin-left: 6px;
    padding: 7px 13px;
    border: none;
    background: #f5cf2c;
    border-radius: 5px;
    cursor: pointer;
}

.helper-message.assistant .typing-dots {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #888;
    display: inline-block;
    animation: typing-bounce 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}
