body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: url('WraithlorBackgroundBlackDesktop.webp') center/cover no-repeat fixed;
    background-image: url('WraithlorBackgroundBlackDesktop.webp'), url('WraithlorBackgroundBlackDesktop.png');
}

.server-info {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(45, 45, 45, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.server-icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.05);
}

.server-name {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.server-ip {
    color: #64b5f6;
    font-size: 12px;
    font-family: monospace;
}

.server-details table {
    border-collapse: collapse;
}

.server-details table td {
    color: #64b5f6;
    font-size: 12px;
    font-family: monospace;
    padding: 2px 8px;
}

.server-details table td:first-child {
    color: #fff;
    font-weight: bold;
}

.hidden {
    display: none;
}

.main-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Cinzel', 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    z-index: 1001;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- Drawer Styles --- */

.drawer-toggle {
    position: fixed;
    top: 25px;
    left: 20px;
    z-index: 1500;
    background: rgba(45, 45, 45, 0.95);
    border: 1px solid #64b5f6;
    color: #64b5f6;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s, color 0.3s;
    font-weight: bold;
}

.drawer-toggle:hover {
    background: rgba(100, 181, 246, 0.2);
    color: #fff;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(2px);
}

.toc {
    background: #2d2d2d;
    padding: 2rem 1.5rem 4rem 1.5rem;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    border-radius: 0;
    box-sizing: border-box;
}

.toc.open {
    transform: translateX(0);
}

.close-drawer {
    background: transparent;
    border: none;
    color: #999;
    font-size: 32px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-drawer:hover {
    color: #ff6b6b;
    background: transparent;
}

.toc h1 {
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin: 0.5rem 0;
}

a {
    text-decoration: none;
    color: #64b5f6;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 8px;
    transition: background-color 0.3s;
    font-size: clamp(14px, 2vw, 16px);
}

a:hover {
    background-color: #404040;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
        top: 15px;
    }
    
    .drawer-toggle {
        top: 12px;
        left: 10px;
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .server-info {
        position: static;
        margin: 80px auto 20px;
        width: calc(100% - 40px);
        max-width: 300px;
    }
    
    body {
        flex-direction: column;
        padding: 20px;
        align-items: stretch;
    }
    
    a {
        font-size: 14px;
        padding: 0.75rem 1rem;
    }
}

.login {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-left: 2rem;
}

input {
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    background: #404040;
    color: #fff;
    width: 200px;
}

button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #64b5f6;
    color: #fff;
    cursor: pointer;
}
