/* Custom Dropzone container styles */
.media-container {
    width: 100%;
    min-height: 150px;
    border: 2px dashed #ddd  !important;
    background-color: #f7f7f7;
    padding: 20px;
    margin: 20px auto;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

.dropzone .dz-preview.dz-image-preview, .dropzone .dz-preview.dz-file-preview  {
    width: 130px;
    min-width:130px;
    height: 140px;
    min-height: 140px;
    border-radius: 8px;
    background-color: #1e283d1a;
    text-align: center;
}


/* Styling the file preview element */
.dz-preview img {
    max-width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.dropzone .dz-preview.dz-complete .dz-progress {
    opacity: 0;
    transition: opacity 2s ease-in;
}

.dropzone .dz-preview.dz-processing .dz-progress {
    opacity: 0;
    transition: all 1s linear;
}

.dropzone .dz-preview .dz-progress {
    opacity: 1;
    z-index: 1000;
    pointer-events: none;
    position: absolute;
    height: 20px;
    top: 50%;
    margin-top: -10px;
    left: 50%;
    right: 15%;
    border: 3px solid #008c8c;
    background-color: #e0f7fa;
    border-radius: 10px;
    overflow: hidden;
}

/* Optional: You can style the dropzone hover state */
.media-container.dz-drag-hover {
    background-color: #e0f7fa;
    border-color: #008c8c;
}

.dz-remove {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 60px;
    height: 60px;
    padding: 16px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
    display: block;
    cursor: pointer;
}

.dz-remove i {
    font-size: 24px;
    line-height: 1;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.dz-preview:hover .dz-remove {
    opacity: 1; /* Fade in */
    transform: translate(-50%, -50%) scale(1); /* Scale up to full size */
}
.dz-button .icon-upload{
    font-size: 40px;
}
.dz-button .dragDropText {
    font-weight: bold;
}
.dz-button .btn-d-upload {
    display: inline-block;
    color: #05c3fb;
    border: 1px solid;
    font-weight: bold;
    padding: 10px;
    margin-top: 5px;
    cursor: pointer;
}

.dz-button .custom-text {
   font-size: 12px;
   margin-top: 10px;
}

.dz-button .wrap-btn-d-upload{
    color:#424242;
 }
.dz-button .max-file-info {
    font-size: 13px;
    border-bottom: 1px solid #d4d4d4;
    padding: 5px;
}
.dz-button .or-upload {
    padding: 5px;
}
.dropzone .dz-default.dz-message {
    margin: 1em 0;
}
.dropzone.media-container.dz-started .dz-message{
    display: block;
}
#gallery img {
    object-fit: cover;
}
.video-thumbnail-container {
    position: relative;
}

.video-thumbnail-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.video-thumbnail {
    display: block;
    width: 100%;
    height: auto;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 14px;
}

.play-icon:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
    transition: 0.3s ease;
}
/* When Dropzone message is hidden, make images bigger */
.media-container.files-uploaded .dz-preview.dz-image-preview, 
.media-container.files-uploaded .dz-preview.dz-file-preview {
    width: 250px;
    min-width: 250px;
    height: 250px;
    min-height: 250px;
}


@media (max-width: 1023px) {
    #navbarDropdownMenuAvatar .avatar-name,#navbarDropdownMenuAvatar::after{
        display: none;
    }
}