/* Header Styling */
.site-header {
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 30px;
    margin: auto;
}

.left-content {
    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;
    height: auto;
}

.line-separator {
    height: 90px;
    width: 3px;
    background-color: #f26755; /* UF Bacher Orange */
    margin: 0 20px;
}

.graphic img {
    width: 150px;
    height: auto;
}

.header-title {
    font-size: 48px;
    margin: 0;
    color: #f26755;
    text-align: right;
}

/* Welcome Text */
.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
    background-color: #eaf0fa; /* Light blue background */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-title {
    text-align: center;
    color: #4254a4; /* Deep blue */
    margin-bottom: 20px;
}

.welcome-text p {
    margin: 15px 0;
    line-height: 1.6; /* Improve readability */
    font-size: 16px;
    color: #333;
}

.citation {
    font-size: 14px; /* Smaller size for citations */
    color: #555;
    font-style: italic;
}

.welcome-text a {
    color: #4254a4; /* Link color consistent with your branding */
    text-decoration: none;
}

.welcome-text a:hover {
    text-decoration: underline;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .line-separator {
        display: none; /* Hide separator on smaller screens */
    }

    .header-title {
        text-align: center;
        margin-top: 10px;
    }
}

/* Form Container */
.upload-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(242, 103, 85, 0.1); /* Light orange shading */
    border: 1px solid #f26755;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

/* Upload Form Layout */
#upload_form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Proper spacing between fields */
    align-items: stretch; /* Consistent alignment */
}

#upload_form label {
    font-weight: bold;
}

#upload_form input, 
#upload_form select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #ffffff; /* White background */
    color: #333;
}

/* Form Field Hover and Focus */
#upload_form input:hover, 
#upload_form select:hover {
    border-color: #4254a4; /* Blue hover effect */
}

#upload_form input:focus,
#upload_form select:focus {
    outline: none;
    border-color: #4254a4;
    box-shadow: 0 0 5px rgba(66, 84, 164, 0.5); /* Subtle glow */
}

/* File Upload Container */
.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between the button and file name */
}

/* Hide native file input */
#datafile {
    display: none;
}

/* Style the custom "Choose File" button */
label[for="datafile"] {
    display: inline-block;
    font-size: 16px;
    padding: 10px 20px;
    color: white;
    background-color: #4254a4; /* Blue color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

/* Hover effect for the custom button */
label[for="datafile"]:hover {
    background-color: #0033cc; /* Darker blue on hover */
}

.custom-file-button {
    display: inline-block;
    font-size: 16px;
    font-weight: normal; /* Make the text bold */
    padding: 10px 20px;
    color: white;
    background-color: #4254a4; /* Blue color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

/* Style for the file name display */
#file-name-display {
    font-size: 16px;
    color: black;
    vertical-align: middle;
    text-align: left;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Handle long filenames gracefully */
    max-width: 200px; /* Limit the width of the file name display */
}

/* Style for the Upload Dataset button */
#upload-btn {
    background-color: #4254a4;
    color: white; /* Ensure the text is white */
    font-size: 18px;
    font-weight: bold; /* Make the text bold */
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Full width */
    text-align: center;
}

#upload-btn:hover {
    background-color: #0033cc;
    color: white; /* Ensure text remains white on hover */
}

#upload-btn:disabled {
    background-color: #4254a4;
    color: white;
    cursor: not-allowed;
    opacity: 1;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
}

.modal-content {
    background-color: white;
    margin: 15% auto; /* Center vertically */
    padding: 30px;
    width: 50%; /* Width of the modal */
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center; /* Center content */
}

.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: black;
}

.close-btn:hover {
    color: #e74c3c; 
}

#ok-btn {
    margin-top: 10px;
    padding: 10px 30px;
    background-color: #4254a4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    min-width: 120px;
    display: inline-block;
}

#ok-btn:hover {
    background-color: #0033cc; 
}

#file-name, #file-size {
    font-size: 16px; 
    margin: 10px 0; 
    color: #555;
}

/* Select Box Adjustments */
#upload_form select {
    box-shadow: none; /* Remove rectangle outline */
}

#upload_form select:focus {
    box-shadow: 0 0 5px rgba(66, 84, 164, 0.5); /* Optional focus style */
}

.input-error {
    border: 2px solid red;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.input-error:focus {
    border: 2px solid red;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}