#floatingBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    font-size: 2rem;
    font-weight: 300;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#floatingBtn:hover {
    transform: scale(1.1);
}

#floatingBtn:active {
    transform: scale(0.95);
}

/* Overlay with blur effect */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1098;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating Editor Container */
#floatingEditor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 24px;
    padding: 0;
    display: none;
    z-index: 1100;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Close Button */
#floatingEditor .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    color: var(--functional);
    background: var(--dark-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

#floatingEditor .close-btn:hover {
    color: #1e293b;
    background: var(--dark-background);
    transform: rotate(90deg);
}

/* Composer form enhancements */
.composer__form {
    background: transparent;
    border-radius: 24px;
}

.composer__header {
    display: flex;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--background);
    background: var(--background);
    gap: 10px;
    align-items: center;
}

.composer__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--functional);
    letter-spacing: -0.5px;
}

.user-input {
    padding: 20px 28px 16px;
    background: transparent;
}

.content-wrapper {
    padding-top: 0;
}

#floatingEditor .avatar {
    width: 42px;
    height: 42px;
    border: 1px solid var(--dark-background);
}

#floatingEditor .composer__textarea {
    min-height: 120px;
    max-height: 300px;
    font-size: 15px;
    line-height: 1.6;
    border-radius: 10px;
    background: var(--background);
    transition: all 0.2s ease;
    padding-left: 16px;
    color: white;
    width: 80%;
}

#floatingEditor .composer__textarea:focus {
    outline: none;
    border-color: var(--functional);
}

#floatingEditor .composer__textarea::placeholder {
    color: var(--functional);
}

.composer__image-preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.composer__actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 28px;
    background: var(--background);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.composer__inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.actionBase {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--background);
    color: var(--functional);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.actionBase:hover {
    color: var(--functional);
    transform: translateY(-2px);
}

.image-upload {
    position: relative;
}

.composer__submit {
    background: var(--functional);
    color: white;
    border: none;
    height: 40px;
    display: inline;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.composer__submit:hover {
    transform: translateY(-2px);
}

.composer__submit:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #floatingEditor {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 24px 24px 0 0;
    }

    #overlay {
        backdrop-filter: blur(4px);
    }

    #floatingEditor .close-btn {
        top: 16px;
        right: 16px;
    }

    .composer__header {
        padding: 20px 20px 12px;
    }

    .composer__header h3 {
        font-size: 18px;
    }

    .user-input {
        padding: 16px 20px 12px;
    }

    .composer__actions {
        padding: 12px 20px 20px;
    }
}