/* === Image Preview Styles === */
.image-preview-container {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
    background: #f7f5f0;
    border: 2px solid #2c2c2c;
    position: relative;
}

.image-preview {
    position: relative;
    display: flex;
    flex-direction: column;
}

.preview-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #2c2c2c;
}

.preview-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview:hover .preview-overlay {
    opacity: 1;
}

.remove-preview-btn {
    background: rgba(44, 44, 44, 0.9);
    border: 2px solid #d4a574;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #f7f5f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.remove-preview-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.remove-preview-btn:hover {
    background: #d4a574;
    color: #2c2c2c;
    transform: scale(1.1);
    border-color: #2c2c2c;
}

.remove-preview-btn:active {
    transform: scale(0.95);
}

.preview-info {
    padding: 15px 20px;
    background: #f7f5f0;
    position: relative;
}

.preview-info::before {
    content: '◆';
    position: absolute;
    top: -8px;
    left: 20px;
    background: #f7f5f0;
    color: #d4a574;
    padding: 0 8px;
    font-size: 14px;
}

.file-name {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 600;
    word-break: break-all;
}

.preview-error {
    margin-top: 16px;
    padding: 15px 20px;
    background: #f7f5f0;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    position: relative;
}

.preview-error::before {
    content: '◆';
    position: absolute;
    top: -8px;
    left: 20px;
    background: #f7f5f0;
    color: #e74c3c;
    padding: 0 8px;
    font-size: 14px;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .remove-preview-btn {
        background: rgba(44, 44, 44, 0.95);
        width: 36px;
        height: 36px;
    }
    
    .remove-preview-btn svg {
        width: 18px;
        height: 18px;
    }
}