/* Base styles */
/* Scrollbar styles for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #bb86fc #1e1e1e;
}

/* Scrollbar styles for Webkit browsers */
::-webkit-scrollbar {
    width: 10px; /* Slightly wider than sidebar scrollbar for main content */
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background-color: #bb86fc;
    border-radius: 5px;
    border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #9d70d1;
}

html, body {
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

a {
    color: #bb86fc;
    text-decoration: none;
}

.header, .footer {
    background-color: #2c2c2c;
}

.donate {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
}

.footer div {
    font-size: 14px;
}
.page-content, .entry-title {
    border-color: #333;
}

table {
    background-color: #333;
    color: #fff;
}

th, td {
    border: 1px solid #444;
}

/* Header styles */
.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #121212;
    padding: 1rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: #bb86fc;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #1e1e1e;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.sidebar .logo-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background-color: #1e1e1e;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar .logo-container img {
    max-width: 180px;
    height: auto;
}

.sidebar .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    height: calc(100vh - 80px); /* Viewport height minus logo container height */
    scrollbar-width: thin;
    scrollbar-color: #bb86fc #1e1e1e;
}

/* Webkit scrollbar styles for sidebar */
.sidebar .nav-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar .nav-menu::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.sidebar .nav-menu::-webkit-scrollbar-thumb {
    background-color: #bb86fc;
    border-radius: 3px;
}

.sidebar .nav-menu li {
    padding: 0;
    margin: 0;
}

.sidebar .nav-menu a {
    display: block;
    padding: 15px 25px;
    color: #e0e0e0;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar .nav-menu a:hover,
.sidebar .nav-menu a.active {
    background-color: #2d2d2d;
    border-left-color: #bb86fc;
}

/* Main content wrapper */
.site-content-wrapper {
    margin-left: 250px;
    padding-top: 80px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Ad banners */
.sylvester-top,
.sylvester-top-mobile {
    text-align: center;
    padding: 1rem 0;
    background-color: #1a1a1a;
}

.sylvester-top-mobile {
    display: none;
}

/* Responsive design */
@media screen and (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .site-content-wrapper {
        margin-left: 200px;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .site-content-wrapper {
        margin-left: 0;
    }

    .sylvester-top {
        display: none;
    }

    .sylvester-top-mobile {
        display: block;
    }

    .site-header {
        padding: 0.5rem;
    }

    .header-inner {
        padding: 0 0.5rem;
    }

    .custom-logo {
        max-width: 200px;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .site-content-wrapper {
        padding-top: 60px;
    }

    .custom-logo {
        max-width: 150px;
    }
}

/* Utility classes */
.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

.centered p {
    font-size: 0.9rem;
    color: #888;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    .site-header,
    .sidebar,
    .site-content-wrapper {
        background-color: #121212;
    }
}

/* Utility classes */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.submenu-item {
padding-left: 1.5rem !important;
}

.subsubmenu-item {
padding-left: 3rem !important;
}


/* Fix header styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100% !important;
    max-width: 100vw !important;
    background-color: #121212;
    border-bottom: 1px solid #2d2d2d;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .site-header {
        width: 100% !important;
    }
}


.header-inner {
width: 100%;
max-width: none;
padding: 0 2rem;
}

/* Add scroll margin for anchor links */
:target {
scroll-margin-top: 50px; /* Adjust this value based on your header height */
}

html {
scroll-padding-top: 50px; /* Alternative approach for browsers that don't support scroll-margin */
}

/* Ensure main content doesn't overflow */
.site-content-wrapper {
width: 100%;
overflow-x: hidden;
}