:root {
    --sidebar-width: 260px;
    --header-height: 60px;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}
body.dark-theme {
    background-color: #222222;
    color: #ffffff;
}

body.dark-theme code {
    color: #333333;
}

body code {
    font-size: 1.2em;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}
.header.dark-theme {
    background-color: #222222;
    border-bottom: 1px solid #444444;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 20px;
    overflow-y: auto;
}
.sidebar.dark-theme {
    background-color: #222222;
}

.sidebar.dark-theme nav .nav-group a{
    color:#ffffff;
}
.sidebar.dark-theme .nav-group-title {
    color: #ffffff;
}
.sidebar.dark-theme nav .nav-group a:hover{
    color: #333333;
}

.nav-group {
    margin-bottom: 20px;
}

.nav-group-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 4px;
}

.nav-link:hover {
    background: #eee;
    color: #333;
}

.nav-link.active {
    background: #007bff;
    color: #fff;
}

.header-right.dark-theme {
    background-color: #ffffff;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 40px;
    max-width: 1300px;
}

.section {
    margin-bottom: 40px;
    display: none;
}

.section.active {
    display: block;
}

/* Component Preview Styles */
.component-preview {
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 20px 0;
}

.preview-area {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.code-area {
    background: #f8f9fa;
    padding: 15px;
    overflow-x: auto;
    margin-block:16px;
    border-radius: 8px;
}
#theme-toggle {
    border:none;
    background: transparent;
}
#toggle-theme-icon {
    cursor: pointer;
    width:35px;
    height:35px;
    border: none;
    background: transparent;

}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }
}

#introduction h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
#introduction h2 {
    font-size: 2em;
    margin-bottom: 20px;
}
#introduction p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

#installation h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    
}
#installation h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#usage h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
#usage .code-examples {
    display:flex;
    flex-direction:column;
}
#usage h2 {
    font-size: 2em;
    margin-bottom: 20px;
}
#usage p {
    font-size: 1.5em;
    margin-bottom: 20px;
}
#browser-support {
    gap: 16px;
}
#browser-support ul {
    list-style: none;
    padding: 20px 0;
}
#browser-support li {
    font-size: 1.1em;
    margin-bottom: 20px;
}
#browser-support h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
#browser-support h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#browser-support p {
    font-size: 1.5em;
    margin-bottom: 20px;
}