body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.panel {
    flex: 1;
    margin: 0 20px;
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.job-list, .unit-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.job-list li, .unit-list li {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-list li.active .job-controls, .unit-list li.active .unit-controls {
    display: block;
}

.job-controls, .unit-controls {
    display: none;
    align-items: center;
    margin-left: 10px;
}

.add-unit-form {
    display: flex;
    margin-top: 10px;
}

.add-unit-form input {
    margin-right: 5px;
}

.drop-zone {
    width: 80%; /* Reduce width */
    height: 200px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ccc;
    margin: 20px auto;
    opacity: 1; /* Ensure full opacity */
}

.drop-zone.dragover {
    border-color: #333;
    color: #333;
}

.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    margin: 5px 0;
    opacity: 1; /* Ensure full opacity */
}

.btn {
    width: auto;
    margin: 5px;
}

input[type="text"], input[type="password"], input[type="file"], input[type="submit"], button {
    display: block;
    width: 80%; /* Centered elements */
    margin: 0 auto 10px;
}

#uploadForm, #fileInput {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Specific styling for the manage_files page */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x4 grid */
    grid-template-rows: repeat(4, auto);
    grid-gap: 20px;
    justify-content: center; /* Centering the grid */
    margin-top: 20px; /* Adding margin to separate from title */
}

.grid-item {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 400px; /* Increased width */
    height: 300px; /* Increased height */
    opacity: 1; /* Ensure full opacity */
}

.delete-button {
    background: none;
    border: 1px solid red;
    color: red;
    font-size: 12px;
    cursor: pointer;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
    padding: 2px 5px;
    width: 20px;
    opacity: 1; /* Ensure full opacity */
}

.back-button {
    display: block;
    margin: 20px auto;
    padding: 10px 50px; /* Adjusting padding for a long horizontal button */
    background-color: green;
    color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    width: auto;
    height: 37px; /* Decreased height by 70% */
    opacity: 1; /* Ensure full opacity */
}
