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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f0f0f;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    padding-top: 80px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(15, 15, 30, 0.8)), url('https://i.imgur.com/RzDV9SC.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #8B0000;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo .icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.header-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.header-subtitle {
    font-size: 14px;
    color: #b0b0b0;
    margin-left: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.container {
    display: flex;
    min-height: calc(100vh - 80px);
    max-width: 1400px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-top: 0;
}

.sidebar {
    width: 320px;
    background-color: #0f0f0f;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
    position: fixed;
    height: calc(100vh - 80px);
    left: 50%;
    top: 80px;
    transform: translateX(calc(-700px));
    z-index: 100;
}

.header {
    padding: 20px 20px;
    border-bottom: 1px solid #2a2a2a;
    background-color: #0f0f0f;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.header h1 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.nav {
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #c0c0c0;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.nav-item.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-left: 3px solid #8B0000;
}

.nav-item.main-item {
    color: #ffffff;
    font-weight: 600;
}

.nav-item.main-item:hover {
    background-color: #1a1a1a;
}

.nav-item.main-item.active {
    background-color: #1a1a1a;
    border-left: 3px solid #8B0000;
}

.nav-item .icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    filter: none;
}

.nav-item:hover .icon {
    filter: none;
}

.nav-item.active .icon {
    filter: none;
}

.nav-item.collapsible .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-item.collapsible.expanded .arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #0f0f0f;
}

.nav-submenu.expanded {
    max-height: 1000px;
}

.nav-subitem {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 52px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #a0a0a0;
    font-size: 13px;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-subitem:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.nav-subitem.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-left: 3px solid #8B0000;
}

.nav-subitem .icon {
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
    text-align: center;
    filter: grayscale(100%);
}

.nav-subitem:hover .icon {
    filter: grayscale(80%);
}

.nav-subitem.active .icon {
    filter: grayscale(0%);
}

.content {
    flex: 1;
    margin-left: 320px;
    padding: 32px 40px;
    max-width: calc(1400px - 320px);
    width: calc(100% - 320px);
    background-color: #0f0f0f;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    color: #888888;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb .icon {
    margin-right: 8px;
    font-size: 14px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 24px 0 12px 0;
    line-height: 1.3;
}

.content-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 16px 0 8px 0;
    line-height: 1.3;
}

.content-text {
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 15px;
}

.content-text p {
    margin-bottom: 16px;
}

.content-text ul {
    margin: 16px 0 16px 24px;
}

.content-text ul ul {
    margin: 8px 0 8px 24px;
}

.content-text li {
    margin-bottom: 8px;
    position: relative;
}

.content-text li::marker {
    color: #4a90e2;
}

.highlight-box {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.6;
}

.highlight-box.info {
    background-color: rgba(74, 144, 226, 0.1);
    border-left-color: #4a90e2;
    color: #a8c8f0;
}

.highlight-box.success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
    color: #a8e6aa;
}

.highlight-box.warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-left-color: #ff9800;
    color: #ffcc80;
}

.highlight-box.error {
    background-color: rgba(211, 47, 47, 0.1);
    border-left-color: #d32f2f;
    color: #ffb3b3;
}

.highlight-box p {
    margin-bottom: 8px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box ul {
    margin: 8px 0 8px 20px;
}

.highlight-box h4 {
    margin: 0 0 8px 0;
    color: inherit;
    font-size: 15px;
}

@media (max-width: 1440px) {
    .container {
        max-width: 95%;
    }
    
    .sidebar {
        transform: translateX(calc(-50vw + 160px));
    }
    
    .header-content {
        max-width: 95%;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }
    
    .sidebar {
        width: 280px;
        transform: translateX(calc(-50vw + 140px));
    }
    
    .content {
        margin-left: 280px;
        max-width: calc(1024px - 280px);
        width: calc(100% - 280px);
        padding: 24px 32px;
    }
    
    .content-section h1 {
        font-size: 28px;
    }
    
    .header-content {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .header-logo h1 {
        font-size: 20px;
    }
    
    .header-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .main-header {
        height: 70px;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
        min-height: calc(100vh - 70px);
    }
    
    .sidebar {
        width: 100vw;
        position: fixed;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        left: 0;
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        padding: 20px 24px;
    }
    
    .content-section h1 {
        font-size: 24px;
    }
    
    .nav-item {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .nav-subitem {
        padding: 12px 20px 12px 52px;
        font-size: 14px;
    }
    
    .header-content {
        padding: 0 16px;
    }
    
    .header-logo h1 {
        font-size: 18px;
    }
    
    .header-subtitle {
        display: none;
    }
    
    .menu-toggle {
        top: 85px;
    }
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        top: 85px;
    }
    
    .content {
        padding-top: 100px;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.nav-item .icon,
.breadcrumb .icon,
.content-section h1::before {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', emoji;
}

.content-text a:hover {
    background-color: #dc143c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.search-highlight {
    background-color: #8B0000;
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.3);
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0% { background-color: #dc143c; }
    50% { background-color: #8B0000; }
    100% { background-color: #8B0000; }
}

.header-btn {
    background-color: #8B0000;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #8B0000;
    margin-left: auto;
}

.header-btn:hover {
    background-color: #dc143c;
    border-color: #dc143c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}