.api-notification {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #FEF3C7;
    border-bottom: 1px solid #F59E0B;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.notification-icon {
    flex-shrink: 0;
    color: #D97706;
    margin-right: 1rem;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
    color: #92400E;
}

.notification-message strong {
    font-weight: 600;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #92400E;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(217, 119, 6, 0.1);
}

/* Adjust the API container to make space for the notification */
.api-notification + .api-container {
    padding-top: 60px; /* Approximate height of the notification */
}

/* Responsive styles */
@media (max-width: 768px) {
    .notification-content {
        padding: 0.75rem 1.5rem;
    }
    
    .notification-message {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .notification-content {
        padding: 0.75rem 1rem;
    }
    
    .notification-icon {
        display: none; /* Hide icon on very small screens */
    }
}

.api-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.api-sidebar {
    width: 280px;
    background-color: white;
    border-right: 1px solid var(--bg-light);
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-search {
    margin-bottom: 1.5rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--primary-ultra-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.nav-group {
    margin-bottom: 1.5rem;
}

.nav-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.nav-items {
    margin-left: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.api-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    max-width: calc(100% - 280px);
}

.api-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.api-version {
    color: var(--text-light);
    font-size: 0.9rem;
}

.content-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.content-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.content-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}

.content-section h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--text);
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlight-box {
    background-color: var(--primary-ultra-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.code-block {
    background-color: #f8f9fc;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
    white-space: pre;
}

.info-box, .warning-box {
    display: flex;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
    gap: 1rem;
}

.info-box {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
}

.warning-box {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
}

.info-icon, .warning-icon {
    flex-shrink: 0;
}

.info-icon svg {
    color: var(--primary);
}

.warning-icon svg {
    color: var(--warning);
}

.info-content, .warning-content {
    flex: 1;
}

.info-content p, .warning-content p {
    margin-bottom: 0;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
}

.api-table th, .api-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.api-table th {
    font-weight: 600;
    background-color: var(--bg-light);
    color: var(--text);
}

.code-example {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.code-tabs {
    display: flex;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.code-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.code-tab:hover {
    color: var(--primary);
}

.code-tab.active {
    color: var(--primary);
    background-color: white;
    border-bottom: 2px solid var(--primary);
}

.code-panel {
    display: none;
    background-color: #f8f9fc;
    padding: 1rem;
    overflow-x: auto;
}

.code-panel.active {
    display: block;
}

.code-panel pre {
    margin: 0;
}

.code-panel code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.endpoint {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
}

.endpoint-method {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: white;
    min-width: 60px;
    text-align: center;
    margin-right: 1rem;
}

.endpoint-method.get {
    background-color: #10B981;
}

.endpoint-method.post {
    background-color: #3B82F6;
}

.endpoint-method.put {
    background-color: #F59E0B;
}

.endpoint-method.delete {
    background-color: #EF4444;
}

.endpoint-method.patch {
    background-color: #b37fdd;
}

.endpoint-path {
    color: var(--text);
    margin-right: 1rem;
}

.endpoint-description {
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.subsection {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--bg-light);
}

.library-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.library-card {
    background-color: white;
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.library-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.library-icon {
    color: var(--primary);
    background-color: var(--primary-ultra-light);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.library-info {
    flex: 1;
}

.library-info h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.library-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.library-links {
    display: flex;
    gap: 1rem;
}

.library-link {
    font-size: 0.8rem;
    color: var(--primary);
}

.changelog {
    margin: 2rem 0;
}

.changelog-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-light);
}

.changelog-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.changelog-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.changelog-version {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.changelog-content h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.changelog-changes {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.change-type {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-right: 0.75rem;
    min-width: 80px;
    text-align: center;
}

.change-type.addition {
    background-color: #10B981;
}

.change-type.change {
    background-color: #3B82F6;
}

.change-type.deprecation {
    background-color: #F59E0B;
}

.change-type.fix {
    background-color: #8B5CF6;
}

.changelog-changes p {
    margin: 0;
    flex: 1;
}

.view-more {
    text-align: center;
    margin: 2rem 0 0;
}

.view-more-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.view-more-link:hover {
    background-color: var(--primary-light);
    color: white;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--primary-ultra-light);
}

.sidebar-search {
    position: relative;
    margin-bottom: 1.5rem;
}
.http-method.patch {
    background-color: #b37fdd;
}
/* Responsive Styles */
@media (max-width: 992px) {
    .api-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .api-sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-sidebar-toggle {
        display: block;
    }
    
    .api-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .library-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .api-content {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
    
    .section-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .api-content {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1.25rem;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
    
    .code-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .endpoint {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.25rem;
    }
    
    .endpoint-method {
        margin-bottom: 0.5rem;
    }
}