#be-doc-repo {
    max-width: 800px;
    margin: 0 auto;
}

#be-select-files {
    margin-bottom: 10px;
    padding: 10px 20px 10px 20px;
}

.be-file-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.be-file-item.success .be-progress {
    background: #4caf50;
}

.be-file-item.error .be-progress {
    background: #f44336;
}

.be-progress-bar {
    width: 100px;
    height: 10px;
    background: #ddd;
    margin-left: 10px;
    overflow: hidden;
}

.be-progress {
    width: 0;
    height: 100%;
    background: #2196f3;
    transition: width 0.3s;
}

#be-doc-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.be-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
}

.be-doc-item {
    position: relative;
    width: 100px;
    text-align: center;
    cursor: pointer;
}

.be-doc-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.be-doc-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s;
}

.be-doc-item:hover .be-doc-icon {
    transform: scale(1.1);
}

.be-video .be-doc-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.be-doc-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.be-doc-rename {
    color: #2196f3;
    font-size: 16px;
    cursor: pointer;
    margin-right: 5px;
}

.be-doc-name {
    font-size: 12px;
    word-wrap: break-word;
}

.be-doc-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    color: red;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.be-rename-form {
    margin-top: 5px;
}

.be-rename-input {
    width: 80px;
    font-size: 12px;
    padding: 2px;
}

.be-rename-save {
    font-size: 12px;
    padding: 2px 5px;
    cursor: pointer;
}

.be-no-attachments {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

.be-error-msg {
    color: #f44336;
    font-size: 12px;
    margin-left: 10px;
}

.be-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.be-popup-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    position: relative;
}

.be-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.be-popup-file {
    text-align: center;
}

.be-popup-file img,
.be-popup-file video,
.be-popup-file audio {
    max-width: 100%;
    max-height: 100%;
}

.be-popup-file a {
    display: inline-block;
    margin-top: 10px;
    color: #2196f3;
    text-decoration: underline;
}

input[type="file"] {
    display: none; /* Hide the default file input */
}
