/* Additional custom styles for the image chart manager */

.upload-area.processing {
    pointer-events: none;
    opacity: 0.7;
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.file-preview-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-preview-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.file-preview-details {
    flex: 1;
}

.file-preview-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.file-preview-size {
    font-size: 12px;
    color: #666;
}

.description-input {
    margin-top: 8px;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.description-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.remove-file-btn:hover {
    background: #dc2626;
}

/* Table responsive improvements */
@media (max-width: 768px) {
    .excel-table {
        font-size: 14px;
    }
    
    .image-cell {
        width: 100px;
    }
    
    .image-cell img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .description-cell {
        min-width: 200px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message.info {
    background-color: #cce7ff;
    border: 1px solid #b3d7ff;
    color: #004085;
}