/* Reply Popup Styles *//* Reply Popup Styles */
.reply-popup {
    align-items: flex-end;
    justify-content: center;
}

.reply-popup-container {/* Let inner content handle scroll if needed */
    position: fixed;
    bottom: 20%;
    display: flex;
    flex-direction: column;
    /* Let inner content handle scroll if needed */
    height: auto !important;
    border: var(--border-style);
    background-color: #161616;
    width: 500px;
    max-width: 95vw;
    border-radius: 14px;
    padding: 0;
    z-index: 1100;
    max-height: 75vh;
    overflow: visible;
    will-change: transform;
    transition: transform 0.15s ease;
}

.reply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    padding: 7px 0;
}

.form-group label {
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    padding: 7px 0;
}

.reply-popup-container .reply-textarea {
    resize: none;
    overflow: hidden;
}

.reply-textarea {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    color: var(--primary);
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.reply-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

.reply-textarea::placeholder {
    color: var(--primary);
    opacity: 0.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}/* Animations */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}/* Mobile Responsive */

/* Mobile Responsive */
@media (max-width: 768px) {
    .reply-popup-container {
        width: 95%;
        margin: 20px;
    }

    .reply-popup-header {
        padding: 15px 20px;
    }

    .reply-popup-content {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}/* Inline Reply Image Preview */

/* Inline Reply Image Preview */
.reply-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.reply-image-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.reply-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reply-image-preview-item .remove-reply-image {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.composer__textarea_edit {
    font-size: 14px;
    min-height: 1.6em;
    background: transparent;
    transition: all 0.2s ease;
    color: white;
    width: 100%;
    display: flex;
    box-sizing: border-box;
    gap: 12px;
    line-height: normal;
    resize: none;
    overflow: hidden;
    height: auto;
    max-height: none;
    font-family: inherit;
}/* Inline Editor Styles (Cleaned up from JS inline styles) */

/* Inline Editor Styles (Cleaned up from JS inline styles) */
.inline-edit-images {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.inline-edit-video {
    margin-top: 5px;
}

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

.remove-media-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    cursor: pointer;
}

.image-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
}

.image-preview-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.video-preview-container {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}
