.server-info-container {
    padding: 40px 0 80px;
    min-height: calc(100vh - 300px);
    /*background: url('../images/bg-pattern.png') repeat;
    background-attachment: fixed;
	background-size: cover;*/
}

.server-info-container .section-header {
    margin-bottom: 30px;
    text-align: center;
}

.server-info-container .section-header h1 {
    font-size: 32px;
    color: #c83232;
    position: relative;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(200, 50, 50, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.server-info-container .section-header h1:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #c83232;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(200, 50, 50, 0.5);
}

/* New layout styles for TOC and content */
.server-info-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Table of Contents / Categories */
.server-info-toc {
    flex: 0 0 320px;
    background: rgba(20, 22, 30, 0.9);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 200px);
    position: sticky;
    top: 100px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.server-info-toc h3 {
    font-size: 18px;
    color: #fff;
    margin: 0;
    padding: 18px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 700;
    background: rgba(200, 50, 50, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    border-bottom: none;
}

/* Category Items */
.categories-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: calc(100vh - 270px);
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 50, 50, 0.5) rgba(20, 22, 30, 0.9);
}

/* Custom scrollbar for WebKit browsers */
.categories-list::-webkit-scrollbar {
    width: 5px;
}

.categories-list::-webkit-scrollbar-track {
    background: rgba(20, 22, 30, 0.9);
}

.categories-list::-webkit-scrollbar-thumb {
    background: rgba(200, 50, 50, 0.5);
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 50, 50, 0.8);
}

.category-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #cccccc;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.category-item.active {
    background: rgba(200, 50, 50, 0.2);
    color: #e04040;
    font-weight: 600;
    border-left: 4px solid #c83232;
}

/* Content area with TOC and content */
.server-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 700px;
}

/* Content TOC */
.content-toc {
    background: rgba(20, 22, 30, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.toc-items-container {
    padding: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

/* Content Container */
.content-container {
    background: rgba(20, 22, 30, 0.9);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 500px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 50, 50, 0.4) rgba(20, 22, 30, 0.9);
}

.content-container::-webkit-scrollbar {
    width: 8px;
}

.content-container::-webkit-scrollbar-track {
    background: rgba(20, 22, 30, 0.9);
    border-radius: 0 12px 12px 0;
}

.content-container::-webkit-scrollbar-thumb {
    background: rgba(200, 50, 50, 0.4);
    border-radius: 4px;
}

.content-container::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 50, 50, 0.7);
}

/* Add subtle fade effect at the bottom of scrollable areas */
.categories-list::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, rgba(20, 22, 30, 0.9), transparent);
    pointer-events: none;
}

/* Animation for section changes */
.section-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    display: none;
}

/* Improve section spacing */
.section-content p {
    margin-bottom: 1.5em;
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Headers */
.server-info-content h1 {
    font-size: 32px;
    margin: 0 0 25px;
    color: var(--color-accent-primary);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(var(--color-accent-primary-rgb, 255, 62, 62), 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.server-info-content h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
    font-weight: 600;
    position: relative;
}

.server-info-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 3px;
    background: #c83232;
    border-radius: 2px;
}

.server-info-content h3 {
    font-size: 22px;
    margin: 30px 0 18px;
    color: #f0f0f0;
    font-weight: 600;
}

/* Lists */
.server-info-content ul, 
.server-info-content ol {
    margin: 20px 0;
    padding-left: 25px;
    clear: both;
    width: 100%;
    display: block;
    counter-reset: item;
}

.server-info-content ul li, 
.server-info-content ol li {
    margin-bottom: 12px;
    position: relative;
    display: list-item;
    list-style-position: outside;
}

.server-info-content ul li::before {
    content: '•';
    color: #c83232;
    font-weight: bold;
    position: absolute;
    left: -20px;
    top: 0;
    font-size: 18px;
}

.server-info-content ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 25px;
}

.server-info-content ol li {
    counter-increment: item;
    position: relative;
}

.server-info-content ol li::before {
    content: counter(item) ".";
    color: #c83232;
    font-weight: bold;
    position: absolute;
    left: -25px;
    top: 0;
}

/* Удаляем старые неиспользуемые стили */
.numbered-section, 
.step-label {
    display: none;
}

/* Стили для заголовков секций с номерами */
.section-heading {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #f0f0f0;
    position: relative;
    font-weight: 600;
    padding-left: 5px;
    line-height: 1.4;
}

.section-number {
    color: #c83232;
    font-weight: 700;
    margin-right: 5px;
}

/* Обеспечение правильного сброса счетчика после заголовков и блоков */
.server-info-content h1 + ol,
.server-info-content h2 + ol,
.server-info-content h3 + ol,
.server-info-content div + ol,
.server-info-content p + ol,
.server-info-content .section-heading + ol {
    counter-reset: item;
}

/* Специальные стили для списков после section-heading */
.section-heading + ul,
.section-heading + ol {
    margin-top: 12px;
}

/* Enhanced Tables */
.server-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: rgba(35, 35, 45, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-info-table th {
    background: rgba(200, 50, 50, 0.25);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid rgba(200, 50, 50, 0.5);
    font-size: 15px;
    letter-spacing: 0.5px;
    position: relative;
}

.server-info-table th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(200, 50, 50, 0.3);
}

.server-info-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.server-info-table tr:last-child td {
    border-bottom: none;
}

.server-info-table tr:hover td {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(3px);
}

