* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 50px 20px;

    font-family: "Work Sans", Arial, sans-serif;
    color: #2b2b2b;
    background-color: #2b2b2b;
}

.outsideContainer {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.container, .containerTable {
    width: 100%;
    padding: 25px;

    background-color: #ffffff;
    border-radius: 10px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
}

h1, h3 {
    margin-top: 0;
    user-select: none;
}

h1 {
    text-align: center;
}

hr {
    height: 3px;
    margin: 20px 0;

    background-color: #b3cfa9;
    border: none;
}

/* Received user/API data */
#userdataList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#userdataList .userData {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 15px;
    padding: 10px 12px;

    background-color: #def6d5;
    border-left: 5px solid #b3cfa9;
    border-radius: 4px;
}

#userDataMessage {
    padding: 10px 12px;

    user-select: none;
    font-weight: bold;
    color: #496b40;
    background-color: #cff7c0;

    border-left: 5px solid #b3cfa9;
    border-radius: 4px;
}

.userDataIdentifier {
    font-weight: bold;
}

.userDataValue {
    overflow-wrap: anywhere;
}

.hidden {
    display: none;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;

    border-radius: 7px;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #d8e4d4;
}

th {
    color: #263322;
    background-color: #b3cfa9;
    user-select: none;
}

tr:nth-child(even) td {
    background-color: #f3f7f1;
}

tr:hover td {
    background-color: #e3efdf;
}

td:first-child, th:first-child {
    width: 80px;
    text-align: center;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #789d6e;
    cursor: pointer;
}

/* Add-host form */
.containerTable form {
    width: 100%;
}

.containerTable input[type="text"], .containerTable input[type="number"], .containerTable input[type="password"] {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;

    font: inherit;
    color: #2b2b2b;
    background-color: #f7f7f7;

    border: 1px solid #c8c8c8;
    border-radius: 5px;
    outline: none;
}

.containerTable input:focus {
    border-color: #89aa80;
    box-shadow: 0 0 0 3px rgba(179, 207, 169, 0.35);
}

/* Buttons */
button {
    width: 100%;
    margin-top: 15px;
    padding: 12px 18px;

    font: inherit;
    font-weight: bold;

    color: #263322;
    background-color: #b3cfa9;

    border: none;
    border-radius: 5px;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

button:hover:not(:disabled) {
    background-color: #9dbc93;
    transform: translateY(-1px);
}

button:disabled {
    color: #777777;
    background-color: #dddddd;
    cursor: not-allowed;
}

#dltbtn {
    background-color: rgb(255, 111, 111);
}

/* Password column */
.w-20 {
    width: 20%;
}

/* Responsive table */
@media (max-width: 800px) {
    body {
        padding: 25px 10px;
    }

    .container, .containerTable {
        padding: 15px;
        overflow-x: auto;
    }

    table {
        min-width: 750px;
    }
}

dialog {
    width: min(500px, 90%);
    padding: 25px;
    border: none;
    border-radius: 10px;
    background: #3a3a3a;
    color: white;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

dialog form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialogButtons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
