/* Media Selector Styles */
.media-selector-body { padding: 20px; }
.media-item { cursor: pointer; margin-bottom: 15px; }
.media-item:hover .panel { border-color: #007bff !important; }
.filter-bar { margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 5px; }
.checkbox-group label { margin-right: 15px; }
.display-options { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: #fff; 
    border-top: 2px solid #007bff; 
    padding: 15px; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
.media-container { padding-bottom: 120px; }
.option-group { margin-bottom: 15px; }
.btn-insert { background: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; }
.btn-insert:hover { background: #0056b3; }
.selected-media { border: 3px solid #007bff !important; background: #e3f2fd; }

/* Media Grid Styles */
.media-panel {
    height: 250px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
}
.media-panel-heading {
    padding: 6px 10px;
    text-align: center;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.media-panel-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.media-panel-subtitle {
    margin: 0;
    font-size: 11px;
    color: #888;
}
.media-panel-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.media-panel-footer {
    padding: 8px;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

/* Additional Styles for Selector Panel */
.media-selector-panel {
    height: 200px;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}
.media-selector-heading {
    padding: 5px 10px;
    text-align: center;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-selector-title {
    margin: 0;
    font-size: 10px;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.media-selector-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Helper classes for flexbox layouts in filters */
.checkbox-group-flex {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.checkbox-group-flex label {
    font-weight: normal;
    margin: 0;
}
.filter-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.filter-subgroup {
    display: flex;
    align-items: center;
    gap: 10px;
}
.media-selector-footer {
    padding: 5px;
    text-align: center;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-selector-img {
    max-height: 100px;
    max-width: 100%;
}

/* Configuration CSS pour Dropzone */

.dropzone {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    left: 150px;
    margin: 0;
    min-height: 20px;
    padding: 0;
    width: 100%;
}


