/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f7fafc;
    color: #2d3748;
    line-height: 1.6;
}

/* Header */
.header {
    background-color: #1a202c;
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: 600;
}
.logo img {
    height: 21px;
    width: auto;
    vertical-align: middle;
    max-width:100%;
}
.search-bar {
    background: #2d3748;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    width: 300px;
}

.search-bar::placeholder {
    color: #a0aec0;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: white;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 20px 0;
}

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

.nav-section h3 {
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 8px;
    margin-bottom: 8px;
}

.nav-item {
    display: block;
    color: #4a5568;
    text-decoration: none;
    padding: 8px 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

.nav-item.active {
    background-color: #4299e1;
    color: white;
    border-left-color: #2b6cb0;
}

/* Table of Contents */
.toc {
    position: fixed;
    top: 200px;
    right: 40px;
    width: 200px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toc h4 {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-item {
    display: block;
    color: #4a5568;
    text-decoration: none;
    padding: 4px 0;
    font-size: 14px;
    border-left: 2px solid transparent;
    padding-left: 8px;
    transition: all 0.2s;
}

.toc-item:hover {
    color: #4299e1;
    border-left-color: #4299e1;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    margin-top: 60px;
    padding: 40px;
    margin-right: 240px;
    min-height: calc(100vh - 60px);
}

.breadcrumbs {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #4299e1;
    text-decoration: none;
}

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

.page-header h1 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 8px;
}

.page-description {
    color: #4a5568;
    font-size: 18px;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #edf2f7;
    font-size: 24px;
}

.content-section h3 {
    color: #2d3748;
    margin: 24px 0 12px 0;
    font-size: 18px;
}

.content-section p {
    margin-bottom: 16px;
    color: #4a5568;
}

.content-section ul {
    margin: 16px 0 16px 20px;
    color: #4a5568;
}

.content-section li {
    margin-bottom: 8px;
}

/* Info Boxes */
.info-box {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 16px;
    margin: 24px 0;
    border-radius: 0 6px 6px 0;
}

.info-box.warning {
    background: #fffaf0;
    border-left-color: #ed8936;
}

.info-box.success {
    background: #f0fff4;
    border-left-color: #48bb78;
}

.info-box strong {
    color: #2d3748;
    display: block;
    margin-bottom: 4px;
}

.info-box i {
    margin-right: 8px;
}

/* Step Guide */
.step-guide {
    counter-reset: step-counter;
    margin: 24px 0;
}

.step {
    counter-increment: step-counter;
    margin: 16px 0;
    padding-left: 40px;
    position: relative;
    color: #4a5568;
}

.step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #4299e1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Code Blocks */
.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 6px;
    margin: 24px 0;
    position: relative;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-header {
    background: #1a202c;
    color: #a0aec0;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    margin: 24px 0 0;
}

.code-block.with-header {
    margin-top: 0;
    border-radius: 0 0 6px 6px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .toc {
        display: none;
    }
    
    .main-content {
        margin-right: 40px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .header {
        padding: 0 15px;
    }
    
    .search-bar {
        width: 200px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .toc {
        display: none;
    }
}

@media (max-width: 480px) {
    .search-bar {
        width: 150px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .step {
        padding-left: 35px;
    }
    
    .step::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

/* Link Styles */
a {
    color: #4299e1;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Focus Styles for Accessibility */
.nav-item:focus,
.toc-item:focus,
.search-bar:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #4299e1;
    color: white;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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