/* style.css */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #eaeaea;
    color: #333;
}

header {
    background-color: #6c7ae0;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
}

nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #6c7ae0;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: #fff;
    background-color: #5a68d1;
    transform: scale(1.05);
}

nav ul li form input {
    display: none;
}

nav ul li form label {
    text-decoration: none;
    color: #6c7ae0;
    font-weight: bold !important;
    transition: color 0.3s, transform 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

nav ul li form label:hover {
    color: #fff;
    background-color: #5a68d1;
    transform: scale(1.05);
}

nav ul li.active>a {
    color: #fff;
    background-color: #5a68d1;
    transform: scale(1.05);
}

main {
    padding: 20px;
    flex: 1;
    background-color: #f9f9f9;
}

footer {
    background-color: #6c7ae0;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
}

.project-container {
    position: relative;
    width: fit-content;
    min-width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.project-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.custom-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #6c7ae0;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
}

.custom-button:disabled,
.custom-button.disabled {
    background-color: grey;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.custom-button:hover:not(:disabled) {
    background-color: #5a68d1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.custom-button:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#folderInputDevicePage {
    display: none;
}

#IdTableInput {
    display: none;
}

#status {
    text-align: center;
    margin-top: 20px;
    color: #555;
}

#downloadArea {
    margin-top: 20px;
    text-align: center;
}

.remove-button {
    margin-left: 10px;
    background-color: transparent;
    color: red;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.remove-button.disabled {
    color: grey;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

#compiledFileList {
    padding: 0;
    margin: 0;
}

#email-container {
    text-align: center;
    margin: 10px;
}

#email-container2 {
    text-align: center;
    margin: 10px;
}

input[type="email"] {
    width: 40;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 10px;
}

input[type="email"]:focus {
    outline: none;
    border-color: #6c7ae0;
    box-shadow: 0 0 5px rgba(108, 122, 224, 0.5);
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.option-row label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.option-row select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
}

.option-row select:focus {
    outline: none;
    border-color: #6c7ae0;
    box-shadow: 0 0 5px rgba(108, 122, 224, 0.5);
}

.remove-button {
    margin-left: 10px;
    background-color: transparent;
    color: red;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
}

.hidden-file-input {
    display: none;
}

.file-input-container {
    margin-top: 20px;
}

.info-box {
    height: 40px;
    overflow-y: auto;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff9d9;
    border-left: 6px solid #ffd966;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.statusTable table {
    margin: 0 auto;
    border-collapse: collapse;
    width: auto;
}

.statusTable table th,
.statusTable table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

.statusTable table thead th {
    position: sticky;
    top: 70px;
    z-index: 50;
    background-color: #f9f9f9;
}

.cell-true {
    background-color: #d1f5d1;
}

.cell-false {
    background-color: #f5d1d1;
}

.start-process-button {
    /* float: right; */
    background-color: red;
    margin: 20px;
}

input[type="checkbox"].disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.custom-label {
    font-weight: bold;
    margin-bottom: 5px;
}

#emailInput2 {
    width: 250px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 10px;
}

#emailInput2:focus {
    outline: none;
    border-color: #6c7ae0;
    box-shadow: 0 0 5px rgba(108, 122, 224, 0.5);
}

.email-and-button-row {
    margin-top: 10px;
}

.db-management-container {
    margin-top: 20px;
}

.db-management-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.db-management-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.db-management-container table th,
.db-management-container table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.db-management-container table th {
    background-color: #f2f2f2;
}

.db-management-container .form-container {
    margin-top: 20px;
}

.db-management-container .form-container input[type="text"],
.db-management-container .form-container input[type="number"],
.db-management-container .form-container select,
.db-management-container .form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.db-management-container .form-container button,
.edit-form-container button {
    width: auto;
    /* Change from 100% to auto */
    padding: 10px;
    background-color: #6c7ae0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.db-management-container .form-container button:hover,
.edit-form-container button:hover {
    background-color: #5a68d1;
}

.edit-button {
    background-color: #6c7ae0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 5px;
    transition: background-color 0.3s;
}

.edit-button:hover {
    background-color: #5a68d1;
}

.edit-form-container {
    margin-top: 20px;
}

.edit-form-container input,
.edit-form-container select,
.edit-form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.edit-form-container button {
    width: 100%;
    padding: 10px;
    background-color: #6c7ae0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-form-container button:hover {
    background-color: #5a68d1;
}

#logoutButton {
    display: none;
}