/* assets/css/api-docs.css */

/* Layout components */
.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    padding-top: 20px;
    background-color: #f8f9fa;
}

.main-content {
    padding: 20px;
}

.site-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

/* Mobile sidebar behavior */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 56px;
        width: 80%;
        max-width: 300px;
        z-index: 1000;
        background: white;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }
    
    .sidebar.show {
        left: 0;
    }
}

/* Code blocks */
.code-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 87.5%;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Endpoint styling */
.endpoint-header {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.endpoint-header h2 {
    margin: 0;
    color: white;
}

/* Endpoint colors */
.get-endpoint { 
    background-color: #0d6efd;  /* Bootstrap primary */
}

.post-endpoint { 
    background-color: #198754;  /* Bootstrap success */
}

.put-endpoint { 
    background-color: #ffc107;  /* Bootstrap warning */
}

.delete-endpoint { 
    background-color: #dc3545;  /* Bootstrap danger */
}

/* Keep existing styles... */

/* Apply Bootstrap table styles to markdown-generated tables */
.main-content table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #dee2e6;
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: var(--bs-table-border-color);
    border-collapse: collapse;
}

.main-content table > thead {
    vertical-align: bottom;
    background-color: rgba(0, 0, 0, 0.05);  /* Bootstrap's table-light color */
}

/* Striped rows */
.main-content table > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);  /* Bootstrap's striped table color */
}

.main-content table th,
.main-content table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--bs-table-border-color);
}

/* Responsive table wrapper */
.main-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Optional: Add hover effect */
.main-content table > tbody > tr:hover {
    background-color: rgba(0, 0, 0, 0.075);  /* Bootstrap's hover color */
}
