.file-selector-wrapper {
    margin: 10px 0;
}

.file-browser-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.file-browser {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.file-item {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 5px;
    text-align: center;
}

.file-item:hover {
    border-color: #007bff;
}

.file-item img {
    max-width: 100%;
    height: auto;
}

.preview-container {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

.preview-container img {
    max-width: 200px;
    max-height: 200px;
}

.remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

.select-file-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.select-file-btn:hover {
    background: #0056b3;
}