body {
    font-family: Arial, sans-serif;
    display: inline-block;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    background: #0d2121;
    color: white;
}

h1 {
    text-align: center;
    color: lightcyan;
}

h2 {
    color: lightcyan;
}

form {
    margin: auto;
    padding: 0 15px 30px;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: lightcyan;
}

input, textarea {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 3px;
    border: none;
}

button, a.button {
    padding: 5px 10px;
    color: white;
    border: 1px solid;
    border-radius: 3px;
    background-color: slategrey;
    cursor: pointer;
    font-size: 13px;
}

a.button {
    text-decoration: none;
    display: inline-block;
    margin: 0 7px 7px 0;
}

a.delete,
button.delete {
    background-color: indianred;

}

a.add,
button.add {
    background-color: mediumseagreen;
}

button[type="submit"] {
    float: right;
}

.user {
    position: relative;
    border: 1px solid white;
    padding: 10px;
    border-radius: 5px;
    background: darkslategray;
    max-width: 275px;
}

#users {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    column-gap: 120px;
}

.select2-container {
    color: black;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #1e4d4d !important;
    color: white !important;
}

.select2-container--default .select2-results__option--selected {
    background: #1e4d4d !important;
    color: white !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: white !important;
    border-color: white !important;
    background: #1e4d4d !important;
    padding: 6px 6px 6px 26px !important;
    border-radius: 7px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    border-color: white !important;
    height: 100% !important;
    padding: 0 7px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background-color: indianred !important;
}

.logs {
    height: 300px;
    overflow: auto;
    background: #071111;
    padding: 10px;
}

.logs p {
    margin: 0;
    line-height: 1.4;
    white-space: pre-wrap;
}

.error-logs {
    color: #b43c3c;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.user-details {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.user-info {
    display: flex;
    gap: 10px;
    flex-direction: row;
    width: 100%;
}

.user-info > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100px;
}

.user label {
    margin-top: 0;
    font-size: 11px;
    line-height: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tg-webapp-data {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

.user:not(.new-user) .tg-webapp-data {
    display: none;
}

.tg-webapp-data textarea {
    height: 100%;
    margin-bottom: 0;
}

.user-actions {
    display: flex;
    position: absolute;
    left: calc(100% + 10px);
    flex-direction: column;
    gap: 10px;
    top: 0;
    margin-top: 0;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 0;
}

.user-stats span {
    width: calc(50% - 5px);
}

.label {
    font-size: 11px;
}

.value {
    font-size: 12px;
}
.upgrade-option-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.upgrade-option-wrapper img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}