/* Docs two-column layout */
.docs-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background-color: #fff;
    margin: -1.5rem;
    padding: 1.5rem;
    border-radius: 4px;
}

/* Sidenav */
.docs-sidenav {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.docs-sidenav-group {
    margin-bottom: 1.25rem;
}

.docs-sidenav-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    padding: 0 0.75rem;
    margin-bottom: 0.35rem;
}

.docs-sidenav-link {
    display: block;
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.docs-sidenav-link:hover {
    color: #222;
    background-color: #fdfdfd;
    text-decoration: none;
}

.docs-sidenav-link.active {
    color: #111;
    font-weight: 600;
    border-left-color: #333;
    background-color: #fafafa;
}

/* Content area */
.docs-content {
    flex: 1;
    min-width: 0;
    max-width: 750px;
}

/* Callout boxes */
.docs-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.docs-callout > i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.docs-callout p {
    margin-bottom: 0;
}

.docs-callout-info {
    background-color: #e8f4fd;
    border-left: 4px solid #4a9ede;
    color: #1a3a52;
}

.docs-callout-info > i { color: #4a9ede; }

.docs-callout-warning {
    background-color: #fff8e6;
    border-left: 4px solid #e6a817;
    color: #52420a;
}

.docs-callout-warning > i { color: #e6a817; }

.docs-callout-success {
    background-color: #e6f7ed;
    border-left: 4px solid #28a745;
    color: #14462a;
}

.docs-callout-success > i { color: #28a745; }

/* Feature card grid */
.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.docs-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
}

.docs-card-icon {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.docs-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.docs-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Tables */
.docs-content .table-bordered,
.docs-content .table-bordered th,
.docs-content .table-bordered td {
    border-color: #aaa;
}

.docs-status-table td:first-child {
    width: 120px;
    text-align: center;
    vertical-align: middle;
}

/* Responsive: stack on mobile */
@media (max-width: 767.98px) {
    .docs-layout {
        flex-direction: column;
        gap: 0;
    }

    .docs-sidenav {
        width: 100%;
        position: static;
        max-height: none;
        display: flex;
        overflow-x: auto;
        gap: 0;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
    }

    .docs-sidenav-group {
        display: flex;
        align-items: center;
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .docs-sidenav-heading {
        display: none;
    }

    .docs-sidenav-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .docs-sidenav-link.active {
        border-bottom-color: #333;
        background-color: transparent;
    }

    .docs-sidenav-link:hover {
        background-color: transparent;
    }

    .docs-content {
        max-width: 100%;
    }

    .docs-card-grid {
        grid-template-columns: 1fr;
    }
}
