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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

* {
    color: inherit;
}

#performance * {
    color: #ffffff !important;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
}

.sidebar {
    position: relative;
    top: 0;
    left: 0;
    width: 250px;
    min-height: 100vh;
    background-color: #000000;
    border-right: 1px solid #111111;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid #333333;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: #888888;
}

.search-button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: #ffffff;
}

.search-button:active {
    transform: scale(0.95);
}

.sidebar-menu {
    list-style: none;
    padding: 0 10px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: #cccccc;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background-color: #222222;
    color: #ffffff;
}

.sidebar-link.active {
    background-color: #333333;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #eeeeee;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #333333;
}

.btn-secondary:hover {
    background-color: #222222;
}

.btn-discord {
    background-color: #5865F2;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg>');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 20px 20px;
    color: #ffffff;
    border: 1px solid #5865F2;
    padding-left: 40px;
}

.btn-discord:hover {
    background-color: #4752C4;
    border-color: #4752C4;
}

.btn-nexus {
    background-color: #DA7C3A;
    background-image: url('https://www.nexusmods.com/favicon.ico');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    color: #ffffff;
    border: 1px solid #DA7C3A;
    padding-left: 40px;
}

.btn-nexus:hover {
    background-color: #C56A2C;
    border-color: #C56A2C;
}

.btn-patreon {
    background-color: #FF424D;
    background-image: url('https://www.patreon.com/favicon.ico');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    color: #ffffff;
    border: 1px solid #FF424D;
    padding-left: 40px;
}

.btn-patreon:hover {
    background-color: #E73C47;
    border-color: #E73C47;
}

.btn-kofi {
    background-color: #13C3FF;
    background-image: url('https://ko-fi.com/favicon.ico');
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    color: #ffffff;
    border: 1px solid #13C3FF;
    padding-left: 40px;
}

.btn-kofi:hover {
    background-color: #0FA0CC;
    border-color: #0FA0CC;
}

.main-content {
    flex: 1;
    padding: 40px;
    min-height: 100vh;
    max-width: none;
}

.content-section {
    display: none;
    color: #ffffff;
}

.content-section.active {
    display: block;
    color: #ffffff;
}

.content-section#performance.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.content-section * {
    color: inherit !important;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section p,
.content-section li,
.content-section div,
.content-section span {
    color: #ffffff !important;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #888888;
    font-weight: 400;
}

.image-embed {
    margin: 40px 0;
    text-align: center;
}

.image-embed img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-caption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #cccccc;
    font-style: italic;
}

.image-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.image-grid-2x2 .grid-item {
    text-align: center;
}

.image-grid-2x2 .grid-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-grid-2x2 .grid-item .image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
}

.content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 25px;
}

.content-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    margin-top: 30px;
}

.content-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    margin-top: 25px;
}

.content-text p {
    margin-bottom: 15px;
    color: #ffffff;
}

.content-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.content-text ol {
    margin: 15px 0;
    padding-left: 25px;
    color: #ffffff;
}

.content-text li {
    margin-bottom: 8px;
    color: #cccccc;
}

.content-text strong {
    color: #ffffff;
}

.content-text a {
    color: #ffffff;
    text-decoration: underline;
}

.content-text a:hover {
    color: #cccccc;
}

.content-text em {
    color: #cccccc;
    font-style: italic;
}

code {
    background-color: #222222;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.warning {
    background-color: #1a1a1a;
    border-left: 4px solid #ffffff;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
    color: #ffffff !important;
}

.warning h3 {
    color: #ffffff !important;
    margin-bottom: 10px;
}

.warning h4 {
    color: #ffffff !important;
    margin-bottom: 10px;
}

.warning p {
    color: #ffffff !important;
}

.installation-steps {
    margin: 30px 0;
}

.step-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333333;
    color: #ffffff;
}

.step-item:last-child {
    border-bottom: none;
}

.step-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-item p {
    color: #ffffff;
    margin-bottom: 12px;
}

.step-item ol {
    color: #ffffff;
    margin: 15px 0;
    padding-left: 25px;
}

.step-item ol li {
    color: #cccccc;
    margin-bottom: 8px;
}

.step-item em {
    color: #cccccc;
    font-style: italic;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    margin-right: 15px;
    font-size: 0.9rem;
}

.step-content h3 {
    display: inline-block;
    vertical-align: top;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #ffffff;
}

.step-description {
    margin-left: 45px;
    color: #cccccc;
}

.loadorder-embed {
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.loadorder-embed iframe {
    width: 130%;
    min-height: 800px;
    border: none;
    border-radius: 0;
    background: transparent;
    margin-left: -215px;
    transform: scale(0.85);
    transform-origin: left center;
}

.search-highlight {
    background-color: #ffff0088;
    color: #000000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333333;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    border-left: 4px solid #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.search-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.anchor-link {
    opacity: 0;
    margin-left: 10px;
    text-decoration: none;
    font-size: 0.8em;
    color: #888888;
    transition: opacity 0.2s ease, color 0.2s ease;
    vertical-align: middle;
}

.anchor-link:hover {
    color: #ffffff;
    text-decoration: none;
}

h3:hover .anchor-link,
h4:hover .anchor-link,
h5:hover .anchor-link,
h6:hover .anchor-link,
h1:hover .anchor-link,
h2:hover .anchor-link {
    opacity: 1;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
    position: relative;
    scroll-margin-top: 20px;
}


#performance,
#performance *,
.content-section#performance,
.content-section#performance * {
    color: #ffffff !important;
    background-color: transparent !important;
}

#performance .content-text,
#performance .content-text *,
#performance .warning,
#performance .warning *,
#performance .step-item,
#performance .step-item * {
    color: #ffffff !important;
}

section#performance h1,
section#performance h2,
section#performance h3,
section#performance h4,
section#performance p,
section#performance li,
section#performance div,
section#performance span,
section#performance strong,
section#performance em,
section#performance a {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #333333;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .mobile-toggle {
        display: none;
    }

    .image-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.mobile-toggle {
    display: none;
}
