/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Headers */
header {
    background-color: #007bff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    text-decoration: none;
    margin: 0 10px;
    color: #fff;
}

.nav-button {
    text-decoration: none; /* Removes underline */
    display: inline-block;
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: #007bff;
    color: #fff;
    text-decoration: none; /* Ensures underline doesn't appear on hover */
}

/* Flash Messages */
.flash-messages .alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Forms */
.form-control {
    margin-bottom: 15px;
}

.form-control label {
    display: block;
    margin-bottom: 5px;
}

.form-control input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
}

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

/* Button Group to Align Buttons Side by Side */
.button-group {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: center; /* Center align buttons */
    margin-top: 20px;
}

.logout {
    text-decoration: none;
    color: #fff; /* Or another color that fits your theme */
}

.logout:hover {
    text-decoration: underline; /* Add underline on hover if desired */
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

/* Dropzone Custom Styles */
.dropzone {
    border: 2px dashed #007bff;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.dropzone .dz-preview {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropzone .dz-preview .dz-details {
    flex-grow: 1; /* Allow details to take up remaining space */
    text-align: left; /* Align filename to the left */
    margin-right: 10px; /* Margin to separate from other elements */
}

.dropzone .dz-preview .dz-filename {
    display: block; /* Ensure filename is visible */
    margin-bottom: 5px; /* Add some space below the filename */
}

.dropzone .dz-preview .dz-size {
    font-size: 14px; /* Smaller font size for the file size */
    color: #888; /* Light color for file size */
}

.dropzone .dz-progress {
    width: 100%; /* Full width for the progress bar */
    height: 15px; /* Bar height */
    background-color: #f4f4f4; /* Background for progress bar */
    border-radius: 5px; /* Rounded corners */
    overflow: hidden; /* Prevent overflow */
    margin-top: 5px; /* Space above progress bar */
    position: relative; /* Position relative to position absolute elements inside */
}

.dropzone .dz-progress .dz-upload {
    display: block;
    height: 100%; /* Fill height of the progress bar */
    background-color: #4caf50; /* Green color for the upload progress */
    width: 0; /* Start with 0 width and will be updated dynamically */
    transition: width 0.4s ease; /* Smooth transition for progress */
}

.dropzone .dz-preview .dz-remove {
    margin-left: 10px;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.dropzone .dz-preview .dz-remove:hover {
    text-decoration: underline; /* Underline on hover */
}

.dropzone .dz-preview .dz-success-mark, 
.dropzone .dz-preview .dz-error-mark {
    font-size: 20px; /* Make the checkmark and cross larger */
    margin-left: 10px; /* Space between marks and text */
}

.dz-success-mark, .dz-error-mark {
    display: inline-block;
    font-size: 20px;
    margin-left: 10px;
}

/* Ensure elements like "Remove file" and icons don't overlap */
.dropzone .dz-preview .dz-remove, 
.dropzone .dz-preview .dz-success-mark, 
.dropzone .dz-preview .dz-error-mark {
    display: inline-block;
    vertical-align: middle; /* Align elements vertically in the middle */
    margin: 0 5px; /* Margin for spacing */
}

/* Listbox container */
#filesContainer {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Listbox styles */
#mzmlFilesList {
    width: 100%;
    height: auto;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
    font-size: 14px;
    color: #333;
    overflow-y: auto;  /* Enable vertical scrolling */
    margin-bottom: 10px;
    max-height: 250px;  /* Set a maximum height */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;  /* Smooth transition on hover */
}

/* Hover effect for listbox options */
#mzmlFilesList option:hover {
    background-color: #007bff;
    color: #fff;
}

/* Delete button styles */
#deleteSelectedButton {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #e74c3c; /* Red background color */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover effect for delete button */
#deleteSelectedButton:hover {
    background-color: #c0392b;  /* Darker red on hover */
}

/* General button styles (e.g., "Start Processing", "View mzML Files") */
button {
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Button hover effect */
button:hover {
    transform: translateY(-1px);  /* Slight lift effect on hover */
}

/* Improved spacing for the file list and buttons */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    margin-bottom: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-item button {
    margin-left: 10px;
}


