/* Navigation */
nav {
    background: var(--background-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Theme Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider.round:before {
    border-radius: 50%;
}

.sun-icon,
.moon-icon {
    width: 16px;
    height: 16px;
    color: #fff;
}

/* Code blocks */
.code-block {
    background: #1a1a1a;
    border-radius: 0.5rem;
    padding: 2rem;
    overflow-x: auto;
    position: relative;
    transition: background-color 0.3s;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #fff;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.code-block pre,
.library-install code,
.example-block code {
    padding-right: 4rem;
}

.library-install {
    background: #1a1a1a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    position: relative;
    transition: background-color 0.3s;
}

.library-install code {
    color: #fff;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.example-block {
    background: #1a1a1a;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    position: relative;
    transition: background-color 0.3s;
}

.example-block code {
    color: #fff;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.code-block,
.library-install,
.example-block {
    position: relative;
}

/* Footer */
footer {
    background: var(--light-gray);
    padding: 3rem 0;
    transition: background-color 0.3s;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--secondary-color);
    font-size: 0.875rem;
    transition: color 0.3s;
}