* {
    margin: 0;
}

body {
    background-color: black;
    color: white;
}

li {
    list-style: none;
}

ul {
    display: flex;
    flex-direction: row;
    gap: 2em;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: white;
}

nav {
    height: 60px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #2b2c2e;
    justify-content: space-between;
    padding: 0 2em;
}

li:hover {
    color: black;
}

.SoftName {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    gap: 1em;
    cursor: pointer;
}

.SoftName img {
    width: 40px;
    border-radius: 50%;
}

.nav-link:hover {
    color: rgb(141, 122, 122);
}

#AccountSettings {
    margin-top: 50px;
    margin: 50px auto;
}

#AccountSettings button {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(15, 15, 140);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    border: none;
    margin-bottom: 50px;
}

#AccountSettings button:hover {
    background-color: #110f0f;
}

table {
    border-collapse: collapse;
    margin: 100px auto;
    table-layout: fixed;
}

th,
td {
    border: 1px solid #ddd;
    text-align: center;
}

td {
    padding: 1px 1px;
}

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

th:nth-child(1) {
    width: 50px;
}

th:nth-child(2) {
    width: 100px;
}

th:nth-child(3) {
    width: 70px;
}

th:nth-child(4) {
    width: 60px;
}

th:nth-child(5) {
    width: 60px;
}

th:nth-child(6) {
    width: 60px;
}

th:nth-child(7) {
    width: 60px;
}

th:nth-child(8) {
    width: 60px;
}

th:nth-child(9) {
    width: 60px;
}

th:nth-child(10) {
    width: 80px;
}

th:nth-child(11) {
    width: 50px;
}

th:nth-child(12) {
    width: 50px;
}

th:nth-child(13) {
    width: 50px;
}

th:nth-child(14) {
    width: 20px;
}

.device-table th {
    width: 200px;
}

.A0AccSettings img,
.A0Status img,
.A0TarSettings img,
.D0EditDevice img {
    width: 35px;
    height: 35px;
    border-radius: 5px;
}


@media only screen and (max-width: 690px) {
    nav {
        justify-content: space-between;
    }

    .SoftName {
        margin-right: 20px;
    }

    ul {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger div {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 5px;
    }

    .nav-open ul {
        right: 0;
        top: 60px;
        width: 20vw;
        display: block;
        padding-top: 20px;
        position: absolute;
        text-align: center;
        padding: 0 10px;
        border-bottom-right-radius: 5%;
        border-bottom-left-radius: 5%;
        background-color: #2b2c2e;
    }

    .nav-open li {
        margin-bottom: 20px;
        display: block;
    }

    .nav-open li a {
        color: white;
    }

    .hamburger.is-active {
        opacity: 70%;
    }

    .hamburger.is-active div:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.is-active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active div:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.device-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.device-item {
    background-color: #2b2c2e;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    cursor: pointer;
}

.device-item a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

.device-item:hover {
    background-color: #444;
}

.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.confirm-dialog p {
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

#yes-btn,
#no-btn {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-dialog button {
    background-color: red;
    color: #fff;
}

.confirm-dialog button:hover {
    background-color: #202020;
}

.confirm-dialog #no-btn {
    background-color: #523939;
    color: white;
}

.confirm-dialog #no-btn:hover {
    background-color: #202020;
}

#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: #de3500 #0000 #fff #0000;
    border-radius: 50%;
    box-sizing: border-box;
    animation: 1s rotate linear infinite;
}

.loader:before,
.loader:after {
    content: '';
    top: 0;
    left: 0;
    position: absolute;
    border: 10px solid transparent;
    border-bottom-color: #fff;
    transform: translate(-10px, 19px) rotate(-35deg);
}

.loader:after {
    border-color: #de3500 #0000 #0000 #0000;
    transform: translate(32px, 3px) rotate(-35deg);
}

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

#content {
    display: none;
}