html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

body.loading, body.loading button, body.loading label, body.loading input {
    cursor: wait;
}

button {
    width: auto;
    max-width: 300px;
    padding: 10px;
    margin: 10px;
}

.button {
    width: auto;
    max-width: 300px;
    padding: 10px;
    margin: 10px;

    display: inline-block;
    font-size: 13.3333px;
    font-family: Arial;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    /* color: #fff; */
    color: #000;
    /* background-color: #007bff; */
    background-color: #F0F0F0;
    /* border: none; */
    /* border-radius: 5px; */
    /* padding-block: 1px; */
    /* padding-inline: 6px; */
    border-width: 1px;
    border-style: outset;
}

.text-error {
    color: red;
}

.text-warning {
    color: orange;
}

.text-success {
    color: green;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: -10%; /* Position the tooltip above the button */
    left: 125%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.horizontal-divs {
    display: inline-block;
    width: 100%; /* Adjust as needed */
    margin-right: 2%; /* Add spacing between divs */
}

#logs {
    border: 2px solid #333;
    padding: 10px;
    margin-top: 0px;
    max-height: 300px; /* or whatever height you prefer */
    overflow-y: auto;
    background-color: #f9f9f9; /* slight gray background */
}
.log-entry {
    border-bottom: 1px dashed #ccc;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.timestamp {
    font-weight: bold;
    margin-right: 8px;
}
.message {
    margin-left: 4px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.back-button:hover {
    background-color: #0056b3;
}

.upload-page {
    min-height: 100%;
    align-items: center;
    justify-content: center;
    background-color: #f6f7f9;
    font-family: Arial, sans-serif;
}

.upload-shell {
    width: min(680px, calc(100% - 32px));
}

.upload-drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-drop-zone input[type="file"] {
    width: 100%;
    height: 240px;
    min-height: 240px;
    opacity: 0.01;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.upload-drop-zone label {
    width: 100%;
    min-height: 240px;
    border: 2px dashed #65758b;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
}

.upload-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.upload-subtitle {
    font-size: 20px;
    max-width: 460px;
    margin-bottom: 5px;
}

.upload-body {
    font-size: 14px;
    max-width: 460px;
}

.upload-selected {
    margin-top: 18px;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #444;
}

.upload-message {
    background-color: #ffffff;
    border: 1px solid #d5dae1;
    padding: 32px;
    text-align: center;
}

.upload-admin-result input,
.upload-token-table input {
    width: min(720px, 90vw);
}

.upload-link-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px;
}

.upload-link-name-row input {
    width: min(360px, calc(100vw - 120px));
}

.upload-link-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.upload-link-copy-row input {
    width: min(720px, calc(100vw - 140px));
}

.upload-link-copy-row button {
    margin: 0;
}

.upload-token-table-wrap {
    width: min(1100px, calc(100vw - 24px));
    height: min(55vh, 480px);
    overflow-x: auto;
    overflow-y: scroll;
    border: 1px solid #ccc;
}

.upload-token-table {
    border-collapse: collapse;
    min-width: 1100px;
    width: max-content;
}

.upload-token-table th,
.upload-token-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.upload-token-table th {
    position: sticky;
    top: 0;
    background-color: #f0f0f0;
    z-index: 1;
}

.generator-button-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

.generator-all-button {
    margin-top: 18px;
    font-weight: bold;
}
