.nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: #ffffff;
            padding: 12px 20px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);            margin-bottom: 20px;
            border: 1px solid #e0e0e0;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        nav ul {
            margin: 0;
            display: flex;
            gap: 24px;
            list-style: none;
        }
        
        nav a {
            text-decoration: none;
            color: #007bff;
            font-weight: 600;
            font-size: 16px;
            padding: 6px 12px;
            border-radius: 6px;
            transition: background 0.2s, color 0.2s;
        }

        nav a:hover {
            background-color: #e7f1ff;
            color: #0056b3;
        }

        @media (max-width: 760px) {
            .nav-container {
                flex-direction: column;
                text-align: center;
                padding: 16px;
                gap: 12px;
        }

            nav ul {
                justify-content: center;
                flex-wrap: wrap;
                gap: 16px;
            }

        }
        

        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            text-align: center;
            color: #007bff;
        }
        #refresh-btn {
            display: block;
            margin: 0 auto 20px;
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }
        #refresh-btn:hover {
            background-color: #0056b3;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th, td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #007bff;
            color: white;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        tr:hover {
            background-color: #f1f1f1;
        }
        #loading {
            text-align: center;
            font-style: italic;
            color: #666;
        }

        header {
            text-align: center;
            padding: 20px 0;
            border-bottom: 1px solid #eee;
        }
        nav ul {
            list-style: none;
            padding: 0;
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        nav a {
            text-decoration: none;
            color: #007bff;
            font-weight: 500;
        }

        footer {
            text-align: center;
            padding: 20px 0;
            border-top: 1px solid #eee;
            color: #666;
            font-size: 14px;
        }

        /* Responsive design for mobile */
        @media (max-width: 768px) {
            table, thead, tbody, th, td, tr {
                display: block;
            }
            thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }
            tr {
                border: 1px solid #ccc;
                margin-bottom: 10px;
                border-radius: 8px;
                overflow: hidden;
            }
            td {
                border: none;
                border-bottom: 1px solid #eee;
                position: relative;
                padding-left: 50%;
                text-align: right;
            }
            td:before {
                position: absolute;
                top: 12px;
                left: 12px;
                width: 45%;
                padding-right: 10px;
                white-space: nowrap;
                font-weight: bold;
                text-align: left;
            }
            td:nth-of-type(1):before { content: "Rank"; }
            td:nth-of-type(2):before { content: "Server Name"; }
            td:nth-of-type(3):before { content: "Member(s)"; }
            td:nth-of-type(4):before { content: ""; }
        }

        /* Dark Theme Styles */
        body.dark-theme {
            background-color: #121212;
            color: #e0e0e0;
        }

        .dark-theme .nav-container {
            background-color: #1e1e1e;
            border: 1px solid #333;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .dark-theme nav a {
            color: #bbdefb;
        }

        .dark-theme nav a:hover {
            background-color: #333;
            color: #e3f2fd;
        }

        .dark-theme .container {
            background: #1e1e1e;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .dark-theme h1 {
            color: #bbdefb;
        }

        .dark-theme #refresh-btn {
            background-color: #0056b3;
        }

        .dark-theme #refresh-btn:hover {
            background-color: #003d82;
        }

        .dark-theme th {
            background-color: #0056b3;
            color: #fff;
        }

        .dark-theme td {
            border-bottom: 1px solid #333;
        }

        .dark-theme tr:nth-child(even) {
            background-color: #2c2c2c;
        }

        .dark-theme tr:hover {
            background-color: #3c3c3c;
        }

        .dark-theme #loading {
            color: #ccc;
        }

        .dark-theme header {
            border-bottom: 1px solid #333;
        }

        .dark-theme footer {
            border-top: 1px solid #333;
            color: #ccc;
        }

        .dark-theme #last-updated {
            color: #ccc;
        }

        /* Toggle Switch Styles */
        .toggle-container {
            text-align: center;
            margin: 10px 0;
        }

        .toggle-container label {
            font-size: 16px;
            margin-right: 10px;
            vertical-align: middle;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
            vertical-align: middle;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #2196F3;
        }

        input:checked + .slider:before {
            transform: translateX(26px);
        }

        /* Responsive adjustments for dark theme mobile */
        @media (max-width: 768px) {
            .dark-theme tr {
                border: 1px solid #444;
            }

            .dark-theme td {
                border-bottom: 1px solid #333;
            }

            .dark-theme td:before {
                color: #e0e0e0;
            }
        }

/* Add this anywhere in your styles.css (e.g. after the #refresh-btn styles) */
.join-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    text-align: center;
}
.join-btn:hover {
    background-color: #0056b3;
}

/* Dark-theme version */
.dark-theme .join-btn {
    background-color: #bbdefb;
    color: #121212;
}
.dark-theme .join-btn:hover {
    background-color: #90caf9;
}
