body {
    background: #121212;
    color: #e0e0e0;
    font-family: 'Pragmata Pro', monospace;
    margin: 0;
    padding: 40px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.content {
    max-width: 850px;
    margin: auto;
    padding: 40px;
    background-color: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #333;
}

th {
    background-color: #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 1;
}

tr {
    background-color: #1c1c1c;
}

button {
    display: inline-block;
    height: 38px;
    padding: 0 20px;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: 0.1rem;
    background: #333;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s;
}

button:hover {
    background: #444;
}

button.selected {
    background-color: #c1c2c5;
}

button.selected:hover {
    background-color: #a1a2a5;
}

button.active {
    background-color: #c1c2c5;
}

button.active:hover {
    background-color: #a1a2a5;
}

button.reset {
    float: right;
    background-color: #af2121;
}

button.reset:hover {
    background-color: #8a1717;
}

button.reboot {
    background-color: #9c5712;
}

button.reboot:hover {
    background-color: #7e4a10;
}

h1,
.title {
    font-size: 1.7rem;
    margin-top: 1rem;
    background: #333;
    color: #e0e0e0;
    padding: 0.2em 0.3em;
    border-radius: 5px;
    border-left: solid #c1c2c5 5px;
    font-weight: 300;
}

.title {
    font-size: 2rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #e0e0e0;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="checkbox"],
input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #e0e0e0;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-right: 10px;
}

input:focus {
    outline: none;
    border-color: #c1c2c5;
    box-shadow: 0 0 5px rgba(193, 194, 197, 0.5);
}

input:hover {
    border-color: #c1c2c5;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

span {
    color: #c1c2c5;
    font-weight: bold;
}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

a {
    color: #c1c2c5;
    text-decoration: none;
}

footer {
    margin-top: 20px;
    padding: 20px;
    color: #e0e0e0;
    text-align: center;
}

footer a {
    color: #c1c2c5;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-content div {
    margin: 5px 0;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .content {
        padding: 10px;
    }
    h1,
    .title {
        font-size: 1.5rem;
    }
    button {
        font-size: 12px;
        padding: 0 15px;
    }
    table,
    th,
    td {
        font-size: 12px;
    }
    .table-container {
        max-height: 200px;
    }
    footer {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    h1,
    .title {
        font-size: 1.3rem;
    }
    button {
        font-size: 10px;
        padding: 0 10px;
    }
    table,
    th,
    td {
        font-size: 10px;
    }
    .table-container {
        max-height: 150px;
    }
    footer {
        padding: 8px;
        font-size: 12px;
    }
}

.table-container::-webkit-scrollbar {
    width: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #1c1c1c;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 6px;
    border: 3px solid #1c1c1c;
}

.table-container {
    scrollbar-color: #444 #1c1c1c;
    scrollbar-width: thin;
}

#toast {
    background-color: #2a2a2a;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#toast.show {
    opacity: 1;
}

#toast.hide {
    opacity: 0;
}

#spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#spinner-container.show-loading {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c1c2c5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#sysInfo {
    display: table;
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1c1c1c;
    padding: 10px;
}

#sysInfo p {
    display: table-row;
    background-color: #1c1c1c;
    margin: 0;
}

#sysInfo p:nth-child(odd) {
    background-color: #2a2a2a;
}

#sysInfo p:hover {
    background-color: #333;
}

#sysInfo p span {
    display: table-cell;
    padding: 10px;
    border: 1px solid #444;
    font-size: 1rem;
    color: #e0e0e0;
}

#sysInfo p span:first-child {
    font-weight: bold;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

#sysInfo p span:last-child {
    background-color: #1c1c1c;
    color: #e0e0e0;
}