
.uploadedFiles {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    border-radius: 10px;
}
.uploadedFiles td {
    padding: 0;
}
#uploaded-files-container td {
    justify-content: space-between;
    align-items: center;
}
#flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    padding: 10px 20px;
    border-radius: 5px;
}
.delete-file, .remove-file {
    text-align: center;
    border-radius: 0 !important;
    height: 40px;
    width: 40px;
}
.file-edit {
    border-radius: 0 !important;
    height: 40px;
    display: flex;
    justify-content:start;
}

a {
    display: inline-block;
}

.file-edit:hover {
    background-color: #e3f2fd; /* Light blue hover */
    border-color: #42a5f5;
}

.close_btn {
    position: absolute;
    color: white;
    right: 10px;
    top: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px; /* Ensure visibility */
    border: none;
}

img.preview_image {
    max-height: 40px !important;
    display: block;
    margin: auto;
    cursor: pointer;
    border-radius: 5px;
}

canvas.preview-pdf {
    max-height: 40px;
    display: block;
    margin: auto;
    cursor: pointer;
    border: 1px solid #ddd;
}

#fileInput {
    cursor: pointer;
    /* color: transparent; Hides the "No file chosen" text */
}

#fileInput::file-selector-button {
    display: none; /* Hides the default file input button */
}

#fileInput:focus {
    outline: none; /* Optional: Removes the focus outline */
}

.truncate-text {
    width: 300px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Modal Styles */
.modal2 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker background for better focus */
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Ensures spacing on smaller screens */
    box-sizing: border-box; /* Avoids overflow issues */
}

/* Central content styling */
.modal-content2 {
    max-width: 100%;
    max-height: 90%;
    border: 4px solid #fff; /* Add a clean border for clarity */
    border-radius: 10px; /* Soft rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Subtle shadow for depth */
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff5555; /* Softer red for better UI feel */
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .modal-content2 {
        max-width: 100%;
        max-height: 80%;
    }

    .close {
        font-size: 30px; /* Smaller close icon for mobile */
        top: 10px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .truncate-text {
        width: 100px;
        max-width: 100px;
    }
}
