* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    padding-left: 240px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: "Inter", sans-serif !important;
}

.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1f1f1f;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.65rem;
    margin-right: 20px !important;
}

#logo {
    width: 40px;
    height: auto;
    display: block;
    border-radius: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    color: #a1a1a1;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 3px 4px;
    border-radius: 6px;
    font-size: 1rem;
}

.nav-menu a:hover {
    color: #e5e5e5;
    background: rgba(255,255,255,0.02);
}

.nav-menu a:last-child {
    color: #7289da;
    font-weight: bolder;
}

#group2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#pfp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.06);
    background-color: rgba(255,255,255,0.03);
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    vertical-align: middle;
    margin-right: 5px;
}

#credits_text {
    font-weight: 700;
    color: #cfcfcf;
    font-size: 0.95rem;
    padding-right: 8px;
    text-decoration: none;
}

#display_text {
    font-weight: 700;
    color: #00ff88;
    font-size: 0.95rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    margin-bottom: 0;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: #e5e5e5;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    position: absolute;
    left: 1rem;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: #0f0f0f;
    border-right: 1px solid #1f1f1f;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    font-family: "Inter", sans-serif;
}

.sidebar-header {
    padding: 1rem 1rem;
    border-bottom: 1px solid #1f1f1f;
    position: sticky;
    top: 0;
    background: #0f0f0f;
    z-index: 10;
    height: 4rem;
    display: flex;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.sidebar-brand img {
    width: 40px;
    height: auto;
    border-radius: 0 !important;
}

.sidebar-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-content {
    padding: 0.5rem 0 90px 0;
}

.sidebar-section {
    margin-bottom: 0.25rem;
}

.sidebar-section-title {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: normal;
    color: #888;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.2s ease;
}

.sidebar-section-title:hover {
    background: rgba(255,255,255,0.02);
    color: #888;
}

.section-chevron {
    font-size: 0.65rem;
    opacity: 0.6;
}

.sidebar-section.collapsed .section-chevron {
    transform: rotate(-90deg);
}

.sidebar-links {
    max-height: 800px;
    overflow: hidden;
}

.sidebar-section.collapsed .sidebar-links {
    max-height: 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    color: #a1a1a1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    position: relative;
    border-left: 2px solid transparent;
}

.sidebar-links a:hover {
    color: #e5e5e5;
    background: rgba(255,255,255,0.04);
}

.sidebar-links a.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.06);
}

.sidebar-links i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.sidebar-links a:hover i,
.sidebar-links a.active i {
    opacity: 1;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

@media (max-width: 968px) {
    body {
        padding-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }

    .header {
        margin-left: 0;
        padding-left: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 0.25rem;
        font-size: 1.1rem;
    }

    #group2 {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        width: auto;
        flex-wrap: wrap;
        position: static;
    }

    #credits_text, #display_text {
        font-size: 0.9rem;
    }

    #pfp {
        width: 32px;
        height: 32px;
    }

    #display_text {
        max-width: 150px;
    }

    .profile-link, .credits-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1999;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
