/* API Documentation Styles */

.api-doc-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.api-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Code block styling */
pre {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

pre code {
    display: block;
    padding: 0.5em;
    color: #333;
    background: transparent;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tab styling for code examples */
.code-tabs .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.code-tabs .nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.code-tabs .nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    background-color: transparent;
}

.code-tabs .tab-content {
    padding-top: 0.5rem;
}

/* Table styling */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: top;
}

.table-bordered thead th {
    background-color: #f8f9fa;
    border-bottom-width: 2px;
}

/* Alert styling */
.alert {
    border-radius: 6px;
    margin-bottom: 2rem;
}

/* Endpoint styling */
h5 + pre {
    margin-top: 0.5rem;
}

/* Copy button for code blocks */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.copy-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

.copy-btn.copied {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}