/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;
}

::-webkit-scrollbar {
    width: 10px; 
}

::-webkit-scrollbar-track {
    background: var(--body-color); 
    border-radius: 2px; 
}

::-webkit-scrollbar-thumb {
    background: var(--container); 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover {
    background: var(--container); 
}

/* ===== Colours ===== */
:root {
    --body-color: #090C10;
    --container: #0D1117;
    --text-color: #B0B7BF;
    --footer-color: #615e5e;
    --server-online-color: #07920e;
    --server-online-text-color: #000000;
    --server-offline-color: #b60b25;
    --server-offline-text-color: #fff;
    --server-offline-bg: #6C757D;
    --server-status-bg: #090C10;
    --hover-color: #1a1f27;
}

body {
    background-color: var(--body-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    min-height: 100vh;
    padding-top: 70px; 
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: var(--nav-color);
    z-index: 100;
    transition: background-color 0.3s;
}

nav.scrolled {
    background-color: var(--nav-color-scroll); 
}

nav.hidden {
    top: -100px; 
}

body.dark nav{
    border: 1px solid transparent;
}

nav .nav-bar{
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    background-color: transparent; 
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .nav-bar .sidebarOpen{
    color: var(--text-color);
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a{
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.menu .logo-toggle{
    display: none;
}

.nav-bar .nav-links{
    display: flex;
    align-items: center;
}

.nav-bar .nav-links li{
    margin: 0 5px;
    list-style: none;
}

.nav-links li a{
    position: relative;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
}

.nav-links li a::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links li:hover a::before{
    opacity: 1;
}

.nav-bar .darkLight-searchBox{
    display: flex;
    align-items: center;
}

.darkLight-searchBox .dark-light,
.darkLight-searchBox .searchToggle{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.dark-light i,
.searchToggle i{
    position: absolute;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i.sun{
    opacity: 0;
    pointer-events: none;
}

.dark-light.active i.sun{
    opacity: 1;
    pointer-events: auto;
}

.dark-light.active i.moon{
    opacity: 0;
    pointer-events: none;
}

.searchToggle i.cancel{
    opacity: 0;
    pointer-events: none;
}

.searchToggle.active i.cancel{
    opacity: 1;
    pointer-events: auto;
}

.searchToggle.active i.search{
    opacity: 0;
    pointer-events: none;
}

.searchBox{
    position: relative;
}

.searchBox .search-field{
    position: absolute;
    bottom: -85px;
    right: 5px;
    height: 50px;
    width: 300px;
    display: flex;
    align-items: center;
    background-color: var(--nav-color);
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.searchToggle.active ~ .search-field{
    bottom: -74px;
    opacity: 1;
    pointer-events: auto;
}

.search-field::before{
    content: '';
    position: absolute;
    right: 14px;
    top: -4px;
    height: 12px;
    width: 12px;
    background-color: var(--nav-color);
    transform: rotate(-45deg);
    z-index: -1;
}

.search-field input{
    height: 100%;
    width: 100%;
    padding: 0 45px 0 15px;
    outline: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--search-text);
    background-color: var(--search-bar);
}

body.dark .search-field input{
    color: var(--text-color);
}

.search-field i{
    position: absolute;
    color: var(--nav-color);
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

body.dark .search-field i{
    color: var(--text-color);
}

@media (max-width: 790px) {
    nav .nav-bar .sidebarOpen{
        display: block;
    }

    .menu{
        position: fixed;
        height: 100%;
        width: 320px;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--side-nav);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav.active .menu{
        left: -0%;
    }

    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-toggle .siderbarClose{
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }

    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 30px;
    }

    .nav-links li a{
        display: block;
        margin-top: 20px;
    }
}

.container-wrapper {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-text {
    color: var(--text-color);
    text-align: left;
    width: 90%;
    max-width: 1350px;
    margin-bottom: 10px;
}

.container-systeme, .container-server, .container-website, .container-dcbot, .container-other {
    background-color: var(--container);
    width: 90%;
    max-width: 1350px;
    padding: 20px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-systeme {
    flex-direction: row;
}

.container-systeme img {
    width: 40px; 
    height: auto;
    margin-right: 15px;
}

.system-status-text {
    text-align: center;
    margin-right: 910px;
}

.system-status-text h1 {
    font-size: 24px;
    margin: 5px 0;
    color: var(--text-color);
}

.container-server, .container-website, .container-dcbot, .container-other {
    flex-direction: column;
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.server-status:hover {
    background-color: var(--hover-color);
}

.server-status-percentage {
    background-color: var(--server-status-bg);
    padding: 5px 10px;
    border-radius: 20px;
    color: var(--text-color);
    margin-right: 10px;
    font-weight: 600;
}

.server-status-percentage.online {
    background-color: var(--server-online-color);
    color: var(--server-online-text-color);
}

.server-status-percentage.offline {
    background-color: var(--server-offline-bg);
    color: var(--server-offline-text-color);
}

.status-bar-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-end;
}

.status-bar {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.bar {
    width: 6px;
    height: 20px;
    border-radius: 5px;
    background-color: var(--server-online-color);
}

.bar.offline {
    background-color: var(--server-offline-color);
}

.time-status {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 5px;
}

.footer {
    color: var(--footer-color);
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
}

.footer a {
    color: var(--footer-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-color);
}
