body {
    padding-top: 57px !important;
}

.wy-nav-side {
    top: 57px;
    height: calc(100% - 57px);
}

#wuzao-nav-host * {
    box-sizing: border-box;
    border-width: 0;
}

#wuzao-nav-host .nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid #e5e7eb;
}

#wuzao-nav-host .nav-container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: 56px;
}

#wuzao-nav-host .wuzao-logo-img {
    height: 28px;
    width: auto;
}

#wuzao-nav-host .project-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

#wuzao-nav-host .project-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#wuzao-nav-host .project-logo {
    height: 28px;
    width: 28px;
    border-radius: 6px;
    background-color: #ffffff;
}

#wuzao-nav-host .separator {
    display: block;
    height: 20px;
    width: 1px;
    background-color: #cbd5e1;
}

#wuzao-nav-host .context-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

#wuzao-nav-host .context-links a {
    background-color: #f8fafc; /* slate-50, subtle background for all */
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 6px;
    color: #222222;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

#wuzao-nav-host .context-links a:hover {
    background-color: oklab(0.55 -0.0486215 -0.275746 / 0.8);
    color: oklch(0.968 0.007 247.896);
}

#wuzao-nav-host a.context-link-active {
    background-color: oklab(0.55 -0.0486215 -0.275746 / 0.8);
    color: oklch(0.968 0.007 247.896);
}

#wuzao-nav-host .global-nav-actions a {
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

#wuzao-nav-host .global-nav-actions a:hover {
    color: #b45309; /* amber-600 */
}

#wuzao-nav-host .global-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

#build-info-nav-item {
    position: relative;
    padding-bottom: 2px; /* Add a bridge to make dropdown hoverable */
    margin-bottom: -2px; /* Compensate for the padding to not affect layout */
}

#build-info-nav-item .latest-build-time {
    /* Match sibling link styles */
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    color: #475569; /* gray-600 */
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

#build-info-nav-item:hover .latest-build-time {
    background-color: #f1f5f9; /* gray-100 */
    color: #1e293b; /* gray-800 */
}

#build-info-nav-item .build-history-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Position below the nav item, inside the padding */
    left: 0; /* Align to the left of the parent */
    transform: translateX(0); /* Reset transform */
    background-color: white;
    border: 1px solid #e5e7eb; /* gray-200, matching nav border */
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* Subtle shadow */
    list-style: none;
    padding: 8px;
    margin: 0;
    min-width: 300px;
    z-index: 1000;
}

#build-info-nav-item:hover .build-history-dropdown {
    display: block;
}

.build-history-dropdown li {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
    white-space: normal;
}

.build-history-dropdown li:last-child {
    border-bottom: none;
}

.build-history-dropdown .date {
    color: #1f2937; /* gray-800 */
    font-weight: 500;
    display: block;
    font-size: 13px;
}

.build-history-dropdown .message {
    color: #6b7280; /* gray-500 */
    font-size: 13px;
    margin-left: 12px; /* Add a gap between date and message */
}

.build-history-dropdown .dropdown-header {
    font-size: 14px;
    font-weight: 600;
    color: #111827; /* gray-900 */
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    margin-bottom: 4px;
}

.build-history-dropdown li {
    display: flex;
    justify-content: flex-start; /* Align items to the start */
    align-items: center;
}

.latest-build-time {
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    gap: 6px; /* Gap between icon and text */
}

.history-icon {
    width: 13px;
    height: 13px;
    color: #9ca3af; /* gray-400 */
}

/* New layout classes */
#wuzao-nav-host .nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

#wuzao-nav-host .wuzao-logo-link {
    display: flex;
    align-items: center;
}

#wuzao-nav-host .nav-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

#wuzao-nav-host .nav-right {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767px) {
.wuzao-nav-hide-mobile {
    display: none !important;
}
}

@media (max-width: 1023px) {
    .wuzao-nav-hide-narrow {
        display: none !important;
    }
}

#wuzao-nav-host .nav-capsule {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 6px;
}

#wuzao-nav-host .nav-capsule a {
    border-radius: 0;
}

#wuzao-nav-host .nav-capsule a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#wuzao-nav-host .nav-capsule a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#wuzao-nav-host .separator-small {
    height: 16px;
    width: 1px;
    background-color: #e5e7eb;
}

#wuzao-nav-host .nav-container.theme-rtd {
    max-width: 1080px;
    margin-left: 0;
    margin-right: auto;
}

#wuzao-nav-host .nav-container.theme-rtd .nav-right {
    display: none;
}

#wuzao-nav-host .project-nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

.project-nav-group .brace {
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
    font-size: 24px;
    color: #bbb;
}