/* docs.css */

.docs-container {
    display: flex;
    margin-top: 60px; /* Same as header height */
    height: calc(100vh - 60px);
}

.docs-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

.docs-sidebar nav a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.docs-sidebar nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.docs-sidebar nav a.active {
    background-color: var(--color-peach);
    color: var(--color-dark-blue);
    font-weight: 600;
}

.docs-content-area {
    flex-grow: 1;
    padding: 2rem 4rem;
    overflow-y: auto;
    height: 100%;
}

#docs-content {
    padding: 2rem;
}

#docs-content h1,
#docs-content h2,
#docs-content h3 {
    color: var(--color-peach);
    margin-bottom: 1rem;
}

#docs-content a {
    color: var(--color-peach);
}

#docs-content code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: var(--font-mono);
}

#docs-content pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

#docs-content pre code {
    padding: 0;
}

.docs-nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#sidebar-toggle-open {
    display: none; /* Hide by default on all screen sizes */
}

#sidebar-toggle-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none; /* Hide by default */
}

/* Mobile styles */
@media (max-width: 1024px) {
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1001; /* Above mobile menu */
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-content-area {
        padding: 2rem;
    }

    #sidebar-toggle-open {
        display: block;
        position: fixed;
        top: 80px;
        left: 20px;
        z-index: 99;
    }

    #sidebar-toggle-close {
        display: block;
    }
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-card h2 {
    margin-top: 0;
    color: var(--color-peach);
}

.tool-card .command {
    font-family: var(--font-mono);
    background-color: rgba(0,0,0,0.3);
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.tool-card .category {
    font-style: italic;
    color: var(--color-sky-blue);
    margin-bottom: 1rem;
}

.tool-card .params-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tool-card .params-table th,
.tool-card .params-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-header h2 {
    margin: 0;
}

.collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
} 