/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: url('/i/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
}

.header {
    position: absolute;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.logo img {
    width: 150px;
}

.nav {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    align-items: center;
}

.main-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.main-menu li {
    margin-right: 20px;
    position: relative;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav ul li a.active,
.nav ul li a:hover {
    color: #00bcd4;
}

.more-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
}

.more-btn svg {
    transition: transform 0.3s ease;
}

.group:hover .more-btn svg {
    transform: rotate(90deg);
}

.dropdown {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    top: 100%;
    left: 0;
    z-index: 1000;
    flex-direction: column;
    width: max-content;
}

.group:hover .dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown li {
    margin: 5px 0;
}

.dropdown li a {
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.hamburger div {
    width: 100%;
    height: 3px;
    background: white;
}

/* Media query for desktops above 1100px */
@media (min-width: 1100px) {
    .hamburger {
        display: none;
    }
    .dropdown, .more-btn {
        display: none;
    }
    .mobile-only {
        display: flex;
    }
    .main-menu {
        justify-content: flex-start;
    }
    .desktop-only {
        display: none;
    }
}

/* Media query for devices between 700px and 1100px */
@media (min-width: 700px) and (max-width: 1100px) {
    .hamburger {
        display: none;
    }
    .dropdown {
        display: none;
    } 
    .more-btn {
        display: flex;
    }
    .mobile-only {
        display: none;
    }
    .main-menu {
        justify-content: flex-start;
    }
    .desktop-only {
        display: flex;
    }
}

/* Media query for mobile devices below 700px */
@media (max-width: 700px) {
    .hamburger {
        display: flex;
        margin-right: 40px;
    }
    .hamburger div {
        height: 2px;
    }
    .nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        padding: 10px;
        position: absolute;
        top: 80px;
        left: 0;
    }
    .header[data-state="show"] .nav {
        display: flex;
    }
    .main-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 10px; /* Add a margin-top to create space between the logo and the menu */
    }
    .main-menu li {
        margin: 10px 0;
        width: 100%;
    }
    .main-menu li a {
        width: 100%;
    }
    .desktop-only {
        display: none;
    }
}

h1 {
    text-align: center;
    color: #333;
}

#status-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    justify-items: center;
    max-width: 1100px;
    margin: 100px auto;
}

.server {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 275px;
}

.server h2 {
    margin-top: 0;
    color: #333;
}

.server p {
    margin: 10px 0;
}

.active {
    color: green;
}

.inactive {
    color: red;
}

.timestamp {
    font-size: 14px;
    color: #888;
}
