/* ============================================
   3PLUSWARE File Upload + Screenshot v1.1.0
   ============================================ */

/* Upload Buttons Container */
.upload-btns {
    flex-shrink: 0;
    margin-right: 8px;
}

/* Upload Button */
.upload-btn {
    flex-shrink: 0;
}
.upload-btn:hover {
    transform: scale(1.1);
}

/* File Preview Container */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #1e293b;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #334155;
}
.file-preview.hidden {
    display: none;
}

/* File Item */
.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #334155;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 280px;
    position: relative;
}

/* Screenshot Badge */
.file-item.screenshot::before {
    content: '📷';
    position: absolute;
    top: -6px;
    left: -6px;
    background: #10b981;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* File Thumbnail (for images) */
.file-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

/* File Icon (for non-images) */
.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0ea5e9;
    border-radius: 6px;
    font-size: 20px;
}

/* File Name */
.file-name {
    flex: 1;
    font-size: 0.85rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* File Size */
.file-size {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Remove Button */
.file-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.file-remove:hover {
    color: #dc2626;
}

/* Drag & Drop Overlay */
#chat.drag-over {
    border: 2px dashed #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

/* Image in Chat Message */
.msg-content img.uploaded-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
}
.msg-content img.uploaded-image:hover {
    opacity: 0.9;
}

/* Screenshot indicator */
.screenshot-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}
