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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sidebar */
.docs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    overflow-y: auto;
    z-index: 100;
    padding: 32px 20px;
    border-right: 1px solid #e5e5e5;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03);
}

.sidebar-logo {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.sidebar-logo img {
    height: 32px;
}

.sidebar-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

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

.sidebar-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999999;
    margin-bottom: 8px;
    font-weight: 600;
    padding: 0 12px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 2px;
}

.sidebar-section a {
    display: block;
    padding: 8px 12px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-weight: 400;
}

.sidebar-section a:hover {
    background: #f5f5f5;
    color: #000000;
}

.sidebar-section a.active {
    background: #00D1FF;
    color: #ffffff;
    font-weight: 500;
}

.sidebar-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sidebar-footer a:hover {
    background: #f5f5f5;
    color: #000000;
}

/* Main Content */
.docs-main {
    margin-left: 260px;
    padding: 40px 60px;
    max-width: 1400px;
    background: #ffffff;
    min-height: 100vh;
}

.docs-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.docs-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.docs-header p {
    font-size: 17px;
    color: #666666;
    line-height: 1.6;
}

.docs-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.docs-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 10px;
}

.docs-content p {
    font-size: 15px;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-content a {
    color: #00A8CC;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.docs-content a:hover {
    color: #0088AA;
    border-bottom-color: #0088AA;
}

.docs-content ul, .docs-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.docs-content li {
    font-size: 15px;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 6px;
}

.docs-content code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #0D0D14;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #00D9FF;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.docs-content pre {
    background: #0D0D14 !important;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.docs-content pre code {
    background: #0D0D14 !important;
    padding: 0;
    color: #E5E7EB;
    font-size: 13px;
    line-height: 1.6;
    border: none;
}

/* Info Boxes */
.info-box {
    background: #f8f9fa;
    border-left: 3px solid #00A8CC;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-box.warning {
    border-left-color: #FFA500;
    background: #fffbf0;
}

.info-box.success {
    border-left-color: #28a745;
    background: #f0fdf4;
}

.info-box h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.info-box p {
    font-size: 14px;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.card:hover {
    border-color: #00A8CC;
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.1);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 10px 0;
}

.card p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

.card .icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
}

.feature-item .check {
    color: #00A8CC;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

/* Contract Card */
.contract-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contract-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.contract-card .address {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    color: #d63384;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
    border: 1px solid #e5e5e5;
}

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

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

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

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

/* Tables */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.docs-content table thead {
    background: #f8f9fa;
}

.docs-content table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #000000;
    border-bottom: 2px solid #e5e5e5;
}

.docs-content table td {
    padding: 12px 16px;
    color: #333333;
    border-bottom: 1px solid #f0f0f0;
}

.docs-content table tr:last-child td {
    border-bottom: none;
}

.docs-content table tr:hover {
    background: #fafafa;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-main {
        padding: 32px 40px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .docs-main {
        margin-left: 0;
        padding: 24px 20px;
    }
    
    .docs-header h1 {
        font-size: 28px;
    }
    
    .docs-content h2 {
        font-size: 24px;
    }
    
    .docs-content h3 {
        font-size: 20px;
    }
}
