pre {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3); */
}

pre code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1.5rem !important;
    border-radius: 12px;
    overflow-x: auto;
    display: block;
}

.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    backdrop-filter: blur(4px);
}

pre:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Sidebar styles */
.sidebar-link.active {
    color: #0d8de3;
    background-color: #f0f7ff;
    font-weight: 600;
    border-left: 3px solid #0d8de3;
}

/* Collapsible menu styles */
.menu-toggle {
    cursor: pointer;
}

.menu-toggle .icon-expand {
    transition: transform 0.3s ease;
}

.menu-toggle.open .icon-expand {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.submenu.open {
    max-height: 1000px;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--tw-shadow-card-hover);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0d8de3, #36aaf5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gradient border */
.gradient-border {
    position: relative;
    border-radius: 12px;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #0d8de3, #36aaf5) border-box;
    border: 2px solid transparent;
}

/* Blob animation */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blob-animation 15s infinite alternate;
    z-index: -1;
}

@keyframes blob-animation {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #0d8de3, #36aaf5);
    z-index: 100;
    width: 0%;
    transition: width 0.2s ease;
}


/* API tables */
.api-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px -3px rgba(10, 37, 64, 0.1);
}

.api-table th {
    background-color: #f6f7f9;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: #61708f;
    padding: 1rem;
    border-bottom: 1px solid #eceef2;
}

.api-table td {
    padding: 1rem;
    border-bottom: 1px solid #eceef2;
    vertical-align: top;
}

.api-table tbody tr:hover {
    background-color: #f0f7ff;
}

.api-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive table container */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* HTTP method badges */
.http-method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.http-get {
    background-color: #e0eefe;
    color: #006fc1;
}

.http-post {
    background-color: #dcfce7;
    color: #16a34a;
}

.http-put {
    background-color: #fef3c7;
    color: #d97706;
}

.http-delete {
    background-color: #fee2e2;
    color: #dc2626;
}

.http-patch {
    background-color: #f3e8ff;
    color: #9333ea;
}

/* Status code badges */
.status-code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    min-width: 60px;
    text-align: center;
}

.status-200 {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-201 {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-400 {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-401 {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-403 {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-404 {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-500 {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Property types */
.property-type {
    display: inline-block;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #8190ab;
    margin-left: 0.5rem;
}

/* Required badge */
.badge-required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.5rem;
    background-color: #e0eefe;
    color: #006fc1;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Example endpoint styling */
.endpoint-url {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    padding: 0.75rem 1rem;
    background-color: #f6f7f9;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #2d3748;
    width: 100%;
    overflow-x: auto;
    border: 1px solid #eceef2;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #2d3748;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 10;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Tabs for code examples */
.code-tabs {
    display: flex;
    background-color: #2d3748;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-tab {
    padding: 0.75rem 1.5rem;
    color: #adb7ca;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.code-tab.active {
    background-color: #1a202c;
    color: white;
}

.code-tab:hover:not(.active) {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Pill tags */
.pill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 400 !important;
    transition: all 0.2s;
}

/* Document container font weights */
#document-container .prose {
    font-weight: 300 !important;
}

#document-container .prose h1,
#document-container .prose h2,
#document-container .prose h3,
#document-container .prose h4,
#document-container .prose h5,
#document-container .prose h6 {
    font-weight: 600 !important;
}

#document-container .prose p {
    font-weight: 400 !important;
}

#document-container .prose strong {
    font-weight: 500 !important;
}

#document-container .prose b {
    font-weight: 500 !important;
}

.col-span-1 h4 {
    font-size: 16px !important;
    font-weight: 400 !important;
}

.col-span-1 .toc-link {
    font-size: 12px !important;
    font-weight: 300 !important;
}

.col-span-1 .toc-link:hover {
    font-weight: 300 !important;
}

.col-span-1 a {
    font-size: 12px !important;
    font-weight: 300 !important;
}

.col-span-1 a:hover {
    font-weight: 300 !important;
}

.pill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 141, 227, 0.15);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .endpoint-url {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    pre code {
        font-size: 0.8rem;
        padding: 1rem !important;
    }

    .api-table th,
    .api-table td {
        padding: 0.75rem;
    }

    h1.gradient-text {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .blob {
        opacity: 0.2;
    }
}

/* Mobile sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.8);
    z-index: 50;
    display: none;
}

.mobile-sidebar.active {
    display: block;
}

.mobile-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-sidebar.active .mobile-sidebar-content {
    transform: translateX(0);
}

.gradient-text {
    background: linear-gradient(90deg, #0d8de3, #36aaf5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-gradient {
    background: linear-gradient(225deg, #3E2098 2.5%, #BCADEB 97.5%);
    background-repeat: no-repeat;
    background-size: cover;
}

.card-hover {
    transition: all 0.3s ease;
}

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


/* Blob animation */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blob-animation 15s infinite alternate;
    z-index: -1;
}

@keyframes blob-animation {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Floating animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}