/* Image Upload Styles for Grok Chat */

/* Image Preview Area */
.image-preview-area {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 4px;
    margin-bottom: 8px;
    margin-right: 13px;
    padding: 8px;
}

.image-preview-header {
    color: #00ff00;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-preview-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px;
    max-width: 300px;
}

.image-preview-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
    border: 1px solid #00ff00;
}

.image-preview-info {
    flex: 1;
    min-width: 0;
}

.image-preview-name {
    color: #00ff00;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-preview-size {
    color: #888;
    font-size: 10px;
    font-family: 'Courier New', monospace;
}

.image-preview-compressed {
    color: #ffaa00;
    font-size: 9px;
    font-family: 'Courier New', monospace;
    font-style: italic;
}

.image-preview-remove {
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 2px;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-remove:hover {
    background: #ff3333;
}

/* Message Images */
.image-line {
    margin: 4px 0;
}

.message-image {
    display: inline-block;
    margin-left: 8px;
    max-width: 400px;
}

.uploaded-image {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    display: block;
    margin-bottom: 4px;
}

.image-info {
    color: #888;
    font-size: 10px;
    font-family: 'Courier New', monospace;
}

/* Action Button Styling */
.image-button {
    background: rgba(0, 255, 0, 0.1) !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
}

.image-button:hover {
    background: rgba(0, 255, 0, 0.2) !important;
}

.image-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Paste Notification */
.paste-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 0, 0.9);
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    z-index: 1000;
    animation: slideInFade 0.3s ease-out;
    border: 1px solid #00ff00;
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3);
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .image-preview-item {
        max-width: 100%;
    }
    
    .uploaded-image {
        max-height: 200px;
    }
    
    .message-image {
        max-width: 100%;
    }
    
    .paste-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}