/* First column emphasis */
.server-info-table td:first-child {
    font-weight: 500;
    color: #f0f0f0;
}

/* Alternating row colors for better readability */
.server-info-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.15);
}

.server-info-table tr:nth-child(even):hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Images */
.server-info-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.server-info-image:hover {
    transform: scale(1.01);
}

/* Videos */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

/* Empty content message */
.empty-content {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 30px auto;
    max-width: 600px;
}

.error-content {
    text-align: center;
    padding: 30px;
    color: #c83232;
    background: rgba(200, 50, 50, 0.1);
    border-radius: 12px;
    margin: 20px 0;
}

/* Featured content blocks */
.featured-block {
    background: rgba(40, 45, 60, 0.7);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #c83232;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.featured-block h3 {
    color: #c83232;
    margin-top: 0;
    font-size: 20px;
}

/* Code blocks */
.code-block {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-family: monospace;
    overflow-x: auto;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media queries */
@media (max-width: 1200px) {
    .server-info-layout {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .server-info-layout {
        flex-direction: column;
    }
    
    .server-info-toc {
        flex: 0 0 auto;
        position: relative;
        top: 0;
        max-height: none;
        width: 100%;
    }
    
    .content-toc {
        display: none; /* Hide content TOC on mobile */
    }
    
    .server-info-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .server-info-container {
        padding: 40px 0;
    }
    
    .server-info-container .section-header h1 {
        font-size: 32px;
    }
    
    .server-info-content {
        padding: 25px;
    }
    
    .server-info-content h1 {
        font-size: 28px;
    }
    
    .server-info-content h2 {
        font-size: 24px;
    }
    
    .server-info-table {
        font-size: 14px;
    }
    
    .server-info-table th,
    .server-info-table td {
        padding: 10px 12px;
    }
}

/* Responsive tables for small screens */
@media (max-width: 576px) {
    .server-info-container .section-header h1 {
        font-size: 28px;
    }
    
    .server-info-content {
        padding: 20px;
    }
    
    .server-info-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* Button styles */
.info-button {
    display: inline-block;
    padding: 10px 20px;
    background: #c83232;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    margin: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 50, 50, 0.4);
    cursor: pointer;
    text-align: center;
}

.info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 50, 50, 0.5);
}

/* Callout boxes */
.info-callout {
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 8px;
    position: relative;
    border-left: 4px solid #3498db;
    background: rgba(52, 152, 219, 0.1);
    clear: both;
    display: block;
    overflow: hidden;
    width: 100%;
}

.info-callout.info {
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.info-callout.warning {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.info-callout.danger {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.info-callout.success {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.info-callout h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-callout.info h4 {
    color: #3498db;
}

.info-callout.warning h4 {
    color: #f39c12;
}

.info-callout.danger h4 {
    color: #e74c3c;
}

.info-callout.success h4 {
    color: #2ecc71;
}

/* Add styles for paragraphs within callouts to avoid margin issues */
.info-callout p {
    margin-bottom: 0 !important;
}

.info-callout p:last-child {
    margin-bottom: 0;
}

/* Completely remove bottom gradient */
.toc-container::after {
    height: 0;
    margin-top: 0;
    background: none;
}

/* Reset all conflicting fixes */
.toc-container::after, 
.server-info-toc::after, 
.toc-list::after, 
.toc-item:last-child::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
}

/* Add fresh overlays and fixes */

/* Create a gradient overlay for the TOC scroll area */
.toc-container::after {
    content: '';
    display: block;
    height: 30px;
    background: linear-gradient(to bottom, 
                               rgba(20, 22, 30, 0) 0%,
                               rgba(20, 22, 30, 0.8) 30%,
                               rgba(20, 22, 30, 0.95) 60%,
                               rgba(20, 22, 30, 0.99) 100%);
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: -30px;
    pointer-events: none;
    z-index: 10;
}

/* Create a solid dark color for the TOC bottom */
.server-info-toc::after {
    content: '';
    display: block;
    height: 6px;
    background: rgba(20, 22, 30, 0.9);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    border-radius: 0 0 12px 12px;
}

/* Fix toc-container::before that might be causing issues */
.toc-container::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Add back the solid bottom element */
.server-info-toc::after {
    content: '';
    display: block;
    height: 6px;
    background: rgba(20, 22, 30, 0.9);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    border-radius: 0 0 12px 12px;
}

/* Loading elements */
.content-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #aaa;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #c83232;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CSS for item names in square brackets */
.item-name {
    color: #e7c96f;
    font-weight: 500;
    background-color: rgba(231, 201, 111, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.item-name:hover {
    background-color: rgba(231, 201, 111, 0.2);
}

/* CSS for numbered sections */
.numbered-section {
    display: none;
}

/* Step labels for numbered sections */
.step-label {
    display: none;
}

/* Adjust spacing after step labels */
.step-label + ul,
.step-label + ol {
    margin-top: 10px;
}

/* Styled link class for donation page and other info pages */
.info-link {
    color: #e04040;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    padding: 0 2px;
    border-bottom: 1px solid rgba(224, 64, 64, 0.4);
}

.info-link:hover {
    color: #ff5252;
    border-bottom-color: transparent;
    text-shadow: 0 0 8px rgba(224, 64, 64, 0.3);
}

.info-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e04040;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.info-link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: #ff5252;
    box-shadow: 0 0 6px rgba(255, 82, 82, 0.5);
} 