.modal {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 200%;
    height: 200%;
    background-color: rgba(0, 0, 0, 0.4);
    font-family: 'Arial', sans-serif;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 800px;
    border: 1px solid #888;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    flex-grow: 1;
    text-align: center;
}

#model-close-button {
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #007BFF;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 5px;
    position: absolute;
    right: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#model-close-button:hover {
    background-color: #ffffff;
    color: #007BFF;
    border-color: #007BFF;
    transform: scale(1.1);
}

.modal-body {
    padding: 10px 0;
    color: #333;
    max-height: 400px;
    overflow-y: auto;
}

.file-list {
    width: 100%;
    text-align: left;
}

.file-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #007BFF;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.Blue-Boarder-Div {
    border: 2px solid #007BFF;
    border-radius: 5px;
    margin-bottom: 10px;
}

.file-item-row .file-name {
    flex: 1;
}

.loading-icon, .download-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
    border: none; /* Ensure no border is applied */
}

.loading-icon {
    background-image: url('../Images/UI Icons/Loading.gif');
}

.download-icon {
    background-image: url('../Images/UI Icons/Download.svg');
    cursor: pointer;
    background-color: transparent;
}

.download-icon:hover {
    transform: scale(1.2);
    filter: brightness(0) saturate(100%) invert(35%) sepia(100%) saturate(7425%) hue-rotate(187deg) brightness(101%) contrast(102%);
}

.log {
    background-color: #e1e1e1;
    padding: 5px;
    display: block;
    width: 98.6%;
    border: 1px solid #007BFF;
    border-radius: 5px;
    color: #333;
    transition: max-height 0.3s ease;
}

a.download-link {
    display: block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    border: 2px solid transparent;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

a.download-link:hover {
    background-color: #ffffff;
    color: #007BFF;
    transform: scaleX(1.01) scaleY(1.1);
    border-color: #007BFF;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .file-item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    #model-close-button {
        font-size: 14px;
        padding: 2px 6px;
    }

    .download-icon, .loading-icon {
        width: 18px;
        height: 18px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .file-item-row {
        padding: 8px;
    }

    .log {
        width: 100%;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    #model-close-button {
        font-size: 12px;
        padding: 1px 4px;
    }

    .download-icon, .loading-icon {
        width: 16px;
        height: 16px;
    }
}
