#markdownViewerWidget {
    position: relative;
    display: inline-block;
}

.md-dropdown-trigger {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 24px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.md-dropdown-trigger:hover {
    background: #f8f8f8;
    border-color: #b0b0b0;
}

.md-trigger-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.md-chevron {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.md-dropdown-trigger.active .md-chevron {
    transform: rotate(180deg);
}

.md-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    padding: 8px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1000;
}

.md-dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.md-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.md-menu-item:hover {
    background: #f5f5f5;
}

.md-menu-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.md-menu-icon {
    width: 20px;
    height: 20px;
    stroke: #333;
    stroke-width: 1.5;
}

.md-menu-content {
    flex: 1;
}

.md-menu-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.md-external-icon {
    width: 14px;
    height: 14px;
    stroke: #666;
    stroke-width: 2;
}

.md-menu-description {
    font-size: 13px;
    color: #666;
    margin: 0;
}