/**
 * Custom JSDoc styles for left-side sticky navigation
 */

/* Move nav to left side and make it sticky */
nav {
    position: fixed !important;
    top: 20px;
    left: 20px;
    width: max-content;
    max-width: 280px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

/* Adjust main content to account for left nav */
#main {
    margin-left: calc(280px + 60px) !important;
    padding: 20px 40px;
    max-width: calc(100% - 280px - 60px);
}

/* Style nav scrollbar for webkit browsers */
nav::-webkit-scrollbar {
    width: 8px;
}

nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

nav::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Improve nav typography */
nav h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f20084;
}

nav h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul {
    padding-left: 0;
    list-style: none;
}

nav ul li {
    margin: 5px 0;
}

nav a {
    display: block;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

a:hover {
    background-color: #f0f0f0;
}

/* Style pre elements */
pre {
    background: #eeeeee;
    border-radius: 10px;
    padding: 20px;
}

/* Style code elements */
code {
    background: transparent !important;
}

/* Responsive: stack nav on top for smaller screens */
@media (max-width: 768px) {
    nav {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 300px;
        margin: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #main {
        margin-left: 0 !important;
        max-width: 100%;
    }
}

/* Footer positioning */
footer {
    margin-left: calc(280px + 60px);
    padding: 20px 40px;
}

@media (max-width: 768px) {
    footer {
        margin-left: 0;
    }
}

/* Clear fix positioning */
br.clear {
    display: none;
}

a,
a:visited,
a:active {
    color: #1b8a8a;
    text-decoration: none !important;
}

a:hover{
    color: #f20084 !important;
    text-decoration: none !important;
}

nav h3{
    color: #1b8a8a !important;
}