* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#search {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
}

#search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.menu-section {
    margin-bottom: 0.5rem;
}

.menu-title {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.menu-title:hover {
    background-color: #f7fafc;
    color: #2d3748;
    border-left-color: #667eea;
}

.folder-icon {
    font-size: 1rem;
}

.toggle-icon {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
}

.menu-section.expanded .toggle-icon {
    transform: rotate(0deg);
}

.menu-items {
    list-style: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.menu-section.expanded .menu-items {
    max-height: 1000px;
}

.menu-items li {
    border-left: 4px solid transparent;
}

.menu-items a {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    text-decoration: none;
    color: #718096;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-radius: 0 4px 4px 0;
}

.menu-items a:hover {
    background-color: #edf2f7;
    color: #2d3748;
    border-left-color: #667eea;
}

.menu-items a.active {
    background-color: #e6f3ff;
    color: #2b6cb0;
    font-weight: 500;
    border-left-color: #3182ce;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header {
    padding: 0.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #4a5568;
    transition: all 0.2s ease;
}

.content-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    gap: 2rem;
    padding: 1rem;
    padding-left: 2rem;
}

.content-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#content {
    flex: 1;
    padding: 0.5rem 2rem;
    overflow-y: auto;
    background: white;
    max-width: 800px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: #718096;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table of Contents */
.toc-container {
    width: 250px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 80vh;
}

.toc-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.toc-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
}

.toc-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.toc-content ul {
    list-style: none;
}

.toc-content li {
    margin-bottom: 0.25rem;
}

.toc-content a {
    display: block;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    color: #718096;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-content a:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

.toc-content a.active {
    background-color: #e6f3ff;
    color: #2b6cb0;
    font-weight: 500;
}

/* Markdown Content Styles */
.markdown-content {
    max-width: none;
}

.markdown-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin: 1.5rem 0 1rem 0;
}

.markdown-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    margin: 1.25rem 0 0.75rem 0;
}

.markdown-content p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.markdown-content blockquote {
    border-left: 4px solid #667eea;
    background: #f7fafc;
    padding: 1rem;
    margin: 1.5rem 0;
    color: #4a5568;
    font-style: italic;
}

.markdown-content code {
    background: #edf2f7;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e53e3e;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

.markdown-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 0;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.5;
    position: relative;
}

.code-filename {
    background: #1a202c;
    color: #a0aec0;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    border-bottom: 1px solid #4a5568;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

.markdown-content pre code {
    display: block;
    padding: 1.5rem;
    background: none;
    color: #fff !important;
    font-size: 0.9rem;
}

.markdown-content pre:hover .copy-button {
    opacity: 1;
}

.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.8rem;
    color: #4a5568;
    z-index: 10;
    font-family: inherit;
}

.copy-button:hover {
    background: white;
    color: #2d3748;
}

.copy-button.copied {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

/* Adjust copy button position when filename is present */
.markdown-content pre:has(.code-filename) .copy-button,
.markdown-content pre.has-filename .copy-button {
    top: 2.5rem;
}

/* Code block line styling */
.markdown-content pre .line {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    border-left: 3px solid transparent;
}

.markdown-content pre .line:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #667eea;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.markdown-content th,
.markdown-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.markdown-content th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.markdown-content a {
    color: #3182ce;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.markdown-content a:hover {
    border-bottom-color: #3182ce;
}

/* Docs Warning/Info Boxes */
.docs-warning,
.docs-info {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.docs-warning {
    background: #fef5e7;
    border-left-color: #ed8936;
    color: #744210;
}

.docs-info {
    background: #ebf8ff;
    border-left-color: #3182ce;
    color: #2a4365;
}

/* Welcome sections */
.welcome-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.welcome-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.welcome-section:hover {
    transform: translateY(-2px);
}

.welcome-section h2 {
    border: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .toc-container {
        display: none;
    }
    
    .content-body {
        gap: 0;
        padding: 0;
    }
    
    #content {
        border: none;
        border-radius: 0;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .breadcrumb{
      display: none;
    }
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 50vh;
        position: fixed;
        top: 55px;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .content-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: white;
        margin: 0;
    }
    
    #content {
        padding: 1rem;
    }
    
    .welcome-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
}
.author{
  color: #ff0050;
}
.author br{
  display: none;
}
@media (max-width: 480px) {
    .sidebar {
      max-height: calc(100vh - 50px);
    }
    .author{
      font-size: 14px;
      padding-left: 20px;
    }
    .author br{
      display: block;
    }
    .sidebar-header h1 {
        font-size: 1.25rem;
    }
    
    .markdown-content h1 {
        font-size: 2rem;
    }
    
    .markdown-content h2 {
        font-size: 1.5rem;
    }
    
    #content {
        padding: 0.75rem;
    }
}

/* Scrollbar Styling */
.sidebar-content::-webkit-scrollbar,
#content::-webkit-scrollbar,
.toc-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track,
#content::-webkit-scrollbar-track,
.toc-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-content::-webkit-scrollbar-thumb,
#content::-webkit-scrollbar-thumb,
.toc-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
#content::-webkit-scrollbar-thumb:hover,
.toc-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Code highlighting improvements */
.markdown-content pre[class*="language-"] {
    background: #1a202c !important;
    text-shadow: none !important;
}

.markdown-content code[class*="language-"] {
    background: none !important;
    text-shadow: none !important;
}

.markdown-content pre[class*="language-"] * {
    text-shadow: none !important;
}

.markdown-content code[class*="language-"] * {
    text-shadow: none !important;
}

/* Print styles */
@media print {
    .sidebar,
    .toc-container,
    .content-header {
        display: none;
    }
    
    .main-content {
        margin: 0;
    }
    
    #content {
        padding: 0;
    }
}


.token.atrule, .token.attr-value, .token.keyword {
  color: #0ba7e9 !important;
}
.token.class-name, .token.function {
  color: #ff7a04 !important;
}

.token.attr-name, .token.builtin, .token.char, .token.inserted, .token.selector, .token.string {
  color: #7fbf00 !important;
}

.token.boolean, .token.constant, .token.deleted, .token.number, .token.property, .token.symbol, .token.tag {
  color: #fd40a9 !important;
}

/* Bash/Shell specific tokens */
.language-bash .token.function,
.language-shell .token.function {
  color: #ff7a04 !important;
}

.language-bash .token.keyword,
.language-shell .token.keyword {
  color: #0ba7e9 !important;
}

.language-bash .token.parameter,
.language-shell .token.parameter {
  color: #7fbf00 !important;
}

.language-bash .token.builtin,
.language-shell .token.builtin {
  color: #fd40a9 !important;
}

pre[class*=language-] {
  padding: 0 !important;
}
.markdown-content h1 {
  font-size: 2rem !important;
}
.markdown-content h2 {
  font-size: 1.5rem !important;
}
.markdown-content p {
  margin-bottom: 1rem;
  color: #343c4b !important;
  line-height: 1.7;
  font-size: 1.1rem !important;
}
.toc-content a {
  font-weight: 700 !important;
}

/* Image styling */
.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}