/*body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    gap: 20px;
}*/

.upload-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.fileInput {
    display: none; /* Hide the original file input */
}

.fileInputLabel {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fileInputLabel:hover {
    background-color: #0056b3;
}

/*.filePreviewContainer {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}*/

/*.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 100px;
    max-height: 150px;
}

.preview-item img {
    max-width: 100%;
    max-height: 100px;
    margin-top: 10px;
}*/

.preview-item .filename {
    word-wrap: break-word;
    text-align: center;
    margin-top: 5px;
}

/*.delete-button {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    font-size: 18px !important;
    line-height: 12px !important;
    padding-top: 0px !important;
    border-radius: 50% !important;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: #eee !important;
    padding: 2px;
    border: 2px solid #e00;
    color: #e00 !important;
}*/

.progressBarContainer {
    margin-top: 15px;
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.progressBar {
    height: 100%;
    background: #4caf50;
    width: 0;
}

.upload-message {
    margin-top: 10px;
    font-size: 14px;
    color: green;
}

.delete-the-uploading{
    display: inline-block;
    border-radius: 5px;
    background: #eee !important;
    padding: 2px;
    border: 2px solid #e00;
    color: #e00 !important;
    margin-left: 5px;
    line-height: 14px;
}

.filePreviewContainer {
    display: grid;
    /*grid-template-columns: repeat(2, 1fr); /* Two columns */*/
    grid-template-columns: 1fr; 
    gap: 10px; /* Space between items */
    max-height: 400px; /* Adjust this value as needed */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px;
    border: 1px solid #ddd; /* Optional border */
    border-radius: 4px; /* Optional rounded corners */
}

.filePreviewContainer:empty {
    display: none;
}

.preview-item {
    position: relative;
    border: 1px solid #eee;
    /*padding: 8px;*/
    border-radius: 4px;
    display: flex;
    /*flex-direction: column;*/
    align-items: center;
    /*justify-content: ;*/
    /*min-height: 80px;  Minimum height for each item */
}

.preview-item img {
    max-width: 100%;
    max-height: 50px; /* Limit image height */
    object-fit: contain;
}

.filename {
    word-break: break-all; /* Handle long filenames */
    text-align: left;
    padding: 5px;
}

.delete-button {
    /*position: absolute;*/
/*    top: 5px;
    right: 5px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;*/
}

.delete-button {
    margin-left: 10px; /* Space between filename and button */
    background: #fff;
    color: red;
    border: dashed 1px;
/*    background: #ff4444;
    color: white;
    border: none;*/
    /*border-radius: 50% !important;*/
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0; /* Prevent button from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    margin-left: 0.5rem !important;
    border-radius: 5px !important;
}

.view-only-content-wrapper ul {
    max-height: 20rem; /* Adjust this value as needed */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px !important;
    border: 1px solid #ddd;
    border-radius: 5px !important;
}

/* Add to your stylesheet */
.progressBar {
    transition: width 0.3s ease;
}

.preview-item {
    transition: all 0.3s ease;
}

.preview-item.uploading {
    opacity: 0.7;
    border-left: 3px solid #4CAF50;
}

.preview-item.uploaded {
    border-left: 3px solid #2196F3;
}

.preview-item.failed {
    border-left: 3px solid #F44336;
}