/* ucm-style.css */

#ucm-search-container {
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
}

#ucm-search-input {
    width: 70%;
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#ucm-search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#ucm-search-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#ucm-search-results {
    margin-top: 20px;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.ucm-result-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    text-align: left;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.ucm-result-item:hover {
    background-color: #f1f1f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ucm-result-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.ucm-upload-button {
    padding: 7px 15px;
    font-size: 14px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.ucm-upload-button:hover {
    background-color: #005f8a;
}

.ucm-images-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.ucm-image-wrapper {
    display: inline-block;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.ucm-image-wrapper:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ucm-image {
    display: block;
    width: 100px;
    height: auto;
    border: 0; /* Remove default image border */
}

.ucm-delete-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    color: #ff0000;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 2px 6px;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ucm-delete-icon:hover {
    background-color: #ffcccc;
    color: #b30000;
}
