/* Maintenance Attachments Dropzone Styles */
.dropzone.dz-clickable * {
    cursor: pointer;
}
#maintenance-attachments-dropzone {
    min-height: 150px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    background: white;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#maintenance-attachments-dropzone:hover {
    border-color: #666;
}

#maintenance-attachments-dropzone .dz-message {
    font-weight: 500;
    font-size: 16px;
    color: #666;
    margin: 2em 0;
}

#maintenance-attachments-dropzone .dz-preview {
    display: inline-block;
    vertical-align: top;
    margin: 16px;
    min-height: 100px;
}

#maintenance-attachments-dropzone .dz-preview .dz-image {
    border-radius: 4px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    position: relative;
    display: block;
    z-index: 10;
}

#maintenance-attachments-dropzone .dz-preview .dz-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#maintenance-attachments-dropzone .dz-preview .dz-details {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    font-size: 13px;
    min-width: 100%;
    max-width: 100%;
    padding: 2em 1em;
    text-align: center;
    color: rgba(0, 0, 0, 0.9);
    line-height: 150%;
}

#maintenance-attachments-dropzone .dz-preview .dz-details .dz-size {
    margin-bottom: 1em;
    font-size: 16px;
}

#maintenance-attachments-dropzone .dz-preview .dz-details .dz-filename {
    white-space: nowrap;
}

#maintenance-attachments-dropzone .dz-preview .dz-details .dz-filename:hover span {
    border: 1px solid rgba(200, 200, 200, 0.8);
    background-color: rgba(255, 255, 255, 0.8);
}

#maintenance-attachments-dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
    overflow: hidden;
    text-overflow: ellipsis;
}

#maintenance-attachments-dropzone .dz-preview .dz-progress {
    pointer-events: none;
    position: absolute;
    height: 20px;
    left: 50%;
    top: 50%;
    margin-top: -10px;
    width: 80%;
    margin-left: -40%;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.9);
    -webkit-transform: scale(1);
    border-radius: 8px;
    overflow: hidden;
}

#maintenance-attachments-dropzone .dz-preview .dz-progress .dz-upload {
    background: #333;
    background: linear-gradient(to bottom, #666, #444);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    transition: width 300ms ease-in-out;
}

#maintenance-attachments-dropzone .dz-preview .dz-error-message {
    pointer-events: none;
    z-index: 1000;
    position: absolute;
    display: block;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    font-size: 13px;
    top: 130px;
    left: -10px;
    width: 140px;
    background: #be2626;
    background: linear-gradient(to bottom, #be2626, #a92222);
    padding: 0.5em 1.2em;
    color: white;
}

#maintenance-attachments-dropzone .dz-preview .dz-error-message:after {
    content: '';
    position: absolute;
    top: -6px;
    left: 64px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #be2626;
}

#maintenance-attachments-dropzone .dz-preview.dz-error .dz-error-message {
    display: block;
    opacity: 1;
}

#maintenance-attachments-dropzone .dz-preview .dz-remove {
    font-size: 14px;
    text-align: center;
    display: block;
    cursor: pointer;
    border: none;
    padding: 5px 0 0;
    color: #666;
    text-decoration: underline;
}

#maintenance-attachments-dropzone .dz-preview .dz-remove:hover {
    color: #333;
}
