* {
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: "Open Sans", sans-serif;
    color: #102474;
}

.container_b {
    width: 360px;
    margin: auto;
    background-color: white;
    border-radius: 3px;
    margin-bottom: 30px;
}

.login-box {
    width: 360px;
    margin: auto;
    border-radius: 3px;
    background-color: white;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    padding-top: 15px;
    font-weight: bolder;
}

h3 {
    padding-top: 15px;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

h4 {
    text-align: center;
}

form {
    border-radius: 20px;
    background-color: #dfe6ff;
    padding: 2em;
}

/* Modern Upload Interface Styles */
.upload-container,
.multi-upload-container {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.upload-container.dragover,
.multi-upload-container.dragover {
    border-color: #007bff;
    background: #e3f2fd;
}

.upload-container.uploading,
.multi-upload-container.uploading {
    border-color: #28a745;
    background: #e8f5e9;
}

.upload-container.drag-over,
.multi-upload-container.drag-over {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-area {
    cursor: pointer;
    padding: 1rem;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: #6c757d;
}

.file-input {
    display: none;
}

.progress-container {
    margin-top: 1rem;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: #495057;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.upload-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: none;
}

.upload-status.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.upload-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.upload-status.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.file-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* .file-info:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
} */

.file-info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.file-info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* .file-info-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
} */

.file-info-item span:first-child {
    font-weight: bold;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.file-info-item span:last-child {
    font-weight: 500;
    color: #212529;
}

/* Multi-File Upload Styles */
.selected-files-list {
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    /* max-height: 300px; */
    /* overflow-y: auto; */
}

.selected-file-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    transition: all 0.2s ease;
}

.selected-file-item:last-child {
    border-bottom: none;
}

.selected-file-item:hover {
    background: #f1f3f4;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.file-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
    margin-right: 1rem;
    flex: 1;
    word-break: break-word;
}

.file-size {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}

.file-actions {
    display: flex;
    align-items: center;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

.file-progress {
    margin-top: 0.5rem;
}

.file-progress .progress-bar {
    height: 6px;
    margin-bottom: 0.25rem;
}

.file-progress .progress-text {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

.selected-files-list:empty::before {
    content: "No files selected";
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

.file-info-item span:last-child {
    font-size: 0.95rem;
    text-align: right;
    max-width: 100%;
    word-break: break-word;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    display: none;
}

.btn-cancel:hover {
    background-color: #c82333;
}

.upload-animation {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.chunk-progress {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

form label {
    display: flex;
    margin-top: 20px;
    font-size: 18px;
}

#update_status_container {
    background-color: #e8e8e8;
    padding: 20px;
}

#update_status_form {
    padding-top: 15px;
}

input,
textarea,
select {
    width: 100%;
    padding: 7px;
    border: none;
    border: 1px solid gray;
    border-radius: 6px;
    outline: none;
    background-color: white;
}

input[type="button"], input[type="submit"] {
    width: 100%;
    height: 35px;
    margin-top: 20px;
    border: none;
    background-color: #d8448c;
    color: white;
    font-size: 18px;
    transition-duration: 500ms;
    transition-property: background-color;
    cursor: pointer;
}

input[type="button"]:hover, input[type="submit"]:hover {
    background-color: #d986af;
}

p {
    text-align: center;
    padding-top: 20px;
    font-size: 15px;
}

.container {
    margin: 150px auto;
    margin-top: 0px;
    max-width: 960px;
}

a {

    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

table,
th,
td {
    border: 1px solid #bbb;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

th {
    background-color: #ddd;
}

th,
td {
    padding: 5px;
}

button {
    cursor: pointer;
}

/*Initial style sort*/
.tickets_table th.sorterHeader {
    cursor: pointer;
}

.tickets_table th.sorterHeader:after {
    content: " \f0dc";
    font-family: "FontAwesome";
}

/*Style sort desc*/
.tickets_table th.sortingDesc:after {
    content: " \f0dd";
    font-family: "FontAwesome";
}

/*Style sort asc*/
.tickets_table th.sortingAsc:after {
    content: " \f0de";
    font-family: "FontAwesome";
}

/*Style disabled*/
.tickets_table th.disableSort {}

#for_numrows {
    padding: 10px;
    float: left;
}

#for_filter_by {
    padding: 10px;
    float: right;
}

#pagesControllers {
    display: block;
    text-align: center;
}

form > input {
    margin-top: 6px;
}

.formlabel {
    font-weight: 600;
}

#signout {
    padding: 0.5em 1em;
    color: white;
    margin: 0 auto;
    display: block;
    background-color: orangered;
    width: 346px;
    border-radius: 10px;
    transition-duration: 500ms;
    transition-property: background-color;
}

#signout:hover {
    background-color: orange;
}

.mainNav {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mainNav a {
    text-transform: uppercase;
    font-weight: 800;
    padding: 6px 12px;
    color: white;
    background-color: #102474;
    border-radius: 5px;
    transition-duration: 500ms;
    transition-property: background-color;
}

.mainNav a:hover {
    background-color: #5166be;
    cursor: pointer;
}

.mainNav a.active {
    background-color: #721c24;
}

.hint {
    margin-top: 0;
    text-align: center;
    font-size: 14px;
    font-style: italic;
}

#runButton {
    width: 100%;
    background-color: #102474;
    transition-duration: 500ms;
    transition-property: background-color;
}

#runButton:hover {
    background-color: #5166be;
    cursor: pointer;
